Skip to content

fix(ci): a PR based on anything but main ran no CI and reported as clean - #1

Merged
fevra-dev merged 1 commit into
mainfrom
fix/ci-pr-base-filter
Sep 6, 2026
Merged

fevra-dev merged 1 commit into
mainfrom
fix/ci-pr-base-filter

Conversation

@fevra-dev

Copy link
Copy Markdown
Owner

GitHub applies branches: under pull_request to the base branch, not the
head. A stacked PR — one based on another feature branch — therefore matched no
filter and ran no CI at all, while gh pr view reported it as
MERGEABLE / CLEAN with an empty check list. An empty check list is not a
passing check list, and only the emptiness distinguished them from a green run.

Actualised once in fevra-dev/Workflow (PR #92 merged to main with zero checks
ever run). Latent in 13 workflow files across 9 repos, seeded by the shared
/macdaddy CI template. This repo is one of them.

Fix: drop the filter under pull_request only. The push: filter is kept — it
is a legitimate branch restriction and is unaffected. Fork PRs still receive no
secrets beyond a read-only GITHUB_TOKEN, so this does not widen what an
untrusted PR can reach.

Verified with .githooks/actions-pin.py PIN007 (fevra-dev/Workflow): non-zero
before, 0 after.

`branches:` under `pull_request` filters the BASE branch, not the head, so a
stacked PR matched nothing, ran zero checks, and `gh pr view` still reported
MERGEABLE / CLEAN with an empty check list. Drop the filter under
`pull_request` only; the `push:` filter is unchanged.

Verified by actions-pin.py PIN007 (fevra-dev/Workflow): non-zero before, 0 after.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0177zHe8eJQppFt2oaf9URZp
@fevra-dev
fevra-dev merged commit c41d3a4 into main Sep 6, 2026
8 checks passed
@fevra-dev
fevra-dev deleted the fix/ci-pr-base-filter branch September 6, 2026 01:49
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.

1 participant