Uh oh!
There was an error while loading. Please reload this page.
feat: Add Credentials Revoke API - #3847
Conversation
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. |
8d3e65f to
b2b08faCompareCodecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## master #3847 +/- ##
=======================================
Coverage 92.42% 92.43% =======================================
Files 197 198 +1 Lines 14167 14175 +8 =======================================
+ Hits 13094 13102 +8
Misses 884 884 Partials 189 189 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cointem
commented
Dec 1, 2025
refs #3846 |
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @cointem!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
cc: @stevehipwell - @alexandear - @zyfy29
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
gmlewis
commented
Dec 1, 2025
Thank you, @alexandear! |
Uh oh!
There was an error while loading. Please reload this page.
Fixes: #3846.
This pull request introduces a new service for managing credentials in the GitHub API client, specifically adding support for revoking credentials via the API. The changes include a new service implementation, comprehensive unit tests, and integration of the service into the main client.
New Credentials Service Integration:
CredentialsServiceto the client, allowing users to revoke a list of credentials (tokens) through the newRevokemethod ingithub/credentials.go.CredentialsServicein theClientstruct and initialized it in the client setup, ensuring it is available for use. [1][2]Testing Improvements:
TestCredentialsService_Revokeingithub/credentials_test.goto verify correct request formation, response handling, and error cases for credential revocation.