Skip to content

feat: Add Copilot user-teams daily metrics report endpoints - #4500

Merged
gmlewis merged 3 commits into
google:masterfrom
Tens1des:feat/copilot-user-teams-daily-metrics
Sep 11, 2026
Merged

gmlewis merged 3 commits into
google:masterfrom
Tens1des:feat/copilot-user-teams-daily-metrics

Conversation

@Tens1des

Copy link
Copy Markdown
Contributor

Fixes #4499

Adds Copilot user-teams-1-day report endpoints and download helper.

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

Test plan

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

Add enterprise and organization user-teams-1-day report methods and
DownloadUserTeamsDailyMetrics for joining team membership with usage metrics.

Fixes google#4499
@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Aug 29, 2026
Comment thread github/copilot.go Outdated
@codecov

codecov Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.53%. Comparing base (3e1284c) to head (554d02e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4500   +/-   ##
=======================================
  Coverage   98.53%   98.53%           
=======================================
  Files         195      195           
  Lines       17795    17827   +32     
=======================================
+ Hits        17534    17566   +32     
  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

Resolve conflicts with google#4498 repository daily metrics report endpoints.

@Not-Dhananjay-Mishra Not-Dhananjay-Mishra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@gmlewis

gmlewis commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Thank you, @Not-Dhananjay-Mishra!
Merging.

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Sep 11, 2026
@gmlewis
gmlewis merged commit c9ab302 into google:master Sep 11, 2026
15 checks passed
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 user-teams daily metrics report endpoints

3 participants