{"id":16672719,"url":"https://github.com/hankei6km/gh-label-completion","last_synced_at":"2026-03-14T08:37:13.290Z","repository":{"id":44781982,"uuid":"451469229","full_name":"hankei6km/gh-label-completion","owner":"hankei6km","description":"Bash で GitHub CLI を利用しているとき、ラベルの入力補完をするためのスクリプト。","archived":false,"fork":false,"pushed_at":"2022-01-25T05:36:48.000Z","size":143,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-19T18:43:26.287Z","etag":null,"topics":["bash-completion","githubcli"],"latest_commit_sha":null,"homepage":"","language":null,"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/hankei6km.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}},"created_at":"2022-01-24T13:11:17.000Z","updated_at":"2022-01-25T04:23:26.000Z","dependencies_parsed_at":"2022-09-05T02:21:13.874Z","dependency_job_id":null,"html_url":"https://github.com/hankei6km/gh-label-completion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hankei6km%2Fgh-label-completion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hankei6km%2Fgh-label-completion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hankei6km%2Fgh-label-completion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hankei6km%2Fgh-label-completion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hankei6km","download_url":"https://codeload.github.com/hankei6km/gh-label-completion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243324266,"owners_count":20273098,"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":["bash-completion","githubcli"],"created_at":"2024-10-12T12:07:05.910Z","updated_at":"2025-12-25T08:52:59.386Z","avatar_url":"https://github.com/hankei6km.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-label-completion\n\nBash で [GitHub CLI] を利用しているとき、ラベルの入力補完をするためのスクリプト。\n\n![入力補完のデモ表示しているスクリーンショットの agif](https://raw.githubusercontent.com/hankei6km/gh-label-completion/main/docs/gh-label-completion.gif?raw=true)\n\n## Install\n\nBash の入力補完用ファイルを保存するディレクトリーへ `gh-label-completion` をコピー。\n\n## Usage\n\n以下のフラグ用にラベルを入力するとき、タブを押下すると補完される。\n\n### [`gh pr create`]\n\n- `-l`, `--label` - リポジトリのラベル一覧を候補にする\n\n### [`gh pr edit`]\n\n- `--add-label` - リポジトリのラベル一覧を候補にする\n- `--remove-label` - PR に設定されているラベル一覧を候補にする\n\n\n### [`gh issue create`]\n\n- `-l`, `--label` - リポジトリのラベル一覧を候補にする\n\n### [`gh issue edit`]\n\n- `--add-label` - リポジトリのラベル一覧を候補にする\n- `--remove-label` - ISSUE に設定されているラベル一覧を候補にする\n\n## Known Issue\n\n- タブ押下時に毎回 GitHub へ一覧を取得しにいく\n- `-R`, `--repo` の `HOST/` ありの形式に対応していない(`--remove-label` では対応)\n- エラーメッセージを抑止していない\n- `--add-label` の候補一覧から設定済ラベルを除外していない\n- ラベル数が多いとすべてを表示しない(ページネーションをしていないので)\n- カンマ区切りの指定に対応していない\n    `--add-label enhancement --add-label documentation` のように指定する\n\n## License\n\nMIT License\n\nCopyright (c) 2022 hankei6km\n\n[GitHub CLI]: https://cli.github.com/\n[`gh issue create`]: https://cli.github.com/manual/gh_issue_create\n[`gh issue edit`]: https://cli.github.com/manual/gh_issue_edit\n[`gh pr create`]: https://cli.github.com/manual/gh_pr_create\n[`gh pr edit`]: https://cli.github.com/manual/gh_pr_edit\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhankei6km%2Fgh-label-completion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhankei6km%2Fgh-label-completion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhankei6km%2Fgh-label-completion/lists"}