Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions doc/scripts/auto-release-notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ START_DATE="$1"
END_DATE="$2"

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

for LABEL in "${LABELS[@]}"; do
echo "$LABEL:"
echo ""
OUTPUT=""
for BRANCH in "${BRANCHES[@]}"; do
gh pr list --repo SpikeInterface/spikeinterface --limit $LIMIT --label "$LABEL" --base "$BRANCH" --state merged --json number,title,mergedAt \
OUTPUT+=$(gh pr list --repo SpikeInterface/spikeinterface --limit $LIMIT --label "$LABEL" --base "$BRANCH" --state merged --json number,title,mergedAt \
| jq -r --arg start_date "${START_DATE}T00:00:00Z" --arg end_date "${END_DATE}T00:00:00Z" \
'.[] | select(.mergedAt >= $start_date and .mergedAt <= $end_date) | "* \(.title) (#\(.number))"'
'.[] | select(.mergedAt >= $start_date and .mergedAt <= $end_date) | "* \(.title) (#\(.number))"')
done
echo ""
if [ -n "$OUTPUT" ]; then
echo "$LABEL:"
echo ""
echo "$OUTPUT"
echo ""
fi
done

echo "Contributors:"
Expand Down