mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 06:35:10 +00:00
29 lines
548 B
Bash
Executable File
29 lines
548 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
|
|
}
|
|
|
|
write "Comaparing $latestTag...dev"
|
|
|
|
diff=`git --no-pager log $latestTag...dev --pretty="%s (%an) (%h)"`
|
|
|
|
write
|
|
write "## Features"
|
|
write
|
|
res=`echo "$diff" | awk '/feat/' | grep ":" | grep -v "renovate" | sed -e 's/^/- /' | sort`
|
|
write "$res"
|
|
|
|
write
|
|
write "## Fixes"
|
|
write
|
|
res=`echo "$diff" | awk '!/feat/' | grep ":" | grep -v "renovate" | sed -e 's/^/- /' | sort`
|
|
write "$res"
|