GithubHelp home page GithubHelp logo

k1low / ghput Goto Github PK

View Code? Open in Web Editor NEW
35.0 2.0 3.0 141 KB

:octocat: ghput is a CI-friendly tool that puts * on GitHub.

License: MIT License

Go 96.96% Makefile 2.59% Dockerfile 0.45%
github comment pull-request issue commit gist

ghput's Introduction

ghput Build Status GitHub release

: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 issue on GitHub Actions:

ghput get owner and repo from GITHUB_REPOSITORY.

- name: Put comment
  run: echo 'This is comment !!' | ghput issue-comment --number 1
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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 main --file file.txt --path path/to/file.txt --message 'Commit file !!'

Put tag to branch:

$ GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput tag --owner k1LoW --repo myrepo --branch main --tag v0.0.1

Put a time based tag when the tag option is omitted ( default time format: %Y%m%d-%H%M%S%z )

$ GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput tag --owner k1LoW --repo myrepo --tag-time-format '%Y%m%d%H%M'

Put tag as release:

$ GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput tag --owner k1LoW --repo myrepo --tag v0.0.1 --release --release-title 'Code name: Elvis Juice' --release-body 'Release !!'

or

$ echo 'Release !!' | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput tag --owner k1LoW --repo myrepo --tag v0.0.1 --release --release-title 'Code name: Elvis Juice'

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:

$ export GHPUT_VERSION=X.X.X
$ curl -o ghput.deb -L https://github.com/k1LoW/ghput/releases/download/v$GHPUT_VERSION/ghput_$GHPUT_VERSION-1_amd64.deb
$ dpkg -i ghput.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 install:

$ go install github.com/k1LoW/ghput@latest

Alternatives

  • github-commenter: Command line utility for creating GitHub comments on Commits, Pull Request Reviews or Issues

ghput's People

Contributors

dependabot[bot] avatar k1low avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

syllogy isgasho

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.