Skip to content
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

Add Copilot Usage Summary for Organization #3318

Closed
wants to merge 4 commits into from

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!

Copy link

google-cla bot commented Oct 9, 2024

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.

@claystation claystation changed the title Copilot Organization Summary Copilot Usage Summary for Organization Oct 9, 2024
@gmlewis gmlewis changed the title Copilot Usage Summary for Organization Add Copilot Usage Summary for Organization Oct 9, 2024
@gmlewis gmlewis added NeedsReview PR is awaiting a review before merging. waiting for signed CLA labels Oct 9, 2024
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.06%. Comparing base (2b8c7fa) to head (d45f521).
Report is 144 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3318      +/-   ##
==========================================
- Coverage   97.72%   93.06%   -4.67%     
==========================================
  Files         153      172      +19     
  Lines       13390    11773    -1617     
==========================================
- Hits        13085    10956    -2129     
- Misses        215      723     +508     
- Partials       90       94       +4     

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

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 !
Just a few tweaks, please, then we should be ready for a second LGTM+Approval from any other contributor to this repo (and signed CLA) before merging.

github/copilot.go Show resolved Hide resolved
github/copilot.go Show resolved Hide resolved
github/copilot.go Show resolved Hide resolved
github/copilot_test.go Show resolved Hide resolved
@claystation
Copy link
Contributor Author

@gmlewis i will close this PR due to CLA signing issues. I opened #3321 which also contains a commit with the requested changes. Please review that one, i hope it should be good!

@gmlewis gmlewis removed NeedsReview PR is awaiting a review before merging. waiting for signed CLA labels Oct 10, 2024
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.

4 participants