GitHub Copilot がリポジトリ別利用指標を公開
GitHub は Copilot の利用状況を示す REST API を更新し、企業・組織向けにリポジトリごとのプルリクエスト活動データを日次で報告する新エンドポイントを一般提供した。
Copilot の利用状況を示す REST API に、リポジトリレベルの活動データが追加されました。これにより、Copilot コーディングエージェントと Copilot コードレビューによるプルリクエストの活動が、日次・リポジトリ別に詳細に報告できるようになります。この機能はエンタープライズ向けレポートでも組織向けレポートでも利用可能です。
新機能
新たに追加された 2 つのエンドポイントでは、特定の日付における単一リポジトリごとのレポートを取得できます。
GET /enterprises/{enterprise}/copilot/metrics/reports/repos-1-day?day=YYYY-MM-DD
GET /orgs/{org}/copilot/metrics/reports/repos-1-day?day=YYYY-MM-DD
各レスポンスには、以下の活動データが含まれます。
- Copilot コーディングエージェントによって作成・マージされたプルリクエスト
- Copilot コードレビューによるレビュー実施数(コメントタイプごとの内訳付き)
なぜ重要なのか
これまで Copilot の利用状況レポートは組織レベルやユーザーレベルまでしか提供されていませんでした。しかし、リポジトリ単位での報告が可能になったことで、コードベース全体において Copilot コーディングエージェントと Copilot コードレビューが具体的にどの場所でプルリクエストの活動に貢献しているかを把握できます。
これは「リポジトリごとの洞察」や「AI 導入準備度(AI-readiness)レポート」の基盤となる機能です。これにより、最も恩恵を受けられるリポジトリに対して重点的にトレーニングや支援を行うといった施策を打つことが可能になります。
重要な注意点
これらのレポートにアクセスできるのは、エンタープライズオーナー、請求管理担当者、組織オーナー、あるいは「Copilot メトリクスの表示」権限が付与されたカスタムロールを持つユーザーです。なお、この機能を有効にするには、「Copilot の利用状況ポリシー」が有効になっている必要があります。
詳細は Copilot 利用状況 API のドキュメントをご覧ください。
GitHub Blog にて、「リポジトリレベルの GitHub Copilot 利用状況を示す指標」が一般公開されました。
この機能により、組織はチームやプロジェクト全体での Copilot の活用状況を可視化できるようになります。これまで個々の開発者の利用データは把握できても、組織全体の傾向を俯瞰するのは難しかったため、今回のリリースは大きな一歩となります。
原文を表示
The Copilot usage metrics REST API now reports repository-level activity. Two new endpoints return a daily, per-repository breakdown of pull request activity for Copilot coding agent and Copilot code review. They do this for both enterprise and organization reports.
What’s new
Two new endpoints return a per-repository report for a single day:
GET /enterprises/{enterprise}/copilot/metrics/reports/repos-1-day?day=YYYY-MM-DD
GET /orgs/{org}/copilot/metrics/reports/repos-1-day?day=YYYY-MM-DD
Each response returns the following activity:
Pull requests created and merged by Copilot coding agent.
Pull requests reviewed by Copilot code review, with suggestion counts broken down by comment type.
Why this matters
Until now, Copilot usage metrics stopped at the organization and user level. Repository-level reporting lets you see exactly where Copilot coding agent and Copilot code review are driving pull request activity across your codebase. This is the foundation for repository insights and AI-readiness reporting, so you can target enablement at the repositories that stand to benefit most.
Important notes
Enterprise owners and billing managers, organization owners, and anyone with a custom organization or enterprise role that grants the View Copilot Metrics permission can access these reports. The Copilot usage metrics policy must be enabled to support this functionality.
Visit the Copilot usage metrics API documentation to get started.
The post Repository-level GitHub Copilot usage metrics generally available appeared first on The GitHub Blog.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み