Enhancement: Enable Public Repo Tracking Without Personal Access Token (PAT)#238
Enhancement: Enable Public Repo Tracking Without Personal Access Token (PAT)#238Julliet-Mohanta wants to merge 2 commits into
Conversation
✅ Deploy Preview for github-spy ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
🎉 Thank you @Julliet-Mohanta for your contribution. Please make sure your PR follows https://github.com/GitMetricsLab/github_tracker/blob/main/CONTRIBUTING.md#-pull-request-guidelines
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThis PR enables optional Personal Access Token (PAT) authentication by making the token input optional, allowing Octokit to initialize without a token for unauthenticated API access, and improving error handling to distinguish between rate-limit, permission, and not-found failures. The octicons library dependency is also updated. ChangesOptional PAT and Unauthenticated API Support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Related Issue
Issue 224:Enhancement: Enable Public Repo Tracking Without Personal Access Token (PAT)
Description
---Changes:
1.Optional PAT: Make the PAT input field optional in the layout.
2.Unauthenticated Fetch: When a repository URL is entered, attempt to fetch data using a standard GET request to without an authorization header.
3.Fallback/Rate Limit Handling:If the request succeeds, render the tracking data immediately.
4.If the request fails due to a 403 (Rate Limit Exceeded), then prompt the user to provide a PAT("GitHub API rate limit exceeded. Please provide a PAT to continue.")
5..If the repository is private, show a specific message: "Private repository detected. Please input PAT".
6.If username is wrong,display('User not found. Please check the spelling of the GitHub username.').
How Has This Been Tested?
Run locally as well as in network
Screenshots (if applicable)
Summary by CodeRabbit
New Features
Bug Fixes
Chores