Looking how I can update an already open pull request by adding a reviewer group to the pull request. I tried using
<baseurl>/{repo_slug}/pull-requests/{pull_request_id}
However it seems when I run this endpoint in postman it is looking for version as well...
{"errors":[{"context":null,"message":"version must be supplied for this request","exceptionName":null}]}
I am passing this in the body..
{ "reviewers": [ { "account_id" : "<my reviewer group>" }]}
Where can I add the version or is there an easier way.
(fyi..eventually I plan in writing this in a python function.)
To add reviewers to a pull request in BB DC you can use the update pull request RESt endpoint and simply add the "reviewers": [..] element together with the id and version elements.
You need to fetch the current PR status first to obtain the current version.
Happy Coding
Ulrich
// Izymes
Thanks! However it now seems I am getting this error..
{"errors":[{"context":null,"message":"reviewers[0].user must be supplied for this request","exceptionName":null}]}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.