diff --git a/app/utils/mention.ts b/app/utils/mention.ts index 748852051c..b1964b5a56 100644 --- a/app/utils/mention.ts +++ b/app/utils/mention.ts @@ -43,7 +43,8 @@ export const isURLMentionable = ({ return ( hostname === "gitlab.com" && - settings.gitlab?.project.path_with_namespace === pathParts.slice(1, -2).join("/") // ensure installed project path matches with the provided url. + settings.gitlab?.project.path_with_namespace === + pathParts.slice(1, -2).join("/") // ensure installed project path matches with the provided url. ); } diff --git a/plugins/gitlab/client/Icon.tsx b/plugins/gitlab/client/Icon.tsx index 7f69a3ee25..088dd3f11a 100644 --- a/plugins/gitlab/client/Icon.tsx +++ b/plugins/gitlab/client/Icon.tsx @@ -48,4 +48,3 @@ export default function Icon({ size = 24, fill = "currentColor" }: Props) { ); } - diff --git a/plugins/gitlab/client/Settings.tsx b/plugins/gitlab/client/Settings.tsx index 9e63b9731e..2e9bc61396 100644 --- a/plugins/gitlab/client/Settings.tsx +++ b/plugins/gitlab/client/Settings.tsx @@ -59,8 +59,8 @@ function GitLab() { <> - Enable previews of GitLab issues and merge requests in documents by connecting a - GitLab project to {appName}. + Enable previews of GitLab issues and merge requests in documents + by connecting a GitLab project to {appName}. {integrations.gitlab.length ? ( @@ -73,8 +73,7 @@ function GitLab() { {integrations.gitlab.map((integration) => { - const gitlabProject = - integration.settings?.gitlab?.project; + const gitlabProject = integration.settings?.gitlab?.project; const integrationCreatedBy = integration.user ? integration.user.name : undefined; @@ -138,4 +137,3 @@ function GitLab() { } export default observer(GitLab); - diff --git a/plugins/gitlab/client/components/GitLabButton.tsx b/plugins/gitlab/client/components/GitLabButton.tsx index f31b91219b..ea1a911beb 100644 --- a/plugins/gitlab/client/components/GitLabButton.tsx +++ b/plugins/gitlab/client/components/GitLabButton.tsx @@ -21,4 +21,3 @@ export function GitLabConnectButton(props: Props) { ); } - diff --git a/plugins/gitlab/client/index.tsx b/plugins/gitlab/client/index.tsx index ba6a5c2918..fbdc2d7824 100644 --- a/plugins/gitlab/client/index.tsx +++ b/plugins/gitlab/client/index.tsx @@ -14,4 +14,3 @@ PluginManager.add([ }, }, ]); - diff --git a/plugins/gitlab/plugin.json b/plugins/gitlab/plugin.json index b30ade013a..0ca8fce73c 100644 --- a/plugins/gitlab/plugin.json +++ b/plugins/gitlab/plugin.json @@ -5,4 +5,3 @@ "description": "Adds a GitLab integration for link unfurling and converting links to mentions.", "after": "linear" } - diff --git a/plugins/gitlab/server/api/gitlab.ts b/plugins/gitlab/server/api/gitlab.ts index 4f5c660f61..0f46050393 100644 --- a/plugins/gitlab/server/api/gitlab.ts +++ b/plugins/gitlab/server/api/gitlab.ts @@ -97,4 +97,3 @@ router.get( ); export default router; - diff --git a/plugins/gitlab/server/api/schema.ts b/plugins/gitlab/server/api/schema.ts index 745358ea0f..6a679c4ce6 100644 --- a/plugins/gitlab/server/api/schema.ts +++ b/plugins/gitlab/server/api/schema.ts @@ -15,4 +15,3 @@ export const GitLabCallbackSchema = BaseSchema.extend({ }); export type GitLabCallbackReq = z.infer; - diff --git a/plugins/gitlab/server/env.ts b/plugins/gitlab/server/env.ts index 90d57289d0..2585c54677 100644 --- a/plugins/gitlab/server/env.ts +++ b/plugins/gitlab/server/env.ts @@ -4,4 +4,3 @@ export default { GITLAB_CLIENT_ID: env.GITLAB_CLIENT_ID, GITLAB_CLIENT_SECRET: env.GITLAB_CLIENT_SECRET, }; - diff --git a/plugins/gitlab/shared/GitLabUtils.ts b/plugins/gitlab/shared/GitLabUtils.ts index 804fe89fc3..1cfd56d8cd 100644 --- a/plugins/gitlab/shared/GitLabUtils.ts +++ b/plugins/gitlab/shared/GitLabUtils.ts @@ -49,4 +49,3 @@ export class GitLabUtils { return `${this.authBaseUrl}?${queryString.stringify(params)}`; } } - diff --git a/shared/types.ts b/shared/types.ts index a7adee03f3..c26ff52d73 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -141,7 +141,9 @@ export const ImportableIntegrationService = { export type IssueTrackerIntegrationService = Extract< IntegrationService, - IntegrationService.GitHub | IntegrationService.Linear | IntegrationService.GitLab + | IntegrationService.GitHub + | IntegrationService.Linear + | IntegrationService.GitLab >; export const IssueTrackerIntegrationService = { @@ -192,7 +194,12 @@ export type IntegrationSettings = T extends IntegrationType.Embed workspace: { id: string; name: string; key: string; logoUrl?: string }; }; gitlab?: { - project: { id: string; name: string; path_with_namespace: string; avatar_url?: string }; + project: { + id: string; + name: string; + path_with_namespace: string; + avatar_url?: string; + }; }; } : T extends IntegrationType.Analytics