mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
updated release notes script
This commit is contained in:
parent
77fdc93a23
commit
e2761006b4
@ -3,22 +3,22 @@ set -e
|
|||||||
#RELEASE_NOTES_FILE=${RELEASE_NOTES_FILE:?RELEASE_NOTES_FILE must be provided}
|
#RELEASE_NOTES_FILE=${RELEASE_NOTES_FILE:?RELEASE_NOTES_FILE must be provided}
|
||||||
|
|
||||||
git log --oneline --decorate --max-count=1000 master > /tmp/gitlog_master
|
git log --oneline --decorate --max-count=1000 master > /tmp/gitlog_master
|
||||||
(( release_count=0 ))
|
|
||||||
|
|
||||||
readarray lines < /tmp/gitlog_master
|
readarray lines < /tmp/gitlog_master
|
||||||
for line in "${lines[@]}"
|
for line in "${lines[@]}"
|
||||||
do
|
do
|
||||||
if [[ $line =~ \(tag:\ nosqlbench-[0-9]+\.[0-9]+\.[0-9]+\).+ ]]
|
if [[ $line =~ \(tag:\ nosqlbench-[0-9]+\.[0-9]+\.[0-9]+\).+ ]]
|
||||||
then release_count++
|
then
|
||||||
if (( release_count>=2 ))
|
# printf "no more lines after $line" 1>&2
|
||||||
then break
|
break
|
||||||
fi
|
|
||||||
fi
|
|
||||||
then break
|
|
||||||
elif [[ $line =~ \[maven-release-plugin\] ]]
|
elif [[ $line =~ \[maven-release-plugin\] ]]
|
||||||
then continue
|
then
|
||||||
elif [[ $line =~ \(.+Merge\ branch ]]
|
# printf "maven release plugin, skipping: $line\n" 1>&2
|
||||||
then continue
|
continue
|
||||||
|
elif [[ $line =~ "Merge" ]]
|
||||||
|
then
|
||||||
|
# printf "merge info, skipping: $line" 1>&2
|
||||||
|
continue
|
||||||
else
|
else
|
||||||
printf "$line"
|
printf "$line"
|
||||||
# printf "$line" | tee -a ${RELEASE_NOTES_FILE}
|
# printf "$line" | tee -a ${RELEASE_NOTES_FILE}
|
||||||
|
Loading…
Reference in New Issue
Block a user