fix: typo in bitbucket server auth scopes
https://confluence.atlassian.com/bitbucketserver0720/bitbucket-oauth-2-0-provider-api-1116282017.html#BitbucketOAuth2.0providerAPI-scopesScopes `PUBLIC_REPOS` is the only pluralized one. Signed-off-by: RedlineTriad <39059512+RedlineTriad@users.noreply.github.com>
This commit is contained in:
@@ -258,7 +258,7 @@ export class ScmAuth implements ScmAuthApi {
|
||||
*
|
||||
* The default scopes are:
|
||||
*
|
||||
* `PUBLIC_REPOS REPOS_READ`
|
||||
* `PUBLIC_REPOS REPO_READ`
|
||||
*
|
||||
* If the additional `repoWrite` permission is requested, these scopes are added:
|
||||
*
|
||||
@@ -277,10 +277,7 @@ export class ScmAuth implements ScmAuthApi {
|
||||
return this.forBitbucket(bitbucketAuthApi, {
|
||||
host: options.host,
|
||||
scopeMapping: {
|
||||
default: options.scopeMapping?.default ?? [
|
||||
'PUBLIC_REPOS',
|
||||
'REPOS_READ',
|
||||
],
|
||||
default: options.scopeMapping?.default ?? ['PUBLIC_REPOS', 'REPO_READ'],
|
||||
repoWrite: options.scopeMapping?.repoWrite ?? ['REPO_WRITE'],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user