I have a script to create new Bitbucket repos. It uses the /rest/api/1.0/projects/{projectKey}/repos endpoint with a request like this:
{
'name': project_name,
'scmId': 'git',
'forkable': True
}
Is there another argument I can add, or a different API endpoint I can hit, to configure all new projects with the auto-unapprove setting turned on?
Hi @Dov Frankel ,
I might not be the best person to answer this question, however, I have found the following issue opened with the add-on developer: https://bitbucket.org/atlassian/stash-auto-unapprove-plugin/issues/25/api-documentation
In there I can read:
A key feature in this plugin is passing a payload of
{"unapproveOnUpdate": true}to the REST API end point;
/rest/api/1.0/projects/PROJECT_KEY/repos/REPO_NAME/settings/pull-requestsThis serves to set the flag so that all material changes to a PR to unapprove. Adding documentation of some of these endpoint will be useful for REST API users.
Therefore:
Just FYI, there are also the below 2 feature requests you might be interested in:
Finally, in case of any other question or concern, you may want to create an issue with the add-on developer at: https://bitbucket.org/atlassian/stash-auto-unapprove-plugin/issues
Let me know if this helps.
Cheers,
Dario
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.