Skip to content

feat: Add Copilot app metrics to usage metrics structs - #4488

Merged
gmlewis merged 1 commit into
google:masterfrom
Tens1des:feat/copilot-app-metrics
Aug 28, 2026
Merged

gmlewis merged 1 commit into
google:masterfrom
Tens1des:feat/copilot-app-metrics

Conversation

@Tens1des

Copy link
Copy Markdown
Contributor

Fixes #4487

Adds support for Copilot app usage metrics fields documented at:
https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics

Test plan

  • go test ./github/... -run Copilot
  • ./script/generate.sh

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Aug 25, 2026
@codecov

codecov Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.52%. Comparing base (c48dbf5) to head (fc8444f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4488   +/-   ##
=======================================
  Coverage   98.52%   98.52%           
=======================================
  Files         195      195           
  Lines       17745    17745           
=======================================
  Hits        17484    17484           
  Misses        261      261           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis gmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @Tens1des!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @alexandear - @Not-Dhananjay-Mishra

@gmlewis

gmlewis commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

@Tens1des - do you want to resolve the conflicts from the recent #4481 merge, or would you like me to?
(I'm fine either way.)

Add used_copilot_app, used_copilot_cloud_agent, totals_by_copilot_app,
and daily_active_copilot_app_users to match the Copilot usage metrics API.

Fixes google#4487
@Tens1des
Tens1des force-pushed the feat/copilot-app-metrics branch from 4192472 to fc8444f Compare August 28, 2026 22:54
@Tens1des

Copy link
Copy Markdown
Contributor Author

Thanks — I resolved the conflicts from #4481 (rebased onto master and switched the new test pointers to new(...)). Pushing now.

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Aug 28, 2026
@gmlewis
gmlewis merged commit 0fb1d5e into google:master Aug 28, 2026
15 checks passed
Tens1des added a commit to Tens1des/go-github that referenced this pull request Aug 29, 2026
Resolve conflicts with google#4481 (new pointers) and google#4488 (Copilot app metrics).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Copilot app metrics fields to Copilot usage metrics structs

3 participants