Skip to content

Run the lint gate on a pull request into develop - #91

Merged
ptr727 merged 1 commit into
developfrom
fix/lint-gate-on-develop-pull-request
Aug 15, 2026
Merged

ptr727 merged 1 commit into
developfrom
fix/lint-gate-on-develop-pull-request

Conversation

@ptr727

@ptr727 ptr727 commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Resync against ptr727/ProjectTemplate main@0e84805. Drift class 3 of 3: the interface workflow.

The defect

test-pull-request.yml named pull_request: branches: [ main ]. A pull request opened against develop matches 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 outcome WORKFLOW.md D1.2 forbids. The hub's operational-model section names a main-only trigger set as a defect outright.

The trigger set now names both branches.

What it does not change

The develop ruleset 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.ref and a pull_request run is refs/pull/<n>/merge where the push run is refs/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 the run: blocks) and the hub prose_lint.py over the changed lines, both clean. The trigger itself is exercised by the first pull request that opens against develop, which is this one's siblings.

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.
Copilot AI lite review requested due to automatic review settings August 15, 2026 14:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_request trigger branch filter to include both main and develop.
  • 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.

@ptr727
ptr727 merged commit ba3765f into develop Aug 15, 2026
29 checks passed
@ptr727
ptr727 deleted the fix/lint-gate-on-develop-pull-request branch September 20, 2026 16:36
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.

2 participants