-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: Add support for Copilot usage metrics reports API #3893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3893 +/- ##
==========================================
+ Coverage 92.39% 92.44% +0.04%
==========================================
Files 203 203
Lines 14833 14925 +92
==========================================
+ Hits 13705 13797 +92
Misses 926 926
Partials 202 202 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thank you, @henriklundstrom! I've updated the |
Thanks, I've merged the latest master into this branch. |
gmlewis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @henriklundstrom!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
cc: @stevehipwell - @alexandear - @zyfy29
…eUsersMetricsReport
…ationUsersMetricsReport
…UsersDailyMetricsReport
…ailyMetricsReport
…tionUsersDailyMetricsReport
|
Thank you, @henriklundstrom and @alexandear! |
Implements the new endpoints for retrieving reports of copilot metrics for enterprises and organizations. See https://docs.github.com/en/enterprise-cloud@latest/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28. The API does not return the reports directly, but rather returns signed download URLs with a limited expiration time. The proposed implementation simply returns the API response, leaving the actual downloading of the reports to the user.
Will require an update to the
openapi_operations.yaml-file.