Resolve merge conflicts in pull requests automatically
A merge conflict automation goes through the open pull requests that conflict with their base branch and resolves the ones that need nobody's judgment. For each conflict, it works out what both sides meant from the pull requests, their review threads, and their issues. It merges the base branch into the pull request's branch, builds the result, runs the project's checks, pushes the merge, and comments on the pull request with what it resolved and what it ran.
A pull request where resolving any conflict means making a decision goes back to its authors untouched, listed in the run's summary with the trade-off they have to weigh.
You build it from the Resolve Merge Conflicts template. If you turned on Resolve merge conflicts during the onboarding, you already have it, scheduled for Mondays at 06:00.
What it never does
The template is built to be safe on branches that belong to other people:
It never rebases and never force-pushes. A repository that doesn't accept merge commits gets every pull request handed back.
It skips drafts, pull requests labeled WIP or do-not-merge, and any branch someone pushed to within the last hour.
It takes at most five pull requests per run, and never weakens a test to make a build pass.
Set up the automation
Create a merge conflict automation
On the Automations page, click New Automation. In Instructions, click Use Template and select Resolve Merge Conflicts under By Air.
Select the repository. The agent builds every merge and runs the checks, so if they need specific tools or services, select an environment configuration instead.
In Triggers, add an At time trigger – see Choose how often it runs.

Keep the change handling set to As the instructions say. The agent pushes to several pull request branches in one run, which no other option allows. With any other option, the run stops before it touches anything and says why.
Click Create.
Choose how often it runs
Every run checks out the repository and reads every open pull request, whether or not any of them conflicts. An hourly schedule spends credits around the clock to find nothing most of the time. Start with once a week, before the team's working week begins, and move to once a day if conflicts pile up faster than that.
Go further
Review the merge – a code review automation on reviews each pull request again after the merge is pushed.
Tell the authors – the pull requests it hands back get no comment, only a line in the summary. To make sure their authors hear about them, post the summary to the team's Slack channel with a webhook notification.