Skip to content

Commit a430ba9

Browse files
authored
Clean auto-release script: use metrics + only print changed modules (#4265)
1 parent f6e0832 commit a430ba9

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

doc/scripts/auto-release-notes.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ START_DATE="$1"
88
END_DATE="$2"
99

1010
if [ -z "$3" ] || [ "$3" = "all" ]; then
11-
LABELS=("core" "extractors" "preprocessing" "sorters" "postprocessing" "qualitymetrics" "curation" "widgets" "generators" "hybrid" "sortingcomponents" "motion correction" "documentation" "continuous integration" "packaging" "testing" "deprecations")
11+
LABELS=("core" "extractors" "preprocessing" "sorters" "postprocessing" "metrics" "curation" "widgets" "generators" "hybrid" "sortingcomponents" "motion correction" "documentation" "continuous integration" "packaging" "testing" "deprecations")
1212
else
1313
LABELS=("$3")
1414
fi
@@ -26,14 +26,18 @@ else
2626
fi
2727

2828
for LABEL in "${LABELS[@]}"; do
29-
echo "$LABEL:"
30-
echo ""
29+
OUTPUT=""
3130
for BRANCH in "${BRANCHES[@]}"; do
32-
gh pr list --repo SpikeInterface/spikeinterface --limit $LIMIT --label "$LABEL" --base "$BRANCH" --state merged --json number,title,mergedAt \
31+
OUTPUT+=$(gh pr list --repo SpikeInterface/spikeinterface --limit $LIMIT --label "$LABEL" --base "$BRANCH" --state merged --json number,title,mergedAt \
3332
| jq -r --arg start_date "${START_DATE}T00:00:00Z" --arg end_date "${END_DATE}T00:00:00Z" \
34-
'.[] | select(.mergedAt >= $start_date and .mergedAt <= $end_date) | "* \(.title) (#\(.number))"'
33+
'.[] | select(.mergedAt >= $start_date and .mergedAt <= $end_date) | "* \(.title) (#\(.number))"')
3534
done
36-
echo ""
35+
if [ -n "$OUTPUT" ]; then
36+
echo "$LABEL:"
37+
echo ""
38+
echo "$OUTPUT"
39+
echo ""
40+
fi
3741
done
3842

3943
echo "Contributors:"

0 commit comments

Comments
 (0)