Skip to content

Add Copilot Usage Summary for Organization - #3321

Merged
gmlewis merged 14 commits into
google:masterfrom
nordnet:copilot_usage_summary
Oct 14, 2024
Merged

Add Copilot Usage Summary for Organization#3321
gmlewis merged 14 commits into
google:masterfrom
nordnet:copilot_usage_summary

Conversation

@claystation

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
@codecov

codecovBot commented Oct 10, 2024

Copy link
Copy Markdown

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
Copy Markdown
ContributorAuthor

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

@gmlewisgmlewis 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, @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.

Comment threadgithub/copilot.go Outdated
Comment threadgithub/copilot.go Outdated
Comment threadgithub/copilot.go Outdated
@gmlewisgmlewis added the NeedsReview PR is awaiting a review before merging. label Oct 10, 2024
@gmlewis

Copy link
Copy Markdown
Collaborator

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

@gmlewisgmlewis 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, @claystation !
LGTM.

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

@tomfeigintomfeigin 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

Copy link
Copy Markdown
Collaborator

Thank you, @tomfeigin !
Merging.

@gmlewisgmlewis removed the NeedsReview PR is awaiting a review before merging. label Oct 14, 2024
@gmlewis
gmlewis merged commit 5e806b6 into google:masterOct 14, 2024
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
Sign up for freeto 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

@claystation@gmlewis@tomfeigin