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
git checkout -b other-main | |
git push origin other-main | |
gh api -XPATCH "repos/pivotal-cf/tanzu-bellsoft-liberica" -f default_branch="other-main" >/dev/null | |
git push --delete tanzu main | |
gh api "repos/pivotal-cf/tanzu-bellsoft-liberica/branches/other-main/rename" -f new_name="main" >/dev/null | |
git checkout main | |
git pull origin main |
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
# from https://stackoverflow.com/a/67638584/24069 | |
# read each item in the JSON array to an item in the Bash array | |
set +x | |
readarray -t my_array < <(jq --raw-output '.[]' $1) | |
# iterate through the Bash array | |
for item in "${my_array[@]}"; do | |
git clone git@github.com:$item.git &>/dev/null | |
cd ${item#*/} |
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
A simple go app to connect to TanzuNet / Pivnet and update the release versions; to match the expected schema X.Y.Z instead of X.Y |
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 |
OlderNewer