Direct Copilot Integration in Pull Requests
You can now mention @copilot directly within any pull request to request code modifications. This eliminates the need to context-switch to separate tools or create new PRs—simply tag Copilot with your request and it will work on your existing branch.
Supported Use Cases
The Copilot coding agent can handle a variety of developer workflows:
- Fix failing CI/CD workflows: Ask it to resolve broken tests or failing GitHub Actions
- Address code review feedback: Request changes based on reviewer comments without creating additional context
- Implement new functionality: Request features like adding unit tests, refactoring code, or adding documentation
How It Works
When you mention @copilot in a PR comment, the coding agent:
- Operates in its own cloud-based development environment
- Makes the requested changes to your code
- Validates work using your project's tests and linters
- Commits and pushes changes directly to the PR branch
This eliminates the previous behavior of creating a separate PR on top of your existing PR. If you prefer the old workflow, you can still request it explicitly: @copilot open a PR to fix the failing tests.
Availability and Setup
Copilot coding agent is available to all paid Copilot plan subscribers. GitHub Copilot Business and Enterprise users require administrator enablement of the feature before teams can begin using it.
For detailed instructions on using this feature, see the GitHub documentation.