I would like to write a script and/or golang program that can access the bitbucket cloud repo and modify the permission to
- add one or more user to the Merge via pull request option
- remove one or more user from the Merge via pull request option
- allow Write Access to a branch for one or more user
Am sure some api's exist and would appreciate if someone points me to the right path.
Hi @Jayaraj Wilson,
Here is the REST API documentation for BitBucket Cloud, specifically looking at a pullrequest by id:
I hope that's what you were looking to find.
-Jimmy
Hello @Jayaraj Wilson ,
Here's the endpoint to create branch permission, and here's the one to modify an existing one.
All three use cases you described refer to updating a branch restriction, so the latter endpoint is what you're looking for.
Hope this helps.
Cheers,
Daniil
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.