Skip to content

Fix changelog check to skip auto-generated release PRs#839

Closed
alan-andrade wants to merge 1 commit into
mainfrom
aa/fix-changelog-release-guard
Closed

Fix changelog check to skip auto-generated release PRs#839
alan-andrade wants to merge 1 commit into
mainfrom
aa/fix-changelog-release-guard

Conversation

@alan-andrade

Copy link
Copy Markdown
Contributor

Why

Auto-generated release PRs (branch release/*) run changie merge, which rewrites CHANGELOG.md. The check-changelog job then fails them on its "don't edit CHANGELOG.md manually" rule. The job already had a guard meant to exempt release PRs, but it tested github.event.head_commit.message, which is only populated on push events and is empty on pull_request events, so the guard never took effect and every release PR failed the check.

What

Gate the job on github.head_ref instead, so it skips release/* branches. Feature PRs are unaffected and still require a changie entry and still may not hand-edit CHANGELOG.md.


Drafted by Claude Opus 4.8 under the direction of @alan-andrade

🤖 Generated with Claudio

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant