Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Auto merge pull request via API

Rinish Ramakrishnan October 25, 2017

Hello Guys,

Is there any way to auto merge the pull request via API using PUT method. Help is appreciated here.

 

1 answer

0 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 25, 2017
Rinish Ramakrishnan November 9, 2017

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. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events