mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-01 04:49:18 -06:00
28 lines
655 B
Bash
Executable File
28 lines
655 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
#RELEASE_NOTES_FILE=${RELEASE_NOTES_FILE:?RELEASE_NOTES_FILE must be provided}
|
|
|
|
git log --oneline --decorate --max-count=1000 main > /tmp/gitlog_main
|
|
|
|
readarray lines < /tmp/gitlog_main
|
|
for line in "${lines[@]}"
|
|
do
|
|
if [[ $line =~ \(tag:\ nosqlbench-[0-9]+\.[0-9]+\.[0-9]+\).+ ]]
|
|
then
|
|
# printf "no more lines after $line" 1>&2
|
|
break
|
|
elif [[ $line =~ \[maven-release-plugin\] ]]
|
|
then
|
|
# printf "maven release plugin, skipping: $line\n" 1>&2
|
|
continue
|
|
elif [[ $line =~ "Merge" ]]
|
|
then
|
|
# printf "merge info, skipping: $line" 1>&2
|
|
continue
|
|
else
|
|
printf -- "- $line"
|
|
# printf "$line" | tee -a ${RELEASE_NOTES_FILE}
|
|
fi
|
|
done
|
|
|