diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7e827a5223..c64bcf7b7c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -660,6 +660,28 @@ tarball-create: # Jobs for doc builds on Debian 12 "bookworm" (amd64) +changelog: + <<: *base_image + <<: *docs_job + rules: + - if: '$CI_MERGE_REQUEST_TITLE =~ /\s(dev|usr|pkg):/' + variables: + GIT_AUTHOR_NAME: $GITLAB_USER_NAME + GIT_AUTHOR_EMAIL: $GITLAB_USER_EMAIL + GIT_COMMITTER_NAME: $GITLAB_USER_NAME + GIT_COMMITTER_EMAIL: $GITLAB_USER_EMAIL + before_script: + - echo -e "$CI_MERGE_REQUEST_TITLE\n" > commitmsg + - 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 + needs: + - job: autoreconf + artifacts: true + artifacts: + untracked: true + docs: <<: *default_triggering_rules <<: *base_image diff --git a/bin/tests/convert-trs-to-junit.py b/bin/tests/convert-trs-to-junit.py index 85b37dd629..6d7b4aaa1b 100755 --- a/bin/tests/convert-trs-to-junit.py +++ b/bin/tests/convert-trs-to-junit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright (C) Internet Systems Consortium, Inc. ("ISC") # diff --git a/bin/tests/system/doth/get_openssl_version.py b/bin/tests/system/doth/get_openssl_version.py index f1d6f4bf00..94cbf5a6bc 100755 --- a/bin/tests/system/doth/get_openssl_version.py +++ b/bin/tests/system/doth/get_openssl_version.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) Internet Systems Consortium, Inc. ("ISC") # diff --git a/bin/tests/system/doth/stress_http_quota.py b/bin/tests/system/doth/stress_http_quota.py index 05ad043571..ca1fddbcc6 100755 --- a/bin/tests/system/doth/stress_http_quota.py +++ b/bin/tests/system/doth/stress_http_quota.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) Internet Systems Consortium, Inc. ("ISC") # diff --git a/contrib/gitchangelog/gitchangelog.py b/contrib/gitchangelog/gitchangelog.py index 7193dddc3d..c0d444baf1 100755 --- a/contrib/gitchangelog/gitchangelog.py +++ b/contrib/gitchangelog/gitchangelog.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ############################################################################ # Copyright (c) 2018, Valentin Lab # All rights reserved.