GitHub CLI extension for issue label management.
Make sure you have version 2.0 or newer of the GitHub CLI installed.
gh extension install heaths/gh-labelThe gh extension list command shows if updates are available for extensions. To upgrade, you can use the gh extension upgrade command:
gh extension upgrade heaths/gh-label
# Or upgrade all extensions:
gh extension upgrade --allCreate a label in a repository. You can specify colors with or without a preceeding hash ("#"). If you do not specify a color a random color will be choosen.
gh label create feedback
gh label create p1 --color e00808
gh label create p2 --color "#ffa501" --description "Affects more than a few users"Delete a label from a repository.
gh label delete p1Edit a label in a repository. You can specify colors with or without a preceeding hash ("#").
gh label edit general --new-name feedback
gh label edit feedback --color c046ff --description "User feedback"Export labels from the repository to , or stdout if is "-".
gh label export ./labels.csv
gh label export ./labels.json
gh label export --format csv -Import labels into the repository from , or stdin if is "-".
gh label import ./labels.csv
gh label import ./labels.json
gh label import --format csv -List labels in a repository. You can optionally pass a substring to match in the label name or description.
gh label list
gh label list serviceLicensed under the MIT license.
Portions of this source copied from vilmibm/gh-user-status under the GNU Affero General Public License v3.0.