Skip to content

ci: run pull-request CI regardless of base branch - #99

Draft
Huxpro wants to merge 1 commit into
new-lynxfrom
ci/stack-pr-checks
Draft

Huxpro wants to merge 1 commit into
new-lynxfrom
ci/stack-pr-checks

Conversation

@Huxpro

@Huxpro Huxpro commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Summary

Remove the [main, new-lynx] base-branch filter from the pull_request trigger in ci.yml, so pull requests targeting intermediate stack branches get CI too.

Why

Stacked agent PRs base each slice on the previous slice's branch, so the base filter meant the entire #67→#97 stack ran with zero checks; the only gate before merging it into new-lynx was a manual full-suite run in a session container. With the filter gone, the stack workflow becomes: retarget → mark ready → CI runs → merge — every PR carries its own checks.

Changes

  • .github/workflows/ci.yml: drop branches: [main, new-lynx] under pull_request (the push trigger keeps its filter). Cost stays bounded because every expensive job is already gated on draft == false, so a stacked PR still runs CI exactly once — when it is marked ready ahead of its merge.

Validation

  • pnpm format:files:check .github/workflows/ci.yml
  • pnpm typecheck — not run: workflow-only change, no code touched
  • pnpm test — not run: workflow-only change; the trigger semantics can only be observed on GitHub Actions itself
  • checked ci.yml for base-ref-dependent logic: the only context.ref condition (release classification, line ~90) applies to push events on main and is unaffected

Risk / follow-ups

  • Forked PRs targeting arbitrary branches now also trigger the workflow; they already could by targeting main, and the draft guard plus GitHub's fork-token restrictions bound the exposure.
  • If ready non-stack PRs to feature branches ever become noisy, a branches-ignore list is the narrower dial to reach for.

Provenance

  • An agent produced this diff (agent-authored)

Generated by Claude Code

Stacked agent PRs target intermediate stack branches, so the
[main, new-lynx] base filter left the entire stack with zero checks;
the only gate was a manual full-suite run before merging. Dropping the
filter gives every PR its checks when it leaves draft, while the
existing draft guard keeps the per-stack CI cost at one run per PR.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant