Help us shape the future of Go! Take the 2026 Go Developer Survey

gar

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

README

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

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd is a generated GoMock package.
Package cmd is a generated GoMock package.
Package gh is a generated GoMock package.
Package gh is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL