Skip to main content

Asking GitHub Copilot to make changes to an existing pull request

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

この機能を使用できるユーザーについて

Copilot コーディング エージェント は、GitHub Copilot Pro、GitHub Copilot Pro+、GitHub Copilot Business、GitHub Copilot Enterprise プランで使用できます。 エージェントは、マネージド ユーザー アカウント によって所有されて明示的に無効になっているリポジトリを除き、GitHub に格納されているすべてのリポジトリで使用できます。
Sign up for Copilot

メモ

For an overview of Copilot コーディング エージェント, see GitHub Copilot コーディング エージェントについて.

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 GitHub Copilot によって作成された pull request のレビュー.

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 GitHub Copilot のセッションの追跡.

Further reading