Forked from rentzsch/setup github issues labels.sh
Last active
August 29, 2017 15:11
-
-
Save noinarisak/ea01e823e5421e39ce4527b1827ac637 to your computer and use it in GitHub Desktop.
TODO - Make it match this https://www.zenhub.com/blog/task-boards-github-labels/
This file contains 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
USER=rentzsch | |
PASS=mypassword | |
REPO=mogenerator | |
# Delete default labels | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/bug" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/duplicate" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/enhancement" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/invalid" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/question" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/wontfix" | |
# Create labels | |
# Base on the https://www.zenhub.com/blog/task-boards-github-labels/ | |
# NOTE: These labels are gear toward more enterprise work flow with multiple members, BA, QA and DEV. | |
# | |
# - Update the color | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"question","color":"66Aa00"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"readyfor-requirements","color":"66Aa00"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"readyfor-design","color":"66Aa00"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"readyfor-discussion","color":"66Aa00"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"readyfor-copy","color":"66Aa00"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"readyfor-development","color":"66Aa00"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"blocked-copy","color":"66aa00"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"blocked-design","color":"006600"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"blocked-development","color":"996361"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"blocked-test","color":"003B84"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"bug","color":"66ccff"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"security","color":"aaaaaa"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"feature","color":"83000C"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"support","color":"ff1177"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"highpriority","color":"3f3f3f"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"urgent","color":"3f3f3f"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"enhancements","color":"66Aa00"}' "https://api.github.com/repos/$USER/$REPO/labels" | |
curl --user "$USER:$PASS" --include --request POST --data '{"name":"optimizations","color":"66Aa00"}' "https://api.github.com/repos/$USER/$REPO/labels" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment