feat(auth): enable persistency of scopes for Bitbucket Cloud

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2025-02-18 19:25:49 +01:00
parent ac69654f3d
commit 5d10f99e53
4 changed files with 13 additions and 0 deletions
@@ -239,11 +239,13 @@ export class ScmAuth implements ScmAuthApi {
'pullrequest',
'snippet',
'issue',
'project',
];
const repoWriteScopes = options?.scopeMapping?.repoWrite ?? [
'pullrequest:write',
'snippet:write',
'issue:write',
'repository:admin',
];
return new ScmAuth('bitbucket', bitbucketAuthApi, host, {
default: defaultScopes,