Fix extension check in check-newsfragments (#2402)
Some checks are pending
Spec / 🔎 Validate OpenAPI specifications (push) Waiting to run
Spec / 🔎 Check Event schema examples (push) Waiting to run
Spec / 🔎 Check OpenAPI definitions examples (push) Waiting to run
Spec / 🔎 Check JSON Schemas inline examples (push) Waiting to run
Spec / ⚙️ Calculate baseURL for later jobs (push) Waiting to run
Spec / 🐍 Build OpenAPI definitions (push) Blocked by required conditions
Spec / 📢 Run towncrier for changelog (push) Waiting to run
Spec / 📖 Build the spec (push) Blocked by required conditions
Spec / 🔎 Validate generated HTML (push) Blocked by required conditions
Spec / 📖 Build the historical backup spec (push) Blocked by required conditions
Spec / Create release (push) Blocked by required conditions
Spell Check / Spell Check with Typos (push) Waiting to run

This was added in #1542, but has never worked correctly: it failed to
set the exit code if an incorrectly-named newsfragment was found.
This commit is contained in:
Richard van der Hoff 2026-06-17 09:19:41 +01:00 committed by GitHub
parent c2d396fb98
commit 86396b46b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 2 additions and 0 deletions

View file

@ -0,0 +1 @@
Minor fixes to `check-newsfragments` CI script.

View file

@ -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