docs: Deprecate old Copilot metrics endpoints closed on April 2, 2026#4137
docs: Deprecate old Copilot metrics endpoints closed on April 2, 2026#4137Bahtya wants to merge 1 commit intogoogle:masterfrom
Conversation
The four legacy Copilot metrics endpoints (GetEnterpriseMetrics, GetEnterpriseTeamMetrics, GetOrganizationMetrics, GetOrganizationTeamMetrics) were closed down on April 2, 2026 for github.com. Add Deprecated notices pointing users to the replacement report methods while keeping the functions for any GitHub Enterprise Server users who may still have access. Fixes google#4136
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @Bahtya!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
cc: @stevehipwell - @alexandear - @zyfy29 - @Not-Dhananjay-Mishra - @munlicode
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4137 +/- ##
=======================================
Coverage 93.74% 93.74%
=======================================
Files 211 211
Lines 19685 19685
=======================================
Hits 18453 18453
Misses 1034 1034
Partials 198 198 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Wow, thank you so much @gmlewis for the review and approval! 🎉 I really appreciate you taking the time to look at this! I just signed the Google CLA at https://cla.developers.google.com/ — hopefully the check will update on the next push or re-check. Looking forward to getting a second LGTM! 😄 Thanks for the great project! |
Thank you, @Bahtya! Unfortunately, the rescan didn't work. Please click on the above link which is https://github.com/google/go-github/pull/4137/checks?check_run_id=70667622891 |
|
LGTM |
Summary
Relates to: #4136.
The four legacy Copilot metrics endpoints were officially closed down on April 2, 2026 for github.com (as described in the GitHub Docs):
GetEnterpriseMetrics(GET /enterprises/{enterprise}/copilot/metrics)GetEnterpriseTeamMetrics(GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics)GetOrganizationMetrics(GET /orgs/{org}/copilot/metrics)GetOrganizationTeamMetrics(GET /orgs/{org}/team/{team_slug}/copilot/metrics)Per the maintainer's guidance in the issue, these methods are kept in place (as they may still work on GitHub Enterprise Server) but are now marked with
// Deprecated:notices directing users to the replacement endpoints:GetEnterpriseDailyMetricsReport/GetEnterpriseMetricsReport(for enterprise-level metrics)GetOrganizationDailyMetricsReport/GetOrganizationMetricsReport(for org-level metrics)Note: The 8 new replacement methods were already implemented in #3893. This PR only adds the deprecation notices to the 4 old methods.
Test plan
go test ./github/... -run TestCopilotgo vet ./github/...passes with no issuesBahtya