{"id":13895024,"url":"https://github.com/k1LoW/ghput","last_synced_at":"2025-07-17T10:32:09.633Z","repository":{"id":38196557,"uuid":"255549804","full_name":"k1LoW/ghput","owner":"k1LoW","description":":octocat: ghput is a CI-friendly tool that puts * on GitHub.","archived":false,"fork":false,"pushed_at":"2024-05-29T06:01:53.000Z","size":153,"stargazers_count":36,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-15T18:12:15.845Z","etag":null,"topics":["comment","commit","gist","github","issue","pull-request"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k1LoW.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"k1LoW","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-04-14T08:14:41.000Z","updated_at":"2024-11-03T14:19:17.000Z","dependencies_parsed_at":"2024-06-19T02:48:44.801Z","dependency_job_id":"25d3f75b-3d72-4683-b9a8-68e63b402ff9","html_url":"https://github.com/k1LoW/ghput","commit_stats":{"total_commits":109,"total_committers":2,"mean_commits":54.5,"dds":0.00917431192660545,"last_synced_commit":"7352bef07830bf21464b7eb514e79103eadebfc1"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fghput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fghput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fghput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fghput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/ghput/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226255266,"owners_count":17595859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comment","commit","gist","github","issue","pull-request"],"created_at":"2024-08-06T18:01:56.527Z","updated_at":"2024-11-25T00:30:35.575Z","avatar_url":"https://github.com/k1LoW.png","language":"Go","readme":"# ghput [![Build Status](https://github.com/k1LoW/ghput/workflows/build/badge.svg)](https://github.com/k1LoW/ghput/actions) [![GitHub release](https://img.shields.io/github/release/k1LoW/ghput.svg)](https://github.com/k1LoW/ghput/releases)\n\n:octocat: ghput is a CI-friendly tool that puts `*` on GitHub.\n\n## Usage\n\n**Put comment to issue:**\n\n``` console\n$ echo 'This is comment !!' | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput issue-comment --owner k1LoW --repo myrepo --number 1\n```\n\n**Put comment to issue on GitHub Actions:**\n\nghput get `owner` and `repo` from [`GITHUB_REPOSITORY`](https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables).\n\n``` yaml\n- name: Put comment\n  run: echo 'This is comment !!' | ghput issue-comment --number 1\n  env:\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n**Put comment to pull request:**\n\n``` console\n$ echo 'This is comment !!' | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput pr-comment --owner k1LoW --repo myrepo --number 2\n```\n\n**Put comment to latest merged pull request:**\n\n``` console\n$ echo 'Hello merged pull request !!' | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput pr-comment --owner k1LoW --repo myrepo --latest-merged\n```\n\n**Put issue to repo:**\n\n``` console\n$ echo 'This is new isssue !!' | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput issue --owner k1LoW --repo myrepo --title 'New Issue !!!!!'\n```\n\n**Put commit to branch:**\n\n``` console\n$ GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput commit --owner k1LoW --repo myrepo --branch main --file file.txt --path path/to/file.txt --message 'Commit file !!'\n```\n\n**Put tag to branch:**\n\n\n``` console\n$ GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput tag --owner k1LoW --repo myrepo --branch main --tag v0.0.1\n```\n\nPut a time based tag when the tag option is omitted ( default time format: `%Y%m%d-%H%M%S%z` )\n\n``` console\n$ GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput tag --owner k1LoW --repo myrepo --tag-time-format '%Y%m%d%H%M'\n```\n\n**Put tag as release:**\n\n\n``` console\n$ GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput tag --owner k1LoW --repo myrepo --tag v0.0.1 --release --release-title 'Code name: Elvis Juice' --release-body 'Release !!'\n```\n\nor\n\n``` console\n$ echo 'Release !!' | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput tag --owner k1LoW --repo myrepo --tag v0.0.1 --release --release-title 'Code name: Elvis Juice'\n```\n\n**Put file to Gist:**\n\n``` console\n$ GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput gist --file file.txt\n```\n\n``` console\n$ cat file.txt | GITHUB_TOKEN=XXXXXxxxxxXXxxxx ghput gist\n```\n\n**Use on GitHub Enterprise:**\n\n``` console\n$ export GITHUB_API_URL=https://git.my-company.com/api/v3/\n```\n\n## Install\n\n**deb:**\n\n``` console\n$ export GHPUT_VERSION=X.X.X\n$ curl -o ghput.deb -L https://github.com/k1LoW/ghput/releases/download/v$GHPUT_VERSION/ghput_$GHPUT_VERSION-1_amd64.deb\n$ dpkg -i ghput.deb\n```\n\n**RPM:**\n\n``` console\n$ export GHPUT_VERSION=X.X.X\n$ yum install https://github.com/k1LoW/ghput/releases/download/v$GHPUT_VERSION/ghput_$GHPUT_VERSION-1_amd64.rpm\n```\n\n**homebrew tap:**\n\n```console\n$ brew install k1LoW/tap/ghput\n```\n\n**manually:**\n\nDownload binany from [releases page](https://github.com/k1LoW/ghput/releases)\n\n**go install:**\n\n```console\n$ go install github.com/k1LoW/ghput@latest\n```\n\n## Alternatives\n\n- [github-commenter](https://github.com/cloudposse/github-commenter): Command line utility for creating GitHub comments on Commits, Pull Request Reviews or Issues\n","funding_links":["https://github.com/sponsors/k1LoW"],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1LoW%2Fghput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1LoW%2Fghput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1LoW%2Fghput/lists"}