Pass GitHub Personal Access Token as env variable

Open
#71 0 comments 0 reactions 0 assignees View on GitHub

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

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

enhancement
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
Dominant language
TypeScript
Stars
622
Forks
40
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from antfu/pulls.review

All issues in antfu/pulls.review

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.