From 15adf2677e442df7b5510744ca62cee5b4c839a6 Mon Sep 17 00:00:00 2001 From: Crispin-2713 Date: Mon, 19 Oct 2026 01:57:41 -0400 Subject: [PATCH] ci(changelog): count an edited pending fragment as the change's entry, not only an added one A change whose entry belongs in a fragment already pending, such as a follow-up to the change that added it, amends that fragment in place, and the check counted added fragments alone (--diff-filter=A), so such a change needed the 'no-changelog' label though it carries an entry (#540's case). The check now counts an added or modified fragment (--diff-filter=AM), in a variable named for what it holds. CONTRIBUTING.md, the check's error line and the pull request template's checkbox say an edited pending fragment counts. A deleted fragment still doesn't count, as 7fc6a140 meant, and neither does one git reports as a rename. Nor does an edit of changelog.d/README.md, which isn't a fragment. Co-Authored-By: Claude Opus 5.5 --- .github/PULL_REQUEST_TEMPLATE.md | 5 +++-- .github/workflows/changelog.yml | 9 +++++---- CONTRIBUTING.md | 6 +++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 2f9efbfe3..0cace7138 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -21,8 +21,9 @@ --- -- [ ] Changelog fragment added — `changelog.d/..md` - (see `changelog.d/README.md`) — or this change is internal-only / +- [ ] Changelog fragment added or a pending one edited — + `changelog.d/..md` (see + `changelog.d/README.md`) — or this change is internal-only / test-only / docs-only (apply the `no-changelog` label).