diff --git a/packages/common/src/dto/api/index.ts b/packages/common/src/dto/api/index.ts index dede9822a..2d1d56d0a 100644 --- a/packages/common/src/dto/api/index.ts +++ b/packages/common/src/dto/api/index.ts @@ -18,10 +18,14 @@ export { webSocket }; export type GitOauthProvider = | 'github' + | 'github_2' | 'gitlab' | 'bitbucket' + | 'bitbucket-server' | 'azure-devops'; +// The list of available Git providers for PAT +// https://eclipse.dev/che/docs/stable/end-user-guide/using-a-git-provider-access-token/ export type GitProvider = | 'github' | 'gitlab' diff --git a/packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/__tests__/__snapshots__/index.spec.tsx.snap b/packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/__tests__/__snapshots__/index.spec.tsx.snap index 7829ce74b..81d1c70f3 100644 --- a/packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/__tests__/__snapshots__/index.spec.tsx.snap +++ b/packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/__tests__/__snapshots__/index.spec.tsx.snap @@ -365,7 +365,7 @@ exports[`GitServices should correctly render the component which contains four g data-label="Name" onMouseEnter={[Function]} > - Bitbucket Server + Bitbucket Server (OAuth 1.0) Provided API does not support the automatic token revocation. You can revoke it manually on   = { 'azure-devops': 'Microsoft Azure DevOps', - bitbucket: 'Bitbucket Server', + // Either Bitbucket Cloud or Bitbucket Server + // https://github.com/eclipse-che/che-server/blob/main/wsmaster/che-core-api-auth-bitbucket/src/main/java/org/eclipse/che/security/oauth/BitbucketOAuthAuthenticator.java + 'bitbucket-server': 'Bitbucket', + // Bitbucket Server only + // https://github.com/eclipse-che/che-server/blob/main/wsmaster/che-core-api-auth-bitbucket/src/main/java/org/eclipse/che/security/oauth1/BitbucketServerOAuthAuthenticator.java + bitbucket: 'Bitbucket Server (OAuth 1.0)', github: 'GitHub', + github_2: 'GitHub (The second provider)', gitlab: 'GitLab', } as const; @@ -35,5 +41,6 @@ export const PROVIDER_ENDPOINTS: Record