{"id":15969893,"url":"https://github.com/thombashi/gh-taghash","last_synced_at":"2025-10-11T05:45:58.884Z","repository":{"id":248389533,"uuid":"828556615","full_name":"thombashi/gh-taghash","owner":"thombashi","description":"gh extension to convert a git tag to hashes and vice versa on a remote GitHub repository.","archived":false,"fork":false,"pushed_at":"2025-03-02T09:25:13.000Z","size":113,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T09:29:57.075Z","etag":null,"topics":["gh-extension","git-tag"],"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/thombashi.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-07-14T14:04:10.000Z","updated_at":"2025-03-02T09:21:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"10095975-2804-447b-bbab-44722a2ea433","html_url":"https://github.com/thombashi/gh-taghash","commit_stats":null,"previous_names":["thombashi/gh-taghash"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/thombashi/gh-taghash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fgh-taghash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fgh-taghash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fgh-taghash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fgh-taghash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thombashi","download_url":"https://codeload.github.com/thombashi/gh-taghash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fgh-taghash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006353,"owners_count":26084087,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-extension","git-tag"],"created_at":"2024-10-07T19:42:15.628Z","updated_at":"2025-10-11T05:45:58.868Z","avatar_url":"https://github.com/thombashi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-taghash\n\n[gh][] extension to convert a git tag to hashes and vice versa on a remote GitHub repository.\n\n[![Release](https://img.shields.io/github/release/thombashi/gh-taghash.svg?style=flat-square)](https://github.com/thombashi/gh-taghash/releases/latest)\n[![Go Reference](https://pkg.go.dev/badge/github.com/thombashi/gh-taghash.svg)](https://pkg.go.dev/github.com/thombashi/gh-taghash)\n[![Go Report Card](https://goreportcard.com/badge/github.com/thombashi/gh-taghash)](https://goreportcard.com/report/github.com/thombashi/gh-taghash)\n[![CI](https://github.com/thombashi/gh-taghash/actions/workflows/ci.yaml/badge.svg)](https://github.com/thombashi/gh-taghash/actions/workflows/ci.yaml)\n[![CodeQL](https://github.com/thombashi/gh-taghash/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/thombashi/gh-taghash/actions/workflows/github-code-scanning/codeql)\n\n\n## Installation\n\n```console\ngh extension install thombashi/gh-taghash\n```\n\n\n## Upgrade\n\n```console\ngh extension upgrade taghash\n```\n\n\n## Usage\n\n### Command help\n\n```\n      --cache-dir string       cache directory path. If not specified, use a user cache directory.\n      --cache-ttl string       base cache TTL (time-to-live) (default \"48h\")\n      --format string          output format (simple, text, json) (default \"simple\")\n      --log-level string       log level (debug, info, warn, error) (default \"info\")\n      --no-cache               disable cache\n  -R, --repo string            GitHub repository ID. If not specified, use the current repository.\n      --show-base-tag          show the base tag when resolving a tag from a commit hash\n      --sql-log-level string   SQL log level (silent, error, warn, info) (default \"warn\")\n```\n\n### Examples\n\nConverting a git tag to a commit hash:\n\n```\n$ gh taghash --repo=actions/checkout v4.1.6\na5ac7e51b41094c92402da3b24376905380afc29\n$ gh taghash --repo=actions/checkout a5ac7e51b41094c92402da3b24376905380afc29\nv4.1.6\n```\n\nConverting a commit hash to a git tag:\n\n```\n$ gh taghash --repo=actions/checkout 6ccd57f4c5d15bdc2fef309bd9fb6cc9db2ef1c6\nv4.1.6-4-g6ccd57f\n$ gh taghash --repo=actions/checkout v4.1.6-4-g6ccd57f\n6ccd57f4c5d15bdc2fef309bd9fb6cc9db2ef1c6\n$ gh taghash --repo=actions/checkout 6ccd57f4c5d15bdc2fef309bd9fb6cc9db2ef1c6 --show-base-tag\nv4.1.6\n```\n\nIf a git tag contains both tag hash and commit hash information, both will be output:\n\n```\ngh taghash --repo=actions/checkout v1.1.0 --format=text\ntagHash: ec3afacf7f605c9fc12c70bc1c9e1708ddb99eca\ncommitHash: 0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc\n```\n\nOutput the results in JSON format with the `--format=json` flag:\n\n```\n$ gh taghash --repo=actions/checkout v1.1.0 --format=json\n{\n    \"commitHash\": \"0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc\",\n    \"tagHash\": \"ec3afacf7f605c9fc12c70bc1c9e1708ddb99eca\"\n}\n```\n\n\n[gh]: https://docs.github.com/en/github-cli/github-cli/about-github-cli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthombashi%2Fgh-taghash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthombashi%2Fgh-taghash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthombashi%2Fgh-taghash/lists"}