Copilot コードレビュー:新設定と制御機能の追加
GitHub は Copilot Code Review の新機能として、組織レベルでのランナー制御、コンテンツ除外設定の統合、およびカスタム指示文の文字制限撤廃を発表し、開発者の柔軟な運用を可能にした。
キーポイント
組織レベルのランナー制御強化
Copilot Code Review のデフォルトランナー設定を組織単位で一元管理できるようになり、管理者は全リポジトリに適用する設定や個別設定の上書きロックが可能になった。
コンテンツ除外機能の統合
リポジトリ、組織、エンタープライズレベルでの Copilot コンテンツ除外設定を尊重し、特定のファイルやディレクトリがレビューに利用されないように制御できるようになった。
カスタム指示文の文字制限撤廃
これまで 4000 文字だったカスタム指示文(copilot-instructions.md)の制限が撤廃され、より詳細で柔軟なコードレビューのコンテキスト指定が可能になった。
影響分析・編集コメントを表示
影響分析
このアップデートは、GitHub Copilot Code Review を単なるツールから、企業のセキュリティポリシーやインフラ要件に厳密に適合できる本格的なエンタープライズ機能へと進化させました。特に組織レベルでの設定管理とコンテンツ制御の強化により、大規模開発チームにおける AI の安全かつ効率的な導入が現実的なものとなります。
編集コメント
大規模組織における AI ツールの導入障壁を下げる、非常に実用的なアップデートです。特にセキュリティ要件が厳しい環境でも Copilot を活用できる道が開けた点は評価できます。
新しい組織レベルのランナー制御、Copilot コンテンツ除外サポート、およびリポジトリ固有の指示における文字数制限の撤廃により、Copilot コードレビューは、リポジトリ内や組織内でニーズに合わせてより柔軟に調整できるようになりました。
⚙️ 組織レベルのランナー制御
Copilot コードレビューのエージェント型アーキテクチャのリリースに伴い、Copilot コードレビューが GitHub Actions(GitHub Actions)によって駆動されることを発表しました。デフォルトでは、Copilot コードレビューは標準的な GitHub ホスト型のランナーで実行されますが、チームはより高い制御性を確保するために、セルフホスト型または大規模なランナーを設定できます。カスタムランナーのセットアップを容易にするため、Copilot コードレビューのランナー種別は теперь 組織レベルで設定可能となりました。これにより、1 つの設定で組織内のすべてのリポジトリに適用できるようになります。
組織管理者は now 以下のことができます:
- 各リポジトリを個別に設定する必要なく、すべてのリポジトリで自動的に使用される Copilot コードレビューのデフォルトランナーを設定する。
- ランナー設定をロックし、組織レベルのデフォルトが個々のリポジトリの設定を上書きできるようにする。
この設定を行うには、組織ページへ移動し、「Copilot」→「Runner type(ランナー種別)」→「Runner type configuration(ランナー種別設定)」へ進んでください。この設定は、両方が有効になっている場合、Copilot コードレビューと Copilot クラウドエージェントの両方に適用されます。
️ コンテンツ除外サポート
Copilot のコードレビューは現在、リポジトリ、組織、およびエンタープライズレベルの Copilot コンテンツ除外設定を尊重するようになりました。これにより、レビュー中に特定のファイルやディレクトリが Copilot によって利用されるのを防ぐことができます。リポジトリ管理者は、パスベースルールを使用してリポジトリ設定で除外対象のパスを設定できます。
これにより、Copilot のコードレビューに利用可能なリポジトリコンテンツを制御でき、チーム、組織、またはエンタープライズの境界に合わせてレビューを調整したり、レビューに関連しないコンテキストが Copilot によって利用されるのを防いだりすることができます。
詳細については、Copilot に対するコンテンツ除外の設定に関するドキュメントをご覧ください。
カスタム指示の文字数制限が撤廃されました
以前は、.github ディレクトリ配下に配置された copilot-instructions.md および *.instructions.md ファイルが 4000 文字に達すると、Copilot のコードレビューはそれらのファイルの読み取りを停止していました。この制限は現在撤廃され、カスタム指示における追加のカスタマイズと柔軟性が可能になりました。
GitHub コミュニティ内のディスカッションに参加してください。
本記事「Copilot code review: New configurations and controls (続き 2/2)」は、The GitHub Blog で最初に公開されました。
原文を表示
With new organization runner controls, Copilot content exclusion support, and the removal of the character limit on repository custom instructions, Copilot code review is now easier to tailor to your needs within your repository and organization.
⚙️ Organization runner controls
With the release of Copilot code review’s agentic architecture, we announced that Copilot code review is powered by GitHub Actions. By default, Copilot code review runs on the standard GitHub-hosted runner, but teams can configure self-hosted or large runners for more control over the runner type. To support ease of setup of custom runners, Copilot code review’s runner type can now be configured at the organization-level, meaning that one configuration can apply to all repositories within the organization.
Organization admins can now:
Set Copilot code review’s default runner to be automatically used across all repositories, without requiring each repository to be individually configured.
Lock the runner setting so the organization default overrides any individual repository configurations.
To set this up, navigate to your organization, then go to Copilot -> Runner type -> Runner type configuration. Your configuration will apply to both Copilot code review and Copilot cloud agent if both are enabled.
️ Content exclusion support
Copilot code review now respects repository, organization, and enterprise-level Copilot content exclusion settings, so you can prevent Copilot from utilizing specified files or directories during its review. Repository administrators can configure excluded paths in repository settings using path-based rules.
This gives you control over which repository content is available to Copilot code review, helping you align reviews with your team, organization, or enterprise’s boundaries, or prevent Copilot from utilizing context that isn’t relevant to the review.
For more information, check out our docs about configuring content exclusions for Copilot.
Custom instructions character limits have been removed
Previously, Copilot code review would stop reading copilot-instructions.md and *.instructions.md files located under the .github directory once the file reached 4000 characters in size. That limit has now been removed, allowing additional customization and flexibility in your custom instructions.
Join the discussion within GitHub Community.
The post Copilot code review: New configurations and controls appeared first on The GitHub Blog.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み