Skip to main content

Demander à GitHub Copilot d’apporter des modifications à une pull request existante

You can ask Copilot to make changes to an existing pull request created by a human by mentioning @copilot.

Qui peut utiliser cette fonctionnalité ?

Agent de codage Copilot est disponible avec les forfaits GitHub Copilot Pro, GitHub Copilot Pro+, GitHub Copilot Business et GitHub Copilot Enterprise. L'agent est disponible dans tous les référentiels stockés sur GitHub, à l'exception des référentiels appartenant à comptes d’utilisateur managés et où il a été explicitement désactivé.
Sign up for Copilot

Remarque

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.

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

  1. Navigate to the pull request that you want Copilot to make changes to.
  2. Leave a comment or review mentioning Copilot with @copilot.

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.

Further reading