Skip version-bump check for documentation-only PRs#968
Merged
Conversation
A documentation-only dev->main PR (e.g. a CHANGELOG correction) does not bump the version, so check-version-bump failed and required an admin override to merge. The workflow now detects whether any non-*.md file changed via dorny/paths-filter and only runs the version comparison when it did. Documentation-only PRs hit a "Skip notice" step instead, so the job still completes and the required check reports success rather than being skipped (which would leave it stuck pending). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documentation-only
dev → mainPRs (e.g. the v2.11.0 CHANGELOG correction in #967) don't bump the version, socheck-version-bumpfailed and needed an admin override to merge — and threw a failure email each time.This gates the version comparison on whether any non-
*.mdfile changed, usingdorny/paths-filter(already used inbuild.yml).Deliberately not using
paths-ignoreat the trigger level:check-versiongates merges, so skipping the run entirely would leave the required check stuck pending. Keeping the workflow running and conditionally skipping the failing step means the check still reports — green — for doc-only PRs.Note
The
dev → mainPR that carries this fix to main will itself still failcheck-versiononce (it changes a workflow file, not a doc file, with no version bump) and needs one admin merge to bootstrap. Every doc-only PR after that is clean.Test plan
dorny/paths-filterusage inbuild.ymlcheck-versionreports green🤖 Generated with Claude Code