{"id":21652401,"url":"https://github.com/koozz/gh-teamlabel","last_synced_at":"2025-10-31T09:38:54.269Z","repository":{"id":38196184,"uuid":"496962596","full_name":"koozz/gh-teamlabel","owner":"koozz","description":"Label a pull request with the team name of the author.","archived":false,"fork":false,"pushed_at":"2024-09-23T04:34:23.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-20T14:23:39.579Z","etag":null,"topics":["gh-cli","gh-extension"],"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/koozz.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":"2022-05-27T10:58:09.000Z","updated_at":"2024-09-23T04:34:25.000Z","dependencies_parsed_at":"2023-02-16T19:15:41.998Z","dependency_job_id":"16a63d94-38ee-4d02-8ffe-da89b0946938","html_url":"https://github.com/koozz/gh-teamlabel","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.42105263157894735","last_synced_commit":"9245253e192047bd06b32129b6896fe50de4c175"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koozz%2Fgh-teamlabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koozz%2Fgh-teamlabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koozz%2Fgh-teamlabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koozz%2Fgh-teamlabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koozz","download_url":"https://codeload.github.com/koozz/gh-teamlabel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226293436,"owners_count":17601740,"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":["gh-cli","gh-extension"],"created_at":"2024-11-25T07:55:10.609Z","updated_at":"2025-10-31T09:38:54.201Z","avatar_url":"https://github.com/koozz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-teamlabel\n\nThis GitHub CLI extension can be used to label a pull request with team names\nthat the author of the pull request is part of.\n\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/koozz/gh-teamlabel.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/koozz/gh-teamlabel/alerts/)\n[![Language grade: Go](https://img.shields.io/lgtm/grade/go/g/koozz/gh-teamlabel.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/koozz/gh-teamlabel/context:go)\n\n## Usage\n\nFrom the commandline:\n\n```bash\ngh extension install koozz/gh-teamlabel # Just once\ngh teamlabel -org my-org team1_slug:Team1Label team2_slug:Team2Label\n```\n\nIn GitHub Actions, add a step like this:\n\n```yaml\n  - name: Team labeling\n    env:\n      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n    run: |\n      gh extension install koozz/gh-teamlabel --pin 2.0.3\n      gh teamlabel -org my-org team1_slug:Team1Label team2_slug:Team2Label\n```\n\n### Caveat\n\nThe used GitHub token must have enough privileges, either use a GitHub App or a Personal Access Token.\n\n## Adding labels\n\nAdding labels on a pull request only works if these labels have been added to\nthe repository.\n\nYou could prepend the above scripts with calls to [gh label create](https://cli.github.com/manual/gh_label_create)\n\n```bash\ngh label create Team1Label --color 336699 --description \"Team one label description\" --force\ngh label create Team2Label --color 336699 --description \"Team two label description\" --force\n\ngh teamlabel -org my-org team1:Team1Label team2:Team2Label\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoozz%2Fgh-teamlabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoozz%2Fgh-teamlabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoozz%2Fgh-teamlabel/lists"}