Last active
October 3, 2017 12:12
-
-
Save paazmaya/7dc01382fcb3151b1fb4ac6d460c1655 to your computer and use it in GitHub Desktop.
Create hacktoberfest label to all GitHub repositories
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
find . -maxdepth 3 -type d -name '.git' \ | |
-exec sh -c '(cd {}/.. && pwd && echo $(basename $(pwd)) && \ | |
curl -H "Authorization: token $GITHUB_TOKEN" --include --request POST \ | |
--data "{\"name\":\"hacktoberfest\",\"color\":\"ff4499\"}" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
"https://api.github.com/repos/paazmaya/$(basename $(pwd))/labels")' ';' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment