Change setting for automatically unapproving a PR when source branch changes through API?

Bruno Ely July 12, 2017

I have a script that automatically creates repositories with pre-determined settings, and one of the settings that I want to set is the one for this plugin.

 

When GETting the repo configuration through the BitBucket Server API

http://localhost:7990/rest/api/1.0/projects/testproj/repos/testrepo/settings/pull-requests

I clearly see the "unapproveOnUpdate": true option turned on for the Unapprove automatically on new changes setting, but I cannot find an equivalent for the Unapprove all reviewers when the source branch of a pull request changes.

 

Here is a picture of what I want to achieve:

Screen Shot 2017-07-12 at 17.59.00.png

The highlighted one is the one for which I cannot find a property in the JSON object.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events