Check out https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-rest.html#idm140236731638960 if you are on server, https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/merge if you are using Cloud.
Thanks for your help. But when I use POST method as 'curl -i - u <user name> -H "content-type:application/json" https://bitbucket.../pull-requests/<pull-request number >/merge - X POST'. It throws error message 'You are attempting to modify a pull request based on out-of-date information'. For this error I appended '?version=-1' after merge in above url. Please advise.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs