Not sure if this is possible, but it seems it was once possible to set default reviewers using the API. Could not find it on the documentation. I'm trying to automate repository creation and setting the default reviewers is an important step. Has anyone tried and succeeded?
My request as of now (attempted to add a participants field, that of course didnt work):
curl -X POST \ https://api.bitbucket.org/2.0/repositories/myhandle/mynewrepo \ -H 'Authorization: Basic yattayattayatta' \ -H 'Content-Type: application/json' \ -d '{ "scm": "git", "is_private": true, "participants": [ { "is_staff": true, "account_id": "my_own_account", "role": [REVIEWER], "approved": true } ], "project": { "key": "MYPROJECT" }}'
Hello @Daniel Rosario Carletti,
Welcome to the Community.
Here are the endpoints to add and delete a user to/from default reviewers for a given repository. This endpoint lists all default reviewers.
Hope this helps. Let me know if you have any questions.
Cheers,
Daniil
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.