1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 01:52:26 +08:00

Merge pull request #3831 from ipfs/feat/changelog-script

Add a script to help generate the CHANGELOG
This commit is contained in:
Jeromy Johnson
2017-03-24 14:33:24 -07:00
committed by GitHub

12
bin/mkreleaselog Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
LAST_TAG=$(git tag | grep -v -- '-rc' | grep 'v'| tail -n1)
git log --oneline --merges --reverse $LAST_TAG...master |
while read MERGE
do
commit=$(echo $MERGE | awk '{ print $1 }')
prnum=$(echo $MERGE | awk '{ print $5 }' | tr -d '#')
desc=$(git show $commit | sed '8q;d' | sed 's/^ //g')
printf " - %s ([ipfs/go-ipfs#%s](https://github.com/ipfs/go-ipfs/pull/%s))\n" "$desc" "$prnum" "$prnum"
done