プルリクエストで@copilotに変更を依頼できるようになりました
GitHubは、ユーザーがプルリクエスト内で@copilotをメンションすることで、GitHub Actionsワークフローの修正やコードレビューコメントへの対応など、様々な変更をCopilotに直接依頼できる新機能を発表した。
キーポイント
プルリクエスト内でのCopilot直接呼び出し
ユーザーはプルリクエスト内で@copilotをメンションし、自然言語で変更を依頼できる。
具体的な活用シナリオ
失敗したGitHub Actionsワークフローの修正、コードレビューコメントへの対応、ユニットテストの追加など、多様な変更を依頼可能。
クラウドベースの開発環境での動作
Copilotコーディングエージェントは独自のクラウドベース開発環境で変更を行い、テストやリンターで検証後にプッシュする。
有料プランでの提供と管理者設定
機能は全ての有料Copilotプランで利用可能だが、Copilot Business/Enterpriseユーザーは管理者による有効化が必要。
動作モードの選択肢
デフォルトは既存PR内での変更だが、「@copilot open a PR」と依頼すれば、従来通り新規PRをオープンする動作も選択可能。
影響分析・編集コメントを表示
影響分析
この機能は、AI支援開発を単なるコード補完から、開発プロセス全体の自動化・効率化へと拡張する重要な一歩である。特に、コードレビューやCI/CDパイプラインの問題解決にAIを直接組み込むことで、開発者の負荷軽減と開発速度の向上に寄与する可能性が高い。
編集コメント
AIが開発プロセスのより深い部分に統合されつつあることを示す実用的なアップデート。特に、レビューやテストといった人的判断が関わる工程への適用は、今後の開発現場の在り方を変える可能性がある。
現在、任意のプルリクエストで @copilot にメンションすることで、Copilotに変更を加えるよう依頼できるようになりました。@copilot には以下のような依頼が可能です:
GitHub Actions ワークフローの失敗を修正する: @copilot Fix the failing tests
コードレビューコメントに対応する: @copilot Address this comment
その他の変更を加える: @copilot Add a unit test covering the case when the model argument is missing
Copilot コーディングエージェントは、独自のクラウドベース開発環境で動作します。この環境で変更を加え、テストやリンターを用いて作業を検証した後、プッシュします。
以前は、Copilotは既存のプルリクエストのブランチをベースブランチとして使用し、その上に新しいプルリクエストを作成していました。この動作を希望する場合は、自然言語で Copilot に依頼できます:@copilot open a PR to fix the failing tests
Copilot コーディングエージェントは、すべての有料 Copilot プランで利用可能です。Copilot Business または Copilot Enterprise をご利用の場合、管理者が Copilot コーディングエージェントを有効化する必要があります。
詳細については、GitHub ドキュメントの「既存のプルリクエストに変更を加えるよう GitHub Copilot に依頼する」を参照してください。
この投稿「任意のプルリクエストに変更を加えるよう @copilot に依頼する」は、The GitHub Blog で最初に公開されました。
原文を表示
You can now mention @copilot in any pull request to ask Copilot to make changes. You can ask @copilot to:
Fix failing GitHub Actions workflows: @copilot Fix the failing tests
Address code review comments: @copilot Address this comment
Make any other changes: @copilot Add a unit test covering the case when the model argument is missing
Copilot coding agent works in its own cloud-based development environment where it can make changes, validate its work with your tests and linter, and then push.
Previously, Copilot would open a new pull request on top of your existing pull request, using the existing pull request’s branch as its base branch. If you still want this behavior, you can ask Copilot in natural language: @copilot open a PR to fix the failing tests
Copilot coding agent is available with all paid Copilot plans. If you’re a Copilot Business or Copilot Enterprise user, an administrator will have to enable Copilot coding agent before you can use it.
To learn more, see “Asking GitHub Copilot to make changes to an existing pull request” in the GitHub docs.
The post Ask @copilot to make changes to any pull request appeared first on The GitHub Blog.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み