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 (#14403)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
This commit is contained in:
parent
62b41de16f
commit
16dfc0e088
2 changed files with 7 additions and 7 deletions
lib/platform/bitbucket
|
@ -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);
|
||||
|
|
|
@ -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}`
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue