From 18b9d9f73084b0d4e4b726f6c6923a0d3f90f840 Mon Sep 17 00:00:00 2001 From: Kristian Klausen Date: Sun, 4 Apr 2021 21:16:20 +0200 Subject: [PATCH] Add the $maintainers to the PR's body instead of the commit This should fix the notification spam caused by users pushing the commits to their own repository. --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb46af5..2eb8e9d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -281,11 +281,11 @@ publish: - 'git commit -m "archlinux: Release ${BUILD_VERSION}" -m "This is an automated release [1]." - -m "Maintainers: ${maintainers}" -m "[1] ${CI_PROJECT_URL}/-/blob/master/.gitlab-ci.yml"' - git push -u origin "$head" - - gh pr create + - 'gh pr create --repo docker-library/official-images - --fill + --title "$(git show --no-patch --format="%s")" + --body "$(printf "%s\n\n---\n\nMaintainers: ${maintainers}\n" "$(git show --no-patch --format="%b")")" --base master - --head archlinux:"$head" + --head archlinux:"$head"' -- GitLab