From 3673e960706c7c34a2afc53b42dc671b4b23621f Mon Sep 17 00:00:00 2001 From: RedlineTriad <39059512+RedlineTriad@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:45:23 +0200 Subject: [PATCH] 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> --- packages/integration-react/src/api/ScmAuth.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/integration-react/src/api/ScmAuth.ts b/packages/integration-react/src/api/ScmAuth.ts index 1b68d56a6e..ff3e8c098d 100644 --- a/packages/integration-react/src/api/ScmAuth.ts +++ b/packages/integration-react/src/api/ScmAuth.ts @@ -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'], }, });