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 created by a human developer by mentioning @copilot in a comment.
Copilot will create a child pull request, using the existing pull request's branch as the base branch. Once it has finished work on the changes you requested, it requests your review on the child pull request.
You maintain control of the original pull request: until you accept Copilot's proposed changes by merging its child pull request into your branch, the pull request will remain untouched.
You can ask Copilot to make changes to its child pull request by leaving a review. See Reviewing a pull request created by GitHub Copilot.
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.
Copilot will open a child pull request, using the existing pull request's branch as the base branch.
Copilot will leave a comment linking to the new pull request. 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.