ghput

:octocat: ghput is a CI-friendly tool that puts * on GitHub.
Usage
Put comment to issue:
$ echo 'This is comment !!' | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput issue-comment --owner k1LoW --repo myrepo --number 1
Put comment to pull request:
$ echo 'This is comment !!' | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput pr-comment --owner k1LoW --repo myrepo --number 2
Put comment to latest merged pull request:
$ echo 'Hello merged pull request !!' | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput pr-comment --owner k1LoW --repo myrepo --latest-merged
Put issue to repo:
$ echo 'This is new isssue !!' | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput issue --owner k1LoW --repo myrepo --title 'New Issue !!!!!'
Put commit to branch:
$ GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput commit --owner k1LoW --repo myrepo --branch master --file file.txt --path path/to/file.txt --message 'Commit file !!'
Put file to Gist:
$ GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput gist --file file.txt
$ cat file.txt | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput gist
Use on GitHub Enterprise:
$ export GITHUB_API_URL=https://git.my-company.com/api/v3/
Install
deb:
Use dpkg-i-from-url
$ export GHPUT_VERSION=X.X.X
$ curl -L https://git.io/dpkg-i-from-url | bash -s -- https://github.com/k1LoW/ghput/releases/download/v$GHPUT_VERSION/ghput_$GHPUT_VERSION-1_amd64.deb
RPM:
$ export GHPUT_VERSION=X.X.X
$ yum install https://github.com/k1LoW/ghput/releases/download/v$GHPUT_VERSION/ghput_$GHPUT_VERSION-1_amd64.rpm
homebrew tap:
$ brew install k1LoW/tap/ghput
manually:
Download binany from releases page
go get:
$ go get github.com/k1LoW/ghput
Alternatives
- github-commenter: Command line utility for creating GitHub comments on Commits, Pull Request Reviews or Issues