Files
nhost/changelog_summary.sh
David Barroso 10b0f7490e feat (docs): add jwt docs + openapi improvements (#3026)
Added docs for JWT and a script to quickly generate pages for all the
auth API endpoints.
2024-11-25 16:53:09 +01:00

18 lines
604 B
Bash
Executable File

#/usr/bin/env bash
PREV_MONTH=$(date -d "1 month ago" +%Y-%m)
echo "prev: $PREV_MONTH"
files=$(git log --since="$PREV_MONTH-01" --until="$PREV_MONTH-31" --name-only -- '**/CHANGELOG.md' | grep CHANGE | sort -u)
echo "files: $files"
echo "Below you can find the latest release for each individual package released during this month:"
echo
for file in $files; do
name=$(grep '^# ' $file | awk '{ print substr($0, 4) }')
last_release=$(grep '^## ' $file | awk '{ print substr($0, 4) }' | head -n 1)
echo "@$name: $last_release [CHANGELOG.md](https://github.com/nhost/nhost/blob/main/$file)"
done