ci: add docs-only no-op twin so required checks report on docs PRs - #478
Merged
Conversation
Docs-only PRs to main were structurally unmergeable: ci.yml path-ignores docs/** and markdown, so the ruleset-required contexts (lint, typecheck, test (1/3..3/3), editor-ux) never reported and mergeStateStatus stayed BLOCKED forever (hit on PR #477; same failure shape as the 0265 release-PR stall). Every docs PR needed gh pr merge --admin. Fix is GitHub's documented paired no-op pattern: ci-docs-noop.yml declares the SAME job names, triggered by paths: matching exactly what ci.yml ignores, with each job exiting 0. GitHub satisfies a required context from a passing check run of either workflow. Consumer (0294 policy) is the main ruleset itself; pass condition is decidable by construction. changelog-section is not twinned — changelog-check.yml has no paths filter and already reports on docs-only PRs. Both workflows carry KEEP IN SYNC comments pointing at each other. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: xNet Test <test@xnet.dev>
Contributor
|
Preview removed for PR #478. |
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
Docs-only PRs to main were structurally unmergeable without
gh pr merge --admin: ci.yml path-ignoresdocs/**,*.md,**/*.md,.github/*.mdon thepull_requesttrigger, while the main-branch ruleset requires the contextslint,typecheck,test (1/3)–test (3/3),editor-ux, andchangelog-section. On a docs-only PR those workflows never run, the contexts never report, andmergeStateStatusstays BLOCKED forever — hit on #477, same failure shape as exploration 0265's release-PR stall.Fix
GitHub's documented paired no-op pattern ("Handling skipped but required checks"):
ci-docs-noop.ymlwith the SAME job names (lint,typecheck,testsharded1/3–3/3,editor-ux), triggered bypaths:matching exactly what ci.yml ignores; every job just exits 0. A required context is satisfied by a passing check run of that name from either workflow.changelog-sectionis not twinned:changelog-check.ymlhas no paths filter and already reports on docs-only PRs (fragment orskip-changeloglabel as usual).KEEP IN SYNCcomments pointing at each other so thepaths/paths-ignorelists don't drift.Per the 0294 policy: the named consumer is the main ruleset itself; the pass condition is decidable by construction (always green).
Verification
mergeStateStatusreaches CLEAN/UNSTABLE instead of BLOCKED (this PR touches workflows, so it runs the full real CI and can't exercise the docs-only path itself).🤖 Generated with Claude Code