Skip to content

🐛 fix(validate-news): skip label changes on closed PRs - #75

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/news-skip-closed-pr
Nov 17, 2026
Merged

gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/news-skip-closed-pr

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

Adding or removing a label on a merged pull request turned its 📝 Changelog check red, even when the pull request carried a fragment (run on tox-dev/filelock#968, labeled security after it merged). Once this is released and callers bump the pin, those post-merge label changes pass instead of leaving a failed check on the pull request.

The news check counts fragments between the pull request head and its merge base with the base branch. After a merge the head is already on the base branch, so that count is zero. The step that already skips labels set at opening now also skips any label change on a pull request that is not open, which covers merged and closed-unmerged ones alike. A closed pull request gets the full check again from its reopened run, so callers must keep reopened in their trigger types, as the docs now say.

Adding a label to a merged pull request reran the news check against a
head that is already on the base branch, so it found no fragment and
failed, as on tox-dev/filelock#968.
@gaborbernat gaborbernat added the bug Something isn't working label Nov 17, 2026
@gaborbernat
gaborbernat merged commit e649801 into tox-dev:main Nov 17, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant