Made the gitlab release look better

This commit is contained in:
Sumner Evans
2019-10-29 12:48:37 -06:00
parent 0f97df9943
commit b2d47bd1a6
2 changed files with 7 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
t10
t12
===
* TESTING

View File

@@ -2,7 +2,9 @@
set -e
# The release notes for this version should be the first line of the CHANGELOG.
if [[ $(head -n 1 CHANGELOG) == "${CI_COMMIT_TAG}" ]]; then
# Extract all of the bullet points and other things until the next header.
i=0
first=1
while read l; do
@@ -15,7 +17,10 @@ if [[ $(head -n 1 CHANGELOG) == "${CI_COMMIT_TAG}" ]]; then
fi
done < CHANGELOG
description=$(head -n $(( $i - 2 )) CHANGELOG)
# i is now the index of the line below the second header.
description="**Release Notes:**
$(head -n $(( $i - 2 )) CHANGELOG | tail -n $(( $i - 5 )))"
fi
if [[ "${description}" == "" ]]; then