mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
3be7f0aa3e
[release]
33 lines
720 B
Bash
Executable File
33 lines
720 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# https://git-scm.com/docs/pretty-formats
|
|
|
|
latestTag=`git describe | grep -oE "^[^-]+"`
|
|
|
|
rm commits.md
|
|
|
|
write() {
|
|
echo "$@"
|
|
echo "$@" >> commits.md
|
|
}
|
|
|
|
writeSection() {
|
|
write
|
|
write "## $1"
|
|
write
|
|
res=`echo "$3" | awk "/^$2(.*):/;" | grep ":" | grep -v "renovate" | sed -e 's/^/- /' | sort`
|
|
write "$res"
|
|
}
|
|
|
|
write "Comaparing $latestTag...dev"
|
|
|
|
diff=`git --no-pager log $latestTag...dev --pretty="%s (%an) (%h)"`
|
|
|
|
writeSection 'Features' 'feat' $diff
|
|
writeSection 'Fixes' 'fix' $diff
|
|
writeSection 'Refactors' 'refactor' $diff
|
|
writeSection 'Performance Improvements' 'perf' $diff
|
|
writeSection 'Examples' 'examples' $diff
|
|
writeSection 'Chore' 'chore' $diff
|
|
writeSection 'Tests' 'test' $diff
|