]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add newline for changelog CI job
authorNicki Křížek <nicki@isc.org>
Tue, 24 Jun 2025 14:35:56 +0000 (16:35 +0200)
committerNicki Křížek <nicki@isc.org>
Tue, 24 Jun 2025 15:29:26 +0000 (17:29 +0200)
In case the changelog file doesn't have an empty line at the end of the
file, the job may fail with the following error:

WARNING: Bullet list ends without a blank line; unexpected unindent.

This typically happens in MRs targeting the -S edition, as those
changelogs usually don't have an empty newline. This change ensures the
changelog job can pass and verify the title/desc contents even in those
cases.

.gitlab-ci.yml

index c96f3eee646c26c5977652863b3d13c3792f6d10..9ae4f4b9aaf1309c5e5097a8755e3663cdcc9d1f 100644 (file)
@@ -670,7 +670,9 @@ changelog:
     - sed -i 's/^Draft:\s*//' commitmsg
     - echo -e "$CI_MERGE_REQUEST_DESCRIPTION" >> commitmsg
     - git commit --allow-empty -F commitmsg
-    - ./contrib/gitchangelog/gitchangelog.py HEAD^..HEAD >> $(ls doc/changelog/changelog-9.* | sort --version-sort | tail -n 1)
+    - export CHANGELOG=$(ls doc/changelog/changelog-9.* | sort --version-sort | tail -n 1)
+    - printf "\n" >> $CHANGELOG
+    - ./contrib/gitchangelog/gitchangelog.py HEAD^..HEAD >> $CHANGELOG
   after_script:
     - git diff
   needs: []