Created
May 22, 2020 19:58
-
-
Save caarlos0/19227b93c364ae3581fd197746328ac0 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
for size in XL XXL XS S M L; do | |
curl -sf -H "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/kubernetes/kubernetes/labels/size/$size" | | |
jq '. | { "name": .name, "color": .color, "description": .description }' | | |
curl -sfXPOST -d @- -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/$REPO/labels | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment