mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 11:30:00 -04:00
chg: ci: Add newline for changelog CI job
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. Merge branch 'nicki/ci-changelog-add-missing-newline' into 'main' See merge request isc-projects/bind9!10628
This commit is contained in:
commit
ea52887e7a
1 changed files with 3 additions and 1 deletions
|
|
@ -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: []
|
||||
|
|
|
|||
Loading…
Reference in a new issue