2020-05-06 12:47:59 -05:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
#RELEASE_NOTES_FILE=${RELEASE_NOTES_FILE:?RELEASE_NOTES_FILE must be provided}
|
|
|
|
|
2020-12-22 17:42:38 -06:00
|
|
|
git log --oneline --decorate --max-count=1000 main > /tmp/gitlog_main
|
2020-05-06 13:23:38 -05:00
|
|
|
|
2020-06-15 11:03:47 -05:00
|
|
|
readarray lines < /tmp/gitlog_main
|
2020-05-06 12:47:59 -05:00
|
|
|
for line in "${lines[@]}"
|
|
|
|
do
|
|
|
|
if [[ $line =~ \(tag:\ nosqlbench-[0-9]+\.[0-9]+\.[0-9]+\).+ ]]
|
2020-05-06 13:32:45 -05:00
|
|
|
then
|
|
|
|
# printf "no more lines after $line" 1>&2
|
|
|
|
break
|
2020-05-06 12:47:59 -05:00
|
|
|
elif [[ $line =~ \[maven-release-plugin\] ]]
|
2020-05-06 13:32:45 -05:00
|
|
|
then
|
|
|
|
# printf "maven release plugin, skipping: $line\n" 1>&2
|
|
|
|
continue
|
|
|
|
elif [[ $line =~ "Merge" ]]
|
|
|
|
then
|
2021-04-02 11:12:39 -05:00
|
|
|
printf -- "- $line"
|
2020-05-06 13:32:45 -05:00
|
|
|
# printf "merge info, skipping: $line" 1>&2
|
|
|
|
continue
|
2020-05-06 12:47:59 -05:00
|
|
|
else
|
2020-06-01 00:36:45 -05:00
|
|
|
printf -- "- $line"
|
2020-05-06 12:47:59 -05:00
|
|
|
# printf "$line" | tee -a ${RELEASE_NOTES_FILE}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|