Repository navigation
Run the lint gate on a pull request into develop - #91
Merged
Merged
Conversation
The pull_request trigger named main alone, so a PR opened against develop matched nothing: the validation job never started, the aggregator never reported, and the PR showed a mergeable state with an empty check list. That is the false clean WORKFLOW.md D1.2 forbids, and the operational-model section names a main-only trigger set as a defect outright. The develop ruleset requires no status check, so the gate is reported there rather than required, which leaves the direct-commit allowance the model is built on intact. The cost is a duplicate run, once on the PR and again on the push when the merge lands. The two occupy different concurrency groups, since the group keys on github.ref and a pull_request run is refs/pull/<n>/merge where the push run is refs/heads/develop, so neither cancels the other. Verified with actionlint and the fleet prose gate. The trigger itself is exercised by the first pull request that opens against develop.
There was a problem hiding this comment.
Pull request overview
This PR fixes the interface workflow trigger so the lint/validation gate runs for pull requests targeting develop as well as main, preventing PRs into develop from appearing “clean” due to having no checks executed.
Changes:
- Expand the
pull_requesttrigger branch filter to include bothmainanddevelop. - Add inline documentation explaining why the dual-branch trigger is required and the expected duplicate-run behavior.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Resync against
ptr727/ProjectTemplatemain@0e84805. Drift class 3 of 3: the interface workflow.The defect
test-pull-request.ymlnamedpull_request: branches: [ main ]. A pull request opened againstdevelopmatches nothing in that set, so the validation job never starts and the aggregator never reports. The pull request then shows a mergeable state with an empty check list, which reads as a clean pass and is the outcomeWORKFLOW.mdD1.2 forbids. The hub's operational-model section names amain-only trigger set as a defect outright.The trigger set now names both branches.
What it does not change
The
developruleset requires no status check, so the gate is reported there rather than required. The direct-commit allowance the operational model is built on stays intact.The cost
A duplicate run: once on the pull request, and again on the push when the merge lands. The two occupy different concurrency groups, since the group keys on
github.refand apull_requestrun isrefs/pull/<n>/mergewhere the push run isrefs/heads/develop, so neither cancels the other. On a lint-only gate that is a couple of runner-minutes, and the alternative, a condition that suppresses the push run, would have to tell a merge commit from a direct commit.Verification
actionlint(which bundles shellcheck for therun:blocks) and the hubprose_lint.pyover the changed lines, both clean. The trigger itself is exercised by the first pull request that opens againstdevelop, which is this one's siblings.