mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
chore: improve commit shell
[release]
This commit is contained in:
parent
19dab79581
commit
3be7f0aa3e
@ -11,18 +11,22 @@ write() {
|
||||
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)"`
|
||||
|
||||
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"
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user