{"id":48652937,"url":"https://github.com/hakadoriya/gh-xz","last_synced_at":"2026-04-10T08:55:12.363Z","repository":{"id":271594443,"uuid":"913947455","full_name":"hakadoriya/gh-xz","owner":"hakadoriya","description":"gh-xz is a gh command eXtension for utilitieZ.","archived":false,"fork":false,"pushed_at":"2025-12-24T14:24:08.000Z","size":64,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-10T08:55:08.674Z","etag":null,"topics":["gh","gh-extension"],"latest_commit_sha":null,"homepage":"https://github.com/hakadoriya/gh-xz","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hakadoriya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-08T16:51:21.000Z","updated_at":"2025-12-24T14:24:11.000Z","dependencies_parsed_at":"2025-01-09T00:46:07.904Z","dependency_job_id":null,"html_url":"https://github.com/hakadoriya/gh-xz","commit_stats":null,"previous_names":["hakadoriya/gh-pr-update-comment","hakadoriya/gh-exz","hakadoriya/gh-xz"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hakadoriya/gh-xz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakadoriya%2Fgh-xz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakadoriya%2Fgh-xz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakadoriya%2Fgh-xz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakadoriya%2Fgh-xz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakadoriya","download_url":"https://codeload.github.com/hakadoriya/gh-xz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakadoriya%2Fgh-xz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31635969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gh","gh-extension"],"created_at":"2026-04-10T08:55:10.583Z","updated_at":"2026-04-10T08:55:12.334Z","avatar_url":"https://github.com/hakadoriya.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [`gh-xz`](https://github.com/hakadoriya/gh-xz)\n\n`gh-xz` is a gh command e**X**tension for utilitie**Z**.\n\n## Installation\n\n```sh\n# install\ngh extension install https://github.com/hakadoriya/gh-xz\n\n# now you can use `gh xz`\ngh xz\n```\n\n## Features\n\n### `get-anchored-comment`\n\nGet a comment that has a specific anchor string in a pull request.\n\n```console\n$ gh xz get-anchored-comment owner/repo 123 anchor1\nThis anchored comment is posted by gh-xz.\n\n\u003c!-- anchor1 --\u003e\n```\n\n### `put-anchored-comment`\n\nPut a comment that has a specific anchor string in a issue or pull request.\n\n```console\n$ gh xz put-anchored-comment owner/repo 123 anchor1 \"This anchored comment is posted by gh-xz.\"\n\n$ gh xz get-anchored-comment owner/repo 123 anchor1\nThis anchored comment is posted by gh-xz.\n\n\u003c!-- anchor1 --\u003e\n\n$ gh xz put-anchored-comment owner/repo 123 anchor1 \"UPDATED by gh-xz.\"\n\n$ gh xz get-anchored-comment owner/repo 123 anchor1\nUPDATED by gh-xz.\n\n\u003c!-- anchor1 --\u003e\n```\n\n## Usage\n\n```console\n$ gh xz\ngh-xz - gh command eXtension to utilitieZ.\n\nUsage:\n  gh-xz \u003cSUBCOMMAND\u003e\n\nSUBCOMMAND:\n    get-anchored-comment\n        Get a comment that has a specific anchor string in a issue or pull request.\n        Usage:\n          gh-xz get-anchored-comment \u003cOWNER/REPOSITORY\u003e \u003cPR_NUMBER\u003e \u003cANCHOR_STRING\u003e\n        e.g.:\n          gh-xz get-anchored-comment owner/repo 123 \"anchor\"\n    put-anchored-comment\n        Put a comment that has a specific anchor string in a issue or pull request.\n        Usage:\n          gh-xz put-anchored-comment \u003cOWNER/REPOSITORY\u003e \u003cPR_NUMBER\u003e \u003cANCHOR_STRING\u003e \u003cCOMMENT_NEW_BODY_CONTENT|COMMENT_NEW_BODY_FILE\u003e\n        e.g.:\n          gh-xz put-anchored-comment owner/repo 123 \"anchor\" \"This anchored comment is posted by gh-xz.\"\n          gh-xz put-anchored-comment owner/repo 123 \"anchor\" @./comment.md\n          cat ./comment.md | gh-xz put-anchored-comment owner/repo 123 \"anchor\" @-\n    help, usage\n        Show this help message.\n        Usage:\n          gh-xz help\n```\n\n## GitHub Actions\n\n[`hakadoriya-actions/setup-gh-xz`](https://github.com/hakadoriya-actions/setup-gh-xz) is a GitHub Actions to install `gh-xz` in GitHub Actions.\n\n### Example\n\n```yaml\nname: example\n\non:\n  pull_request:\n\njobs:\n  example:\n    if: github.actor != 'dependabot[bot]' \u0026\u0026 github.actor != 'renovate[bot]'\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n      pull-requests: write\n    steps:\n      - uses: hakadoriya-actions/setup-gh-xz@v0.0.1\n      - name: Run gh xz\n        env:\n          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        shell: bash\n        run: |\n          gh xz put-anchored-comment ${{ github.repository }} ${{ github.event.number }} anchor1 \"This anchored comment is posted by gh-xz.\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakadoriya%2Fgh-xz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakadoriya%2Fgh-xz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakadoriya%2Fgh-xz/lists"}