Copilot コードレビューコメント種類の使用状況メトリクス API が追加されました
GitHub は Copilot コードレビューの機能強化として、コメントタイプ別(セキュリティやバグリスクなど)の提案数と適用数の詳細を計測可能な API を新設し、開発チームが AI の価値を定量的に評価できる環境を整えた。
キーポイント
コメントタイプ別のメトリクス追加
Copilot コードレビューの提案を「セキュリティ」や「bug_risk」といったカテゴリ別に分類し、各タイプの総数と開発者による適用数を API で取得可能になった。
組織レベルでの可視化強化
エンタープライズおよび組織レポートにおいて、1 日単位または 28 日間のローリングウィンドルで詳細な分析が可能となり、リポジトリ単位のドリルダウンは現在調査中である。
AI の実効性評価の具体化
提案されたフィードバックが実際に適用された割合をタイプ別に比較することで、Copilot がどの分野で最も価値を提供しているかを客観的に測定できる。
影響分析・編集コメントを表示
影響分析
この更新により、企業や開発チームは Copilot の導入効果を「使用頻度」だけでなく「品質と実用性」の観点から詳細に評価できるようになります。特にセキュリティやバグリスクといった重要なカテゴリでの AI の貢献度を可視化できるため、AI ツールの ROI 計算や導入戦略の最適化に直結する重要なデータソースとなります。
編集コメント
AI ツールの導入効果を定量的に評価する指標がさらに細分化され、現場の意思決定を支援する実用的なアップデートです。特にセキュリティリスク検出などの特定カテゴリにおける AI の貢献度を可視化できる点は、コンプライアンス対応や品質保証チームにとって極めて重要です。
Copilot コードレビューのアクティビティを理解していただくために、Copilot 使用状況メトリクス API は、Copilot コードレビューの提案をコメントタイプ別に内訳するようになりました。エンタープライズレポートと組織レポートの両方で、pull_requests の下に新しい copilot_suggestions_by_comment_type 配列が利用可能になりました。
新機能
各 Copilot コードレビューの提案(つまり、Copilot によって自動的に生成された行アンカー付きレビューコメント)について、この新しい配列は、Copilot がその提案に割り当てたコメントタイプ(セキュリティや bug_risk など)ごとの集計数を報告します。
comment_type: レビュー提案に対して Copilot が割り当てたカテゴリ。
total_copilot_suggestions: 報告期間中に投稿された、そのコメントタイプの Copilot コードレビュー提案の総数。
total_copilot_applied_suggestions: その中で開発者によって適用された提案の数。
この内訳は、エンタープライズレベルと組織レベルの両方で、1 日単位のレポートおよび 28 日間のローリングウィンドウレポートで利用可能です。現時点ではリポジトリレベルへの詳細な分析はできませんが、将来的には調査が進められています。
これが重要な理由
Copilot が何を検出しているかを理解する: Copilot コードレビューがプルリクエスト内で最も頻繁に表面化させる問題のカテゴリを確認できます。
開発者が対応したフィードバックを測定する: 提案数とタイプごとの適用数を比較することで、Copilot コードレビューがどの分野で最大の価値を提供しているかを把握できます。
コードレビューの全体像を完成させる:既存のコパイロットコードレビューユーザー数やプルリクエストメトリクスと組み合わせることで、コパイロットコードレビューがどの程度利用されているかだけでなく、どのようなフィードバックを提供し、それがどれほど採用されているかも把握できるようになります。
重要な注意点
これらのメトリクスは、REST API を通じてコパイロット使用状況のメトリクスにアクセス権限を持つエンタープライズ管理者および組織オーナーのみが利用可能です。
含まれるのはコパイロットコードレビューによって投稿された提案のみです。内訳は、各提案が投稿された時点でコパイロットが割り当てたコメントタイプに基づいています。
GitHub コミュニティ内のディスカッションに参加してください。
「Copilot code review comment types now in usage metrics API」という記事は、最初に The GitHub Blog で公開されました。
原文を表示
To help you understand the activity generated by Copilot code review users, the Copilot usage metrics API now breaks down Copilot code review suggestions by comment type. A new copilot_suggestions_by_comment_type array is available under pull_requests in both enterprise and organization reports.
What’s new
For each Copilot code review suggestion (i.e., a line-anchored review comment generated automatically by Copilot), the new array reports aggregated counts by the comment types Copilot assigned to the suggestion (e.g., security or bug_risk):
comment_type: The category Copilot assigned to the review suggestion.
total_copilot_suggestions: The total number of Copilot code review suggestions of that comment type posted during the reporting period.
total_copilot_applied_suggestions: The number of those suggestions that were applied by a developer.
The breakdown is available in single-day and 28-day rolling window reports at both the enterprise and organization levels. You cannot currently drill down to the repository level, though this is being investigated for the future.
Why this matters
Understand what Copilot is catching: See which categories of issues Copilot code review surfaces most often in your pull requests.
Measure which feedback developers act on: Compare suggestion volume to applied suggestions per type to see where Copilot code review delivers the most value.
Complete the code review picture: Combined with the existing Copilot code review user counts and pull request metrics, you now have visibility into not just how much Copilot code review is used, but what kinds of feedback it produces and how often it’s adopted.
Important notes
These metrics are available to enterprise administrators and organization owners who have access to Copilot usage metrics through the REST API.
Only suggestions posted by Copilot code review are included. The breakdown reflects the comment type Copilot assigned to each suggestion at the time it was posted.
Join the discussion within GitHub Community.
The post Copilot code review comment types now in usage metrics API appeared first on The GitHub Blog.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み