From 4112728e1ed089760ca0b960bda1637af97b221c Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sat, 5 Oct 2024 11:50:29 +0200 Subject: [PATCH] feat: add MR description with release changes --- Release.gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Release.gitlab-ci.yml b/Release.gitlab-ci.yml index 3a20e9c..bfcbe1e 100644 --- a/Release.gitlab-ci.yml +++ b/Release.gitlab-ci.yml @@ -27,11 +27,13 @@ changelog: GIT_DEPTH: 0 # avoid shallow clone to give cliff all the info it needs script: - 'echo "Generating changelog"' + - 'git-cliff --bump --unreleased > CHANGES.md' - 'git-cliff --bump > CHANGELOG.md' - 'echo "Bumping version"' - 'git-cliff --bumped-version 2>/dev/null > VERSION' artifacts: paths: + - CHANGES.md - CHANGELOG.md - VERSION rules: @@ -60,6 +62,7 @@ handle_mr: MR=$(echo "${MRS}" | jq ".[].iid") BRANCH=$(echo "${BRANCHES}" | jq ".[].name") TITLE="chore(release): prepare for $(cat VERSION)" + DESCRIPTION="$(cat CHANGES.md)" CONTENT="$(base64 -w0