Missed Team ’24? Catch up on announcements here.

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

How to use cloud API to auto merge PR with merge checks present?

Pierre Stridsberg
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!
June 9, 2022

I'm trying to set a PR that i create from cloud API to "auto merge" when build completes. Is this possible? I know it's possible from the actual page, but i want to do this programatically from my pipeline.

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 15, 2022

Hi Pierre,

The automatic merging when builds pass works when merging from the UI only, I'm afraid that it is not possible to do this with an API endpoint.

If you'd like, I can create a feature request about providing an API endpoint for this type of merge, for our development team to consider. Please feel free to let me know if you'd like me to proceed with that.

Kind regards,
Theodora

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2022

Hi Pierre and welcome to the community!

I wanted to give you a heads up that we discovered a bug with "Auto merge" and this feature is not working at the moment.

As soon as the bug is fixed and the feature works as expected, I will check if and how this can work with our API and I'll post an update.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events