Note
For an overview of Copilot coding agent, see About GitHub Copilot coding agent.
Introduction
You can ask Copilot to make changes to an existing pull request by mentioning @copilot in a comment.
By default, Copilot pushes commits directly to the pull request's branch. Once it has finished work on the changes you requested, it requests your review.
If you prefer Copilot to create a separate pull request instead, you can ask for this using natural language in your comment—for example, "open a PR to fix the tests."
Resolving merge conflicts
You can ask Copilot to resolve merge conflicts on a pull request by mentioning @copilot and asking it to fix the conflicts using natural language, such as "@copilot resolve the merge conflicts on this PR."
Copilot will analyze the conflicting changes, resolve the conflicts, and ensure the build, tests, and linter still pass. Once it has finished, Copilot will request your review so you can verify the conflict resolution before merging.
Asking Copilot to make changes
- Navigate to the pull request that you want Copilot to make changes to.
- Write a comment or review mentioning Copilot with
@copilot. - Optionally, when leaving a pull request comment (not a review or review comment) through the GitHub web interface, select a model using the model picker.
- Submit your comment or review.
If you prefer not to use this default behavior, you can ask Copilot to create a new branch and a new pull request targeting your branch instead. Once the agent finishes work, it will request a review from you.
Monitoring progress
You can view your current and past Copilot sessions from the agents panel, agents page, Visual Studio Code, and more. See Tracking GitHub Copilot's sessions.