diff --git a/lib/platform/bitbucket/index.spec.ts b/lib/platform/bitbucket/index.spec.ts index 734429fcbc51626b6eb74cb1553d394207810b6a..b27574d4e1c3d1e4ffa0a7662f69bc0f5ccc38f8 100644 --- a/lib/platform/bitbucket/index.spec.ts +++ b/lib/platform/bitbucket/index.spec.ts @@ -756,11 +756,11 @@ describe('platform/bitbucket/index', () => { 'reviewers: Bob Smith is not a member of this workspace and cannot be added to this pull request', }, }) - .head( + .get( '/2.0/workspaces/some/members/%7Bd2238482-2e9f-48b3-8630-de22ccb9e42f%7D' ) .reply(404) - .head( + .get( '/2.0/workspaces/some/members/%7B90b6646d-1724-4a64-9fd9-539515fe94e9%7D' ) .reply(200) @@ -802,7 +802,7 @@ describe('platform/bitbucket/index', () => { 'reviewers: Bob Smith is not a member of this workspace and cannot be added to this pull request', }, }) - .head( + .get( '/2.0/workspaces/some/members/%7Bd2238482-2e9f-48b3-8630-de22ccb9e42f%7D' ) .reply(401); @@ -1014,11 +1014,11 @@ describe('platform/bitbucket/index', () => { 'reviewers: Bob Smith is not a member of this workspace and cannot be added to this pull request', }, }) - .head( + .get( '/2.0/workspaces/some/members/%7Bd2238482-2e9f-48b3-8630-de22ccb9e42f%7D' ) .reply(404) - .head( + .get( '/2.0/workspaces/some/members/%7B90b6646d-1724-4a64-9fd9-539515fe94e9%7D' ) .reply(200) @@ -1055,7 +1055,7 @@ describe('platform/bitbucket/index', () => { 'reviewers: Bob Smith is not a member of this workspace and cannot be added to this pull request', }, }) - .head( + .get( '/2.0/workspaces/some/members/%7Bd2238482-2e9f-48b3-8630-de22ccb9e42f%7D' ) .reply(401); diff --git a/lib/platform/bitbucket/index.ts b/lib/platform/bitbucket/index.ts index 5237540f680ca9e0da2c511bce9666b064f1b243..5eeda8cd65f7b11990de641fcc5e86f8cd9ecb9d 100644 --- a/lib/platform/bitbucket/index.ts +++ b/lib/platform/bitbucket/index.ts @@ -676,7 +676,7 @@ async function sanitizeReviewers( // Validate that each previous PR reviewer account is still a member of this workspace for (const reviewer of reviewers) { try { - await bitbucketHttp.head( + await bitbucketHttp.get( `/2.0/workspaces/${workspace}/members/${reviewer.uuid}` );