@@ -14,13 +14,14 @@ import { By } from 'selenium-webdriver';
14
14
import { DriverHelper } from '../../utils/DriverHelper' ;
15
15
import { Logger } from '../../utils/Logger' ;
16
16
17
- enum GitService {
18
- github = 'github' ,
19
- gitlab = 'gitlab' ,
20
- 'azure-devops' = 'azure-devops' ,
21
- 'bitbucket-server-oauth1' = 'bitbucket-server-oauth1' ,
22
- 'bitbucket-server-oauth2' = 'bitbucket-server-oauth2'
23
- }
17
+ enum GitServices {
18
+ GITHUB = 'github' ,
19
+ GITLAB = 'gitlab' ,
20
+ BITBUCKET_SERVER_OAUTH1 = 'bitbucket-server-oauth1' ,
21
+ BITBUCKET_SERVER_OAUTH2 = 'bitbucket-server-oauth2' ,
22
+ BITBUCKET_CLOUD_OAUTH2 = 'bitbucket-org' ,
23
+ AZURE_DEVOPS = 'azure-devops'
24
+ }
24
25
25
26
@injectable ( )
26
27
export class UserPreferences {
@@ -119,15 +120,16 @@ export class UserPreferences {
119
120
await this . driverHelper . waitVisibility ( UserPreferences . ADD_NEW_SSH_KEY_BUTTON ) ;
120
121
}
121
122
122
- async getServiceConfig ( service : string ) : Promise < string > {
123
- const gitService : { [ key : string ] : string } = {
124
- [ GitService . github ] : 'GitHub' ,
125
- [ GitService . gitlab ] : 'GitLab' ,
126
- [ GitService [ 'azure-devops' ] ] : 'Microsoft Azure DevOps' ,
127
- [ GitService [ 'bitbucket-server-oauth1' ] ] : 'Bitbucket Server' ,
128
- [ GitService [ 'bitbucket-server-oauth2' ] ] : 'Bitbucket Server'
123
+ getServiceConfig ( service : string ) : string {
124
+ const gitService : { [ key : string ] : string } = {
125
+ [ GitServices . GITHUB ] : 'GitHub' ,
126
+ [ GitServices . GITLAB ] : 'GitLab' ,
127
+ [ GitServices . AZURE_DEVOPS ] : 'Microsoft Azure DevOps' ,
128
+ [ GitServices . BITBUCKET_CLOUD_OAUTH2 ] : 'Bitbucket Cloud' ,
129
+ [ GitServices . BITBUCKET_SERVER_OAUTH1 ] : 'Bitbucket Server' ,
130
+ [ GitServices . BITBUCKET_SERVER_OAUTH2 ] : 'Bitbucket Server'
129
131
} ;
130
-
132
+
131
133
return gitService [ service ] ;
132
134
}
133
135
0 commit comments