Last active
November 18, 2022 19:16
-
-
Save jancimajek/3b24c1e23e9b6100de2834834486dcb8 to your computer and use it in GitHub Desktop.
Set up labels for a GitHub repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Set up labels: | |
gh label list && \ | |
gh label edit "bug" -n "Bug" -c "#d73a4a" -d "Something isn't working" && \ | |
gh label edit "documentation" -n "Docs" -c "#0075ca" -d "Improvements or additions to documentation" && \ | |
gh label edit "enhancement" -n "Enhancement" -c "#CAE308" -d "New feature or request" && \ | |
gh label edit "question" -n "Tech Debt" -c "#29CEDF" -d "Technical debt" && \ | |
gh label edit "wontfix" -n "Ignore" -c "#bbbbbb" -d "Disregard & Ignore" && \ | |
gh label delete --confirm "duplicate" && \ | |
gh label delete --confirm "good first issue" && \ | |
gh label delete --confirm "help wanted" && \ | |
gh label delete --confirm "invalid" && \ | |
gh label list | |
# Revert(ish): | |
# gh label list && \ | |
# gh label edit "Bug" -n "bug" -c "#111111" -d "bug" && \ | |
# gh label edit "Docs" -n "documentation" -c "#222222" -d "docsn" && \ | |
# gh label edit "Enhancement" -n "enhancement" -c "#333333" -d "enh" && \ | |
# gh label edit "Tech Debt" -n "question" -c "#333333" -d "td" && \ | |
# gh label edit "Ignore" -n "wontfix" -c "#444444" -d "ign" && \ | |
# gh label create "duplicate" && \ | |
# gh label create "good first issue" && \ | |
# gh label create "help wanted" && \ | |
# gh label create "invalid" && \ | |
# gh label list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment