0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-03-14 00:03:29 +00:00

fix(bitbucket): Use HTTP GET method instead of HEAD ()

Co-authored-by: Rhys Arkins <rhys@arkins.net>
This commit is contained in:
Maxime Brunet 2022-02-25 03:39:48 -08:00 committed by GitHub
parent 62b41de16f
commit 16dfc0e088
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions
lib/platform/bitbucket

View file

@ -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);

View file

@ -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}`
);