Skip to content

gh-copilot: update Copilot metrics endpoints & schemas to latest API #8964

Closed as not planned

Description

@ewega

The gh-copilot plugin is partially out of date with GitHub's Copilot REST API (2026-03-10). It pins the right API version but drops several response fields on extract, loses org identity on org metrics, and skips the 28-day reports.

Docs: https://docs.github.com/en/rest/copilot/copilot-metrics

Details in comments below.

Activity

  1. ewega commented on Jun 30, 2026

    @ewega
    ContributorAuthor

    Field gaps (in 2026-03-10, dropped on extract): daily/weekly/monthly_active_copilot_cloud_agent_users, used_copilot_coding_agent, used_copilot_cloud_agent, ai_adoption_phase / totals_by_ai_adoption_phase, pull_requests.copilot_suggestions_by_comment_type, totals_by_cli.token_usage.avg_tokens_per_request, totals_by_cli.last_known_cli_version.

    Org identity: ExtractOrgMetrics writes org data into the enterprise table with EnterpriseId: "" and drops organization_id.

    Missing endpoints: enterprise-28-day/latest, users-28-day/latest, organization-28-day/latest (different day_totals[] envelope).

    Likely bug: report metadata parsing reads res.Body twice (io.ReadAll then parseReportMetadataResponse), second read is empty.

    Reminder: new model fields need a migration script + GetTablesInfo() update.

  2. self-assigned this
    on Jul 13, 2026
  3. github-actions commented on Sep 12, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

  4. github-actions commented on Sep 19, 2026

    @github-actions
    Contributor

    This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions