Full-Stack Ruby on Rails application running the Pen&PaperBox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
452 B

#!/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