Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Auto merge pull request via API

Rinish Ramakrishnan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Rinish Ramakrishnan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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