Skip to content

azu/get-github-pr-review-comments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-github-pr-review-comments

Get PR review comments.

image

You can use it in an editor like VSCode. The editor can jump to the file path and line.

Install

Install with npm:

npm install get-github-pr-review-comments

Usage

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`

Snippet

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`

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

About

Get PR review comments from command line.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •