Skip to content

Commit

Permalink
feat: Allow to configure 2 gitlab providers simultaneously (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinokurig authored Oct 28, 2024
1 parent 3efe8ae commit 8319b81
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/common/src/dto/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export type GitOauthProvider =
| 'github'
| 'github_2'
| 'gitlab'
| 'gitlab_2'
| 'bitbucket'
| 'bitbucket-server'
| 'azure-devops';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const CAN_REVOKE_FROM_DASHBOARD: ReadonlyArray<api.GitOauthProvider> = [
'github',
'github_2',
'gitlab',
'gitlab_2',
];

export type Props = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import {
import { IGitOauth } from '@/store/GitOauthConfig/types';
import * as PersonalAccessTokenStore from '@/store/PersonalAccessToken';

export const enabledProviders: api.GitOauthProvider[] = ['github', 'github_2', 'gitlab'];

type Props = MappedProps;

type State = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const GIT_OAUTH_PROVIDERS: Record<api.GitOauthProvider, string> = {
github: 'GitHub',
github_2: 'GitHub (The second provider)',
gitlab: 'GitLab',
gitlab_2: 'GitLab (The second provider)',
} as const;

export const DEFAULT_GIT_OAUTH_PROVIDER: api.GitOauthProvider = 'github';
Expand Down

0 comments on commit 8319b81

Please sign in to comment.