Pass GitHub Personal Access Token as env variable
Nobody has claimed this yet.
- #88 by @MrTangLuyao — closed without merging
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- github, typescript
- Domain
- authentication, cli
Research direction
The issue asks for a --github-pat CLI option and a GITHUB_PERSONAL_ACCESS_TOKEN environment variable, so start where the CLI reads its arguments and where the token is currently obtained. Linked PR #88 was closed without merging, so read its discussion first to learn why it was rejected before writing anything. Done means the flag and the variable both supply the token and the existing behaviour is unchanged when neither is set.
Written by the indexing model from the issue text.
Description
Clear and concise description of the problem
When running npx pulls.review it would be nice to be able to pass the GitHub Personal Access Token as a cli option or via env variable.
Just a slight convenience :)
Suggested solution
npx pulls.review --github-pat xx
or it reads GITHUB_PERSONAL_ACCESS_TOKEN
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- Dominant language
- TypeScript
- Stars
- 622
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from antfu/pulls.review
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 32/100
antfu/pulls.review#126 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
antfu/pulls.review#125 ·
-
Say when the analysis on screen predates the commits being shownPossibly taken @0froq claimed this 15 days ago. Openenhancement
Difficulty 3/5 1-2 days Newbie friendliness 25/100
antfu/pulls.review#122 ·
-
Reuse an AI analysis across refs that show the same diff (compare → pull request)Possibly taken @0froq claimed this 15 days ago. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 25/100
antfu/pulls.review#121 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
antfu/pulls.review#120 ·
All issues in antfu/pulls.review
Similar issues
-
triage
Difficulty 1/5 Under an hour Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
ranxianglei/billion-context#7860 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opencollective/opencollective#9177 ·