Skip to content

Instantly share code, notes, and snippets.

View darekkay's full-sized avatar

Darek Kay darekkay

View GitHub Profile
@mavvverick
mavvverick / labels.sh
Last active April 6, 2022 17:56
Add sane labels to GitHub Repo
USER={{user}} or {{organisation}}
TOKEN={{token}}
REPO={{repo}}
#Delete default labels
curl --user "$USER:$TOKEN" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/bug"
curl --user "$USER:$TOKEN" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/duplicate"
curl --user "$USER:$TOKEN" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/enhancement"
curl --user "$USER:$TOKEN" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/invalid"
curl --user "$USER:$TOKEN" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/question"