Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-09-08 11:21:40 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-09-08 11:21:40 +0300
commit8af2c297b7d4343e42c81c8ded8000e4a3b88c07 (patch)
treef5632e3af1d49e43abd8c9b2e293089a6b770ef5 /.gitlab
parent07ecb70f62f054cd224766fb31ef50e123b3c5f2 (diff)
fix: escape message parameter properly
Diffstat (limited to '.gitlab')
-rwxr-xr-x.gitlab/scripts/changelog.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitlab/scripts/changelog.sh b/.gitlab/scripts/changelog.sh
index ec529210..290f9aa4 100755
--- a/.gitlab/scripts/changelog.sh
+++ b/.gitlab/scripts/changelog.sh
@@ -12,13 +12,15 @@ else
PROJECT_ID="$PUBLIC_PROJECT_ID"
fi
+MESSAGE="docs: add changelog for version $VERSION"
+
function generate_changelog() {
curl --header "PRIVATE-TOKEN: $TOKEN" \
- --data "version=$VERSION&branch=$BRANCH" \
+ --data "version=$VERSION&branch=$BRANCH&message=$MESSAGE" \
--fail \
--silent \
--show-error \
- "https://gitlab.com/api/v4/projects/$PROJECT_ID/repository/changelog?message=\"docs: add changelog for version $VERSION\""
+ "https://gitlab.com/api/v4/projects/$PROJECT_ID/repository/changelog"
}
echo 'Updating changelog on the remote branch...'