Get PR review comments.
You can use it in an editor like VSCode. The editor can jump to the file path and line.
Install with npm:
npm install get-github-pr-review-comments
Usage
$ get-github-pr-review-comments --repo owner/repo --projectRoot /path/to/project --token <GitHubToken> <sha>
Options
--repo owner/repo
e.g.) azu/get-github-pr-review-comments
--projectRoot -p /path/to/root-project
e.g.) /Users/azu/get-github-pr-review-comments
--token GitHub Token
Get from https://github.com/settings/tokens/new
or
export GH_TOKEN=XXX
Example:
get-github-pr-review-comments --repo azu/get-github-pr-review-comments --projectRoot /path/to/get-github-pr-review-comments --token xxx `git rev-parse HEAD`
Shell script:
declare repo=$(git config --local remote.origin.url | perl -pe's/(git@|https:\/\/)?github.com(:|\/)(\w+)\/(\w+)(.git)?/$3\/$4/' | sed 's/\.git//g')
GH_TOKEN="xxx" get-github-pr-review-comments \
--repo "${repo}" \
--projectRoot `git rev-parse --show-toplevel` \
`git rev-parse HEAD`
See Releases page.
Install devDependencies and Run npm test
:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT © azu