Add updateChangesTxt script (#184)

This commit is contained in:
Abe Pazos
2021-04-16 18:00:27 +03:00
committed by GitHub
parent 0d529ba0bd
commit 4f07d639cc

12
updateChangesTxt Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/bash
git fetch --all
hash=$(git log --no-walk --tags --pretty="%h %d" | grep 'tag: v[0-9.]\+[)]' | awk '{print $1; exit}')
echo "Hash of previous release: $hash"
git log $hash.. --pretty=format:"- %h %s (%an)" --no-merges | sort -k 3 | uniq -u -s 11 >changes.txt
cat changes.txt