-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize changelog section titles #91
Comments
@neurobagel/dev, I've assigned each of you repos to delete the leftover PR labels (7 total) from our initial auto setup from. Please check off the repos when you have finished the deletion :) thanks so much for your help!! |
FOR REVIEWER:
If all looks good, let me know and I'll wait until all the old PR labels are deleted to close this issue. |
Just occured to me: #!/bin/bash
for repo in $(gh repo list neurobagel --json name | jq -r '.[].name');
do
for label in major minor patch internal tests dependencies performance;
do
gh label delete $label -R neurobagel/$repo --yes
done
done and so on |
Very nice writeup @alyssadai ! docs look good, labels are gone (script may be slightly overzealous in hindsight, it also wiped out all Good to go, I think 🧑🍳 |
@surchs the script is a great idea! 💯 You beat me to it - I ended up with the following script (also documented in our internal wiki) to delete labels from repos only if they matched the exact label name, color, and description from a specified list. Aka, the more paranoid version of your script above 😛 I tested it by creating the exact same toy labels in a couple of repos and it seems to work well. #!/bin/bash
REPOS=$(gh repo list neurobagel --json name | jq -r '.[].name')
# NOTE: the color is case-sensitive in the matching, and should not have # in front of it
LABELS_TO_DELETE=(
"labelone,c5def5,test label 1"
"labeltwo,7D939A,test label 2"
)
# NOTE: make sure ${REPOS} doesn't have quotes around it
for repo in ${REPOS}; do
echo "Processing repository: ${repo}..."
for label in "${LABELS_TO_DELETE[@]}"; do
# Get the label attributes
IFS="," read -r label_name label_color label_description <<< "$label"
# Check if the label exists with the specified name, color, and description
# NOTE: we set the label limit -L to something pretty big to ensure all existing labels are fetched
gh label list -R "neurobagel/${repo}" -L 200 --json name,color,description | jq -e ".[] | select(.name == \"$label_name\" and .color == \"$label_color\" and .description == \"$label_description\")" >/dev/null
if [ $? -eq 0 ]; then
gh label delete "$label_name" --repo "neurobagel/${repo}" --yes
else
echo "Label not found: $label_name"
fi
done
echo -e "Finished processing repository: ${repo}\n"
done Also, what did you mean by the following:
? From what I can tell your script doesn't have |
Closing as this is now completed! |
What
In the .autorc file, we should update the change type labels such that:
major
,minor
are called something else, so that they don't conflict with dependabotSee https://intuit.github.io/auto/docs/configuration/autorc#adding-additional-changelog-title-sections
Steps to implement
Full configuration of custom PR labels (part of .autorc file)
documentation
label for issues):LABELS TO DELETE:
@alyssadai:
@rmanaem
@surchs:
recipes
openneuro-annotations
dataget
browbids
bulk_annotations
Document in internal wiki:
The text was updated successfully, but these errors were encountered: