{"id":20532466,"url":"https://github.com/joshdk/hub-comment","last_synced_at":"2026-05-08T08:35:07.599Z","repository":{"id":57612309,"uuid":"152351134","full_name":"joshdk/hub-comment","owner":"joshdk","description":"📝 Automated GitHub pull request comments from CI","archived":false,"fork":false,"pushed_at":"2018-12-19T01:21:53.000Z","size":450,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T13:17:28.438Z","etag":null,"topics":["circleci","github","github-api","github-automation","github-bot","go","golang"],"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/joshdk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-10T02:29:27.000Z","updated_at":"2018-12-09T01:50:01.000Z","dependencies_parsed_at":"2022-08-27T09:51:06.793Z","dependency_job_id":null,"html_url":"https://github.com/joshdk/hub-comment","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fhub-comment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fhub-comment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fhub-comment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fhub-comment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshdk","download_url":"https://codeload.github.com/joshdk/hub-comment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242138802,"owners_count":20078007,"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":["circleci","github","github-api","github-automation","github-bot","go","golang"],"created_at":"2024-11-16T00:15:03.062Z","updated_at":"2026-05-08T08:35:02.555Z","avatar_url":"https://github.com/joshdk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CircleCI][circleci-badge]][circleci-link]\n[![License][license-badge]][license-link]\n[![Github downloads][github-downloads-badge]][github-release-link]\n[![GitHub release][github-release-badge]][github-release-link]\n\n# Hub-Comment\n\n📝 Automate GitHub pull request comments in CI\n\n## Installing\n\n### From source\n\nYou can install a development version of this tool by running:\n\n```bash\n$ go get -u github.com/joshdk/hub-comment\n```\n\n### Precompiled binary\n\nAlternatively, you can download a precompiled [release][github-release-link] binary by running:\n\n```bash\n$ wget -q https://github.com/joshdk/hub-comment/releases/download/0.1.0/hub-comment_linux_amd64\n$ sudo install hub-comment_linux_amd64 /usr/bin/hub-comment\n```\n\n## Usage\n\n### Environment Setup\n\nSince `hub-comment` communicates with the [GitHub API](https://developer.github.com/v3/), you must first create and export an API token into the working environment.\n\n```bash\n$ export GITHUB_TOKEN='2b6c...f4bd'\n```\n\n### Comment Template\n\nYou can write a comment template file, using the same syntax used for [Go templates](https://golang.org/pkg/text/template/). For example, you could save the following as `hello-template.txt`:\n\n```\n🤖 Hello from CI!\n\nBuild #{{.Env.CIRCLE_BUILD_NUM}} was run successfully.\n```\n\n### Running\n\n```\n$ hub-comment -template-file hello-template.txt\nPosting new comment as Josh Komoroske (joshdk) on joshdk/hub-comment#123:\n\n→ 🤖 Hello from CI!\n→\n→ Build #123 was run successfully.\n\nTo view comment visit:\n→ https://github.com/joshdk/hub-comment/issues/123#issuecomment-421483151\n```\n\n## License\n\nThis code is distributed under the [MIT License][license-link], see [LICENSE.txt][license-file] for more information.\n\n[circleci-badge]:         https://circleci.com/gh/joshdk/hub-comment.svg?\u0026style=shield\n[circleci-link]:          https://circleci.com/gh/joshdk/hub-comment/tree/master\n[github-downloads-badge]: https://img.shields.io/github/downloads/joshdk/hub-comment/total.svg\n[github-release-badge]:   https://img.shields.io/github/release/joshdk/hub-comment/all.svg\n[github-release-link]:    https://github.com/joshdk/hub-comment/releases/latest\n[license-badge]:          https://img.shields.io/badge/license-MIT-green.svg\n[license-file]:           https://github.com/joshdk/hub-comment/blob/master/LICENSE.txt\n[license-link]:           https://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshdk%2Fhub-comment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshdk%2Fhub-comment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshdk%2Fhub-comment/lists"}