Skip to content

Instantly share code, notes, and snippets.

@anthonydahanne
Last active October 5, 2023 20:20
Show Gist options
  • Save anthonydahanne/675a4623db2073c91a7e68ddf1dc5b4b to your computer and use it in GitHub Desktop.
Save anthonydahanne/675a4623db2073c91a7e68ddf1dc5b4b to your computer and use it in GitHub Desktop.
Script to ad the hacktoberfest label to existing issues matching a label
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
@sophiewigmore
Copy link

Running for good first issue now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment