TOSA is Open Source Available.
Open pull request page or get pull request data from sha(commit hash). You can more easily find why the code is included by the page:mag_right:
If you want to run on VS Code? You can get VS Code extension from Marketplace.
$ tosa <sha>
-u, --url Print the pull request url.
-a, --apiurl Print the issue API url.
-n, --newline If -u(--url) or -a(--apiurl) option is specified, print
the url with newline character at last.
-d, --debug Enable debug mode.
Print debug log.
-h, --help Show this help message and exit.
-v, --version Print current version.
NOTE: Set Github Access Token which has "Full control of private repositories" scope as an environment variable GITHUB_TOKEN
. If not set, tosa
requires your Github username and password(and two-factor auth code if you are setting). Because of using GitHub API v3.
Add the following key bindings in $HOME/.tigrc
.
bind main O @tosa %(commit)
bind blame O @tosa %(commit)
Open page by O(Shift+o) in main or blame view.
Get GitHub issue API url.
$ tosa -a <sha>
Get title of pull request via jq, for example.
$ curl -s `tosa -a c97e6909` | jq -r '.title'
Add short command option and usage
For more information, see Issues | GitHub Developer Guide.
If you have already installed Homebrew; then can install by brew command.
$ brew tap kyoshidajp/tosa
$ brew install tosa
If you are a Golang developper/user; then execute go get
.
$ go get -u github.com/kyoshidajp/tosa
- Download binary which meets your system from Releases.
- Unarchive it.
- Put
tosa
where you want. - Add
tosa
path to$PATH
.