Skip to content

Add Copilot Usage Summary for Organization #3321

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

Merged
merged 14 commits into from
Oct 14, 2024

Conversation

claystation
Copy link
Contributor

Github has a Rest API to get the usage summary of Copilot within the organization. This PR implements the functionality to fetch that data.
API Docs: Here

Please let me know what you think!

(Fixup of #3318 due to CLA signing issues)

@claystation
Copy link
Contributor Author

I will implement other missing API methods as well, converting to draft for now whilst i work on more!

@claystation claystation marked this pull request as draft October 10, 2024 08:39
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.33%. Comparing base (2b8c7fa) to head (8b04d1c).
Report is 151 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3321      +/-   ##
==========================================
- Coverage   97.72%   93.33%   -4.39%     
==========================================
  Files         153      171      +18     
  Lines       13390    11795    -1595     
==========================================
- Hits        13085    11009    -2076     
- Misses        215      692     +477     
- Partials       90       94       +4     

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

@claystation claystation marked this pull request as ready for review October 10, 2024 15:41
@claystation
Copy link
Contributor Author

@gmlewis i added all missing API methods from the Github API :) Let me know what you think!

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @claystation !
A couple minor tweaks, please, and one question.

After that, we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Oct 10, 2024
@gmlewis
Copy link
Collaborator

gmlewis commented Oct 10, 2024

Also, please run go generate ./... as discussed in step 4 of CONTRIBUTING.md and push (not force-push) the changes to this PR. Thanks!

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @claystation !
LGTM.

Awaiting second LGTM+Approval from any other contributor to this repo before merging.

Copy link
Contributor

@tomfeigin tomfeigin left a comment

Choose a reason for hiding this comment

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

LGTM

@gmlewis
Copy link
Collaborator

gmlewis commented Oct 14, 2024

Thank you, @tomfeigin !
Merging.

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Oct 14, 2024
@gmlewis gmlewis merged commit 5e806b6 into google:master Oct 14, 2024
6 of 7 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.

3 participants