File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
6
6
7
7
## [ Unreleased]
8
8
9
+ ### Changed
10
+
11
+ - GitLab & GitLab self-managed access tokens now require ` api ` scope instead of ` read_api ` to be able to merge Pull Requests.
12
+
9
13
## [ 15.2.0] - 2024-07-10
10
14
11
15
### Added
Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ export class GitLabAuthenticationProvider extends LocalIntegrationAuthentication
59
59
input . placeholder = `Requires ${ descriptor ?. scopes . join ( ', ' ) ?? 'all' } scopes` ;
60
60
input . prompt = `Paste your [GitLab Personal Access Token](https://${
61
61
descriptor ?. domain ?? 'gitlab.com'
62
- } /-/profile/personal_access_tokens "Get your GitLab Access Token")`;
62
+ } /-/user_settings/personal_access_tokens?name=GitLens+Access+token&scopes=${
63
+ descriptor ?. scopes . join ( ',' ) ?? 'all'
64
+ } "Get your GitLab Access Token")`;
63
65
input . buttons = [ infoButton ] ;
64
66
65
67
input . show ( ) ;
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ export const providersMetadata: ProvidersMetadata = {
376
376
] ,
377
377
// Use 'username' property on account for issue filters
378
378
supportedIssueFilters : [ IssueFilter . Author , IssueFilter . Assignee ] ,
379
- scopes : [ 'read_api ' , 'read_user' , 'read_repository' ] ,
379
+ scopes : [ 'api ' , 'read_user' , 'read_repository' ] ,
380
380
} ,
381
381
[ SelfHostedIntegrationId . GitLabSelfHosted ] : {
382
382
domain : '' ,
@@ -391,7 +391,7 @@ export const providersMetadata: ProvidersMetadata = {
391
391
] ,
392
392
// Use 'username' property on account for issue filters
393
393
supportedIssueFilters : [ IssueFilter . Author , IssueFilter . Assignee ] ,
394
- scopes : [ 'read_api ' , 'read_user' , 'read_repository' ] ,
394
+ scopes : [ 'api ' , 'read_user' , 'read_repository' ] ,
395
395
} ,
396
396
[ HostingIntegrationId . Bitbucket ] : {
397
397
domain : 'bitbucket.org' ,
You can’t perform that action at this time.
0 commit comments