Copilot コードレビュー:新設定と制御機能の追加
本文の状態
日本語全文を表示中
詳細モードで約3分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
GitHub Changelog
GitHub が Copilot コードレビューに組織ランナー制御、コンテンツ除外サポート、リポジトリ固有指示の文字制限撤廃を追加し、チームが要件に合わせて柔軟に調整可能になった。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
新しい組織レベルのランナー制御、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 コミュニティ内のディスカッションに参加してください。
原文を表示
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デイリーブリーフで今日の重要ニュースをまとめ読み