Last active
October 5, 2023 20:20
-
-
Save anthonydahanne/675a4623db2073c91a7e68ddf1dc5b4b to your computer and use it in GitHub Desktop.
Script to ad the hacktoberfest label to existing issues matching a label
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
gh search issues --owner paketo-buildpacks --label "note:ideal-for-contribution" --limit 1000 --json repository,number | jq -r '.[] | [.number,.repository.nameWithOwner] | @tsv' | while IFS=$'\t' read -r number repository; do | |
echo "gh label -R $repository create hacktoberfest --description \"Hacktoberfest eligible\" --color D93F0B --force" | |
gh label -R $repository create hacktoberfest --description "Hacktoberfest eligible" --color D93F0B --force | |
echo "gh repo edit $repository --add-topic hacktoberfest" | |
gh repo edit $repository --add-topic hacktoberfest | |
echo "gh issue edit $number -R $repository --add-label \"hacktoberfest\"" | |
gh issue edit $number -R $repository --add-label "hacktoberfest" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running for
good first issue
now!