GitHub Copilot: Agent Merge Watches and Fixes Pull Requests in the Cloud
GitHub integrated Agent Merge directly into pull requests on github.com. Developers select Watch and fix in the merge box, and Copilot automatically fixes blockers such as failing Actions workflows and merge conflicts in a cloud development environment. It can be enabled by default for all of a user's pull requests and combined with auto-merge.
Key Takeaways
- Agent Merge now lives in the pull request merge box on github.com, not only in the Copilot app and VS Code.
- Copilot can fix failing Actions workflows, merge conflicts, or both, based on the user's choice.
- Fixes run in a cloud development environment, so local machines are not involved.
- Agent Merge can be turned on by default for every pull request from Copilot settings.
- Combining it with auto-merge lets Copilot keep a PR mergeable while GitHub merges it once requirements are met.
- It requires a paid Copilot plan and respects organization and enterprise policies.
Copilot watches the pull request for you
Agent Merge, already available in the GitHub Copilot app and Visual Studio Code, is now built into pull requests on GitHub. Once enabled, Copilot watches the pull request and automatically fixes the blockers that stand between it and a merge, such as failing Actions workflows and merge conflicts.
How it works
Selecting Watch and fix in the pull request's merge box lets the developer choose whether Copilot should fix failing Actions workflows, resolve merge conflicts, or both. When a selected blocker appears, Copilot starts working in a cloud development environment to fix it, so nothing has to run on the developer's machine.
Developers who want Copilot to unblock every pull request they open can enable Agent Merge by default from their Copilot settings.
Pairing with auto-merge
Agent Merge can be combined with auto-merge. Copilot gets and keeps the pull request ready to merge, and GitHub merges it as soon as all requirements are met. Together they cover the long tail of waiting on red builds and rebases.
Availability
Agent Merge in the cloud is available to users on a paid Copilot plan, subject to applicable organization and enterprise policies.