────● █▀▀ ▄▀█ █▀█
●──── █▄█ █▀█ █▀▄ is easy review reply tool.
go install github.com/kijimaD/gar@main
To use gar, you need to get a GitHub API token with an account which has enough permissions to comment.For a private repository you need repo
scope and for a public repository you need public_repo
scope.
export GH_TOKEN="....."
Or set it in github.token in gitconfig:
git config --global github.token "....."
- Receive a code review.
- Fix problem and commit. Include correspond review comment URL in commit message.
e.g.https://github.com/kijimaD/gar/pull/1#discussion_r1037682054
git push
- Run gar on working directory. Show dry run result and yes/no prompt.
- e.g.
gar 1
(1 is PR number)
$ gar 1
+-----+-------------------+----------------+------+
| IDX | COMMIT | LINKED COMMENT | SEND |
+-----+-------------------+----------------+------+
| 00 | 6eed27d test: thi | | No |
| 01 | 369a79d feat: thi | this is review | Yes |
+-----+-------------------+----------------+------+
? Send reply?[yes/no]:
▸ yes
no
- Answer prompt and send reply
- Check GitHub
make help