Repository navigation
fix(pr-gate): a draft above a PR no longer makes it skip; only a ready top covers the PRs below - #36
Merged
Merged
Conversation
…dy top covers the PRs below In a stack, a PR skipped whenever any open PR was based on its branch, draft or not. A draft runs nothing, so a PR under only drafts reported "skipped" and was never tested: bepluscloud/ai#885 merged into dev without console CI under draft #886. Now the gate walks up past drafts. A ready PR above (based on its branch, or on a draft's above it) covers it and it skips; drafts alone above leave it to run its own checks, and the run's summary says so. A ready PR above a draft above a PR still covers it: that top's tree holds both. Tests (test/pr-gate/run.sh): only a draft above, two drafts above, ready above a draft above, a ready PR and a draft side by side above, and the reasons each gives. The old gate fails the draft cases. Co-Authored-By: Igor Lamos <igor@be.plus>
igorlamos
approved these changes
Nov 24, 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.
What broke
In a stack, the PR gate skipped a PR whenever any open PR was based on its branch, draft or not. A draft runs nothing (PG-D1). So a PR with only drafts above it reported "skipped: the top covers it" and was never tested.
That is how bepluscloud/ai#885 merged into
devwithout console CI: draft #886 sat above it.The fix
The stack step in
pr-gate/action.ymlnow walks up past drafts:A draft itself still runs nothing. If the gate cannot list the PRs above, it still fails open: the checks run.
PG-D2 in
PR-GATE.mdnow says what happens in each case:Tests
I ran
test/pr-gate/run.sh(whattest-pr-gate.ymlruns) locally: all 41 cases pass. The new cases:dev);Against the old
action.yml, the draft cases fail (8 ✗).No file under
.github/workflowschanges.