mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
[skip ci] add commits script
This commit is contained in:
parent
a7a52b03b2
commit
6b4a5db7f6
17
scripts/commits
Executable file
17
scripts/commits
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# https://git-scm.com/docs/pretty-formats
|
||||
|
||||
latestTag=`git describe | grep -oE "^[^-]+"`
|
||||
|
||||
diff=`git --no-pager log $latestTag...dev --pretty="%s (%an) (%h)"`
|
||||
|
||||
echo
|
||||
echo "# Features"
|
||||
echo "$diff" | awk '/feat/'
|
||||
echo "$diff" | awk '/feat/' | grep -oE "[0-9a-f]{8}" > .git/feat.txt
|
||||
|
||||
echo
|
||||
echo "# Fixes"
|
||||
echo "$diff" | awk '!/feat/'
|
||||
echo "$diff" | awk '!/feat/' | grep -oE "[0-9a-f]{8}" > .git/fix.txt
|
Loading…
Reference in New Issue
Block a user