Made the gitlab release look better
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
set -e
|
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
|
if [[ $(head -n 1 CHANGELOG) == "${CI_COMMIT_TAG}" ]]; then
|
||||||
|
# Extract all of the bullet points and other things until the next header.
|
||||||
i=0
|
i=0
|
||||||
first=1
|
first=1
|
||||||
while read l; do
|
while read l; do
|
||||||
@@ -15,7 +17,10 @@ if [[ $(head -n 1 CHANGELOG) == "${CI_COMMIT_TAG}" ]]; then
|
|||||||
fi
|
fi
|
||||||
done < CHANGELOG
|
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
|
fi
|
||||||
|
|
||||||
if [[ "${description}" == "" ]]; then
|
if [[ "${description}" == "" ]]; then
|
||||||
|
Reference in New Issue
Block a user