{"id":20925117,"url":"https://github.com/gbh-tech/github-pr-commenter","last_synced_at":"2025-03-13T01:13:24.122Z","repository":{"id":244251766,"uuid":"814668833","full_name":"gbh-tech/github-pr-commenter","owner":"gbh-tech","description":"A CLI tool for posting comments on GitHub PRs.","archived":false,"fork":false,"pushed_at":"2024-08-27T12:07:15.000Z","size":497,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T17:59:30.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gbh-tech.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}},"created_at":"2024-06-13T13:10:27.000Z","updated_at":"2024-12-11T09:51:38.000Z","dependencies_parsed_at":"2024-08-26T23:53:54.566Z","dependency_job_id":"19dcbd92-90dd-4d36-86b8-c4de1b7a0ca3","html_url":"https://github.com/gbh-tech/github-pr-commenter","commit_stats":null,"previous_names":["gbh-tech/github-pr-commenter"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbh-tech%2Fgithub-pr-commenter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbh-tech%2Fgithub-pr-commenter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbh-tech%2Fgithub-pr-commenter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbh-tech%2Fgithub-pr-commenter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbh-tech","download_url":"https://codeload.github.com/gbh-tech/github-pr-commenter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243318758,"owners_count":20272144,"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":[],"created_at":"2024-11-18T20:29:20.129Z","updated_at":"2025-03-13T01:13:24.102Z","avatar_url":"https://github.com/gbh-tech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- omit in toc --\u003e\n# Commenter CLI\n\n\u003c!-- omit in toc --\u003e\n## Contents\n\n- [📘 Description](#-description)\n  - [Features](#features)\n  - [Prerequisites](#prerequisites)\n- [🚢 Installation](#-installation)\n- [🔧 Usage](#-usage)\n  - [Commands](#commands)\n  - [Examples](#examples)\n- [🤝 Contributing](#-contributing)\n- [📄 License](#-license)\n\n## 📘 Description\n\nCommenter CLI is a command-line tool designed to perform comment operations on GitHub pull request (PR) issues.\nIt simplifies creating, updating, and retrieving comments on GitHub PRs directly from your terminal.\n\n### Features\n\n- **Create Comments**: Add new comments to a specific PR.\n- **Update Comments**: Modify existing comments on a PR.\n- **Get Comment ID**: Retrieve the ID of a comment based on its text content.\n- **Autocompletion**: Generate autocompletion scripts for various shells.\n\n### Prerequisites\n\nBefore using this tool, ensure you have the following:\n\nGo: Install Go programming language.\nGitHub Token: A valid GitHub personal access token with appropriate permissions.\n\n## 🚢 Installation\n\nTo install Commenter CLI from the source, follow these steps:\n\n1. Clone the Repository:\n\n```bash\ngit clone https://github.com/yourusername/commenter-cli.git\ncd commenter-cli\n```\n\n2. Download Dependencies:\n\n```bash\ngo mod download\n```\n\n3. Build the Binary:\n\n```bash\ngo build -o commenter\n```\n\n## 🔧 Usage\n\nOnce installed, you'll have to set the `GITHUB_TOKEN` environment then can use the commenter command to interact\nwith GitHub PR issues.\n\n### Commands\n\n- **create**: Create a new comment on a PR.\n- **get**: Get the message ID based on text.\n- **help**: Display help information about any command.\n- **update**: Update an existing comment on a PR.\n\n### Examples\n\nTo create a new comment on a specific PR:\n\n```bash\n./commenter create -o your-org -r your-repo -p 123 -c \"This is a comment\"\n```\n\nTo update an existing comment:\n\n```bash\n./commenter update -o your-org -r your-repo -i 456 -c \"Updated comment text\"\n```\n\nTo retrieve the ID of a comment based on its text:\n\n```bash\n./commenter get -o your-org -r your-repo -p 123 -f ./path/to/file\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please follow these steps to contribute:\n\n1. Fork the repository.\n2. Create a new branch (git checkout -b feature-branch).\n3. Make your changes.\n4. Commit your changes (git commit -m 'Add new feature').\n5. Push to the branch (git push origin feature-branch).\n6. Open a Pull Request.\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbh-tech%2Fgithub-pr-commenter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbh-tech%2Fgithub-pr-commenter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbh-tech%2Fgithub-pr-commenter/lists"}