0

We are using Renovate to keep our dependencies up to date. Our code is hosted in BitBucket cloud. I have added a reviewers configuration to the renovate.json but it doesn't add any reviewers to the PRs that it creates.

For the reviewers I have tried using: email address, BitBucket username, BitBucket user ID. None of these works. Example subset of renovate.json is below.

 "enabledManagers": ["npm", "nuget"],
   "reviewers": [
    "bb_username"
  ],

The logs don't mention anything about reviewers.

Does this functionality work with BitBucket and if so, how should it be configured.

Matthew van Boheemen
  • 1,087
  • 3
  • 13
  • 21

1 Answers1

0

The solution is pretty straightforward: use the UUIDs of the users instead, with {} surrounding them:

{
  "reviewers": [
    "{6ce7dd2c-0824-4df9-920d-4017a9f35da8}",
    "{b08e11a1-4cbf-4b3c-98c9-5470e663bec8}"
  ]

The tricky part is to get the UUIDs of the users.

For that, you have to call an endpoint that gives you the UUIDs, e.g.:

curl -X GET -u 'user:password' 'https://api.bitbucket.org/2.0/workspaces/{workspace}/members' | jq '.values[].user | "\(.display_name) \(.uuid)"'

I really hope this works for a longer time because the BitBucket API seems to be changing and the documentation is basically useless.

Some references:

Dominik Sandjaja
  • 6,326
  • 6
  • 52
  • 77