feat: Add support for GitHub personal access tokens#21
Merged
Conversation
Introduces a new Personal Access Token source for OAuth2 authentication, supporting both classic and fine-grained tokens. Updates the README with usage instructions and security notes. Adds comprehensive tests for the new token source functionality.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21 +/- ##
==========================================
+ Coverage 92.66% 94.28% +1.62%
==========================================
Files 1 2 +1
Lines 109 140 +31
==========================================
+ Hits 101 132 +31
Misses 6 6
Partials 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Introduces a cleanHTTPClient function for better HTTP client defaults and connection pooling. Updates NewInstallationTokenSource to use the new HTTP client and wraps the installationTokenSource with oauth2.ReuseTokenSource for improved token reuse.
Added changelog and README updates for v1.4.0, highlighting new personal access token support, advanced token caching, high-performance HTTP client, and significant performance optimizations. Documentation now reflects new features and improvements for production readiness and efficiency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Introduces a new Personal Access Token source for OAuth2 authentication, supporting both classic and fine-grained tokens. Updates the README with usage instructions and security notes. Adds comprehensive tests for the new token source functionality.
Type of Change
Please delete options that are not relevant.
Testing
Documentation
Checklist