Skip to content

kijimaD/gar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

────● █▀▀ ▄▀█ █▀█
●──── █▄█ █▀█ █▀▄ is easy review reply tool.

Go Reference ⚗️Check

Install

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 "....."

Workflow

  1. Receive a code review.
  1. Fix problem and commit. Include correspond review comment URL in commit message.
    e.g. https://github.com/kijimaD/gar/pull/1#discussion_r1037682054
  2. git push
  3. 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
  1. Answer prompt and send reply
  2. Check GitHub

Development

make help