4.0.0 • Published 4 years ago
@redisrupt/gh v4.0.0
gh (github helper)
Add base branch as tag to each open PR
Configure token
export LABELER_GITHUB_TOKEN=<your token>
or
save your token in a file and point to it using the --tokenFile
cli argument
The token can be created in this page https://github.com/settings/tokens
This is required or this cli won't work
Install
- Clone this repo locally
- go into the folder for the repo
npm i
- npm i -g .
Usage
Process all PRs
This will process all open prs and will add labes as needed.
- will determine if the PR needs review
- will determine if the PR is waiting for submitter
- will determine if the PR is ready to merge
gh --tokenFile=~/.github-api-token-file --repo <REPO> --owner <OWNER> --action tagAllPRs
Process a single PR
Will process a single PR.
gh --tokenFile=~/.github-api-token-file --repo <REPO> --owner <OWNER> --action tagPR --prId <PR_ID>
And that's it. Enjoy.