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

How do I rebuild the branch so that my PR is unblocked to merge

Tanmay Mathur July 26, 2023

I pushed code yesterday with some errors maybe because of which build failed, now when I am trying to merge after fixing them, it is not allowing me because the build failed yesterday. I need something like rebuild button.

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2023

Hello @Tanmay Mathur and welcome to the Community!

Based on your description, it's likely the case that the repository you are working on has branch restrictions in place that implements the merge check "Minimum number of successful builds for the last commit with no failed builds and no in progress builds" (see Suggest or required checks before a merge).

This will verify the last commit made on the source branch of the pull request and check if it has no failed/in-progress builds and if it meets the minimum number of successful builds. The minimum number of successful builds is configured in the branch restriction itself (Repository Settings > Branch Restrictions).

With that in mind, you will need to check if the last commit you pushed to the source branch of the pull request is meeting that criteria. If no build has run for the last commit yet, you can manually trigger it by opening that commit and clicking on the Run pipeline option : 

Screenshot 2023-07-27 at 12.04.45 PM.png

That will trigger a new build for that particular commit, and the build should now appear on the pull request page.

Hope that helps! Let me know in case you have any questions.

Thank you, @Tanmay Mathur !

Patrik S

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events