Browse Source

Script to help with creation of release notes

pull/45/head
Martin Bober 9 months ago
parent
commit
1fa751e76c
  1. 17
      generate_release_notes.sh

17
generate_release_notes.sh

@ -0,0 +1,17 @@
#!/bin/bash
API_ENDPOINT="https://git.mbober.de/api/v1"
REPO="charxchange/charxchange"
if test $# -lt 1 ; then
echo "Usage: $0 git_log_range"
echo
echo "Example: $0 0.12.0..HEAD"
exit
fi
git log $1 | grep -oE "#[0-9]+" | grep -oE "[0-9]+" | sort | uniq | while read line ; do
JSON=$(curl -s -X GET "$API_ENDPOINT/repos/$REPO/issues/$line" -H "accept: application/json")
TITLE=$(echo $JSON | jq -r '.title')
echo "$TITLE (#$line)"
done
Loading…
Cancel
Save