mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(log) if no features or not fixes do not add to changelog
This commit is contained in:
parent
3887206fd6
commit
31ae0acea6
1 changed files with 18 additions and 6 deletions
24
shell/log.sh
24
shell/log.sh
|
|
@ -3,12 +3,24 @@ if test -z $1
|
|||
then
|
||||
echo 'log.sh <tag>'
|
||||
else
|
||||
echo 'fix:'
|
||||
git log $1..HEAD --pretty=format:"- %s" --grep fix | sed 's/fix//g'
|
||||
echo '\n'
|
||||
FIX=`git log $1..HEAD --pretty=format:"- %s" --grep fix | sed 's/fix//g'`
|
||||
|
||||
echo 'feature:'
|
||||
git log $1..HEAD --pretty=format:"- %s" --grep feature | sed 's/feature//g'
|
||||
if test -n FIX
|
||||
then
|
||||
echo 'fix:'
|
||||
git log $1..HEAD --pretty=format:"- %s" --grep feature | sed 's/feature//g'
|
||||
fi
|
||||
|
||||
echo '\n\n'
|
||||
FEATURE=$(git log $1..HEAD --pretty=format:"- %s" --grep feature | sed 's/feature//g')
|
||||
|
||||
if test -n FEATURE
|
||||
then
|
||||
echo 'feature:'
|
||||
git log $1..HEAD --pretty=format:"- %s" --grep feature | sed 's/feature//g'
|
||||
fi
|
||||
|
||||
if test -n FIX || test -z FEATURE
|
||||
then
|
||||
echo '\n'
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue