Skip to content

Copilot usage metrics: missing ai_credits_used and AI adoption phase fields #4479

Description

@Tens1des

Description

The Copilot usage metrics report JSON includes fields that go-github does not yet unmarshal:

  • ai_credits_used on per-user reports (*-users-1-day, *-users-28-day)
  • ai_adoption_phase on per-user reports
  • totals_by_ai_adoption_phase on aggregated enterprise/organization daily reports

These fields are dropped by json.Unmarshal today.

References

Proposed fix

Add matching fields/types on CopilotUserDailyMetrics, CopilotUserPeriodicMetrics, and CopilotDailyMetrics, with download-path tests (same pattern as #4460).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions