From 86a11d9d75fa5249a92395fac699fc7bb3506c29 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 16 Jun 2026 17:15:33 +0100 Subject: [PATCH] Fix extension check in check-newsfragments This was added a few months ago, but has never worked correctly: it failed to set the exit code if an incorrectly-named newsfragment was found. --- scripts/check-newsfragments | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/check-newsfragments b/scripts/check-newsfragments index 242b46d8..995a3282 100755 --- a/scripts/check-newsfragments +++ b/scripts/check-newsfragments @@ -26,6 +26,7 @@ while read f; do # check that each changelog file has a known extension if ! [[ "$extension" == "new" || "$extension" == "feature" || "$extension" == "clarification" || "$extension" == "breaking" || "$extension" == "deprecation" ]]; then echo -e "\e[31mERROR: newsfragment $f does not have one of the required file extensions for a changelog entry: .new, .feature, .clarification, .breaking, .deprecation\e[39m" >&2 + failed=1 fi # check that there is nothing that looks like a newsfile outside one of the