Skip to content

ci: trigger CI on any pull request, not just PRs into main#11

Merged
MoonBoi9001 merged 1 commit into
mainfrom
mb9/run-ci-on-all-pull-requests
May 11, 2026
Merged

ci: trigger CI on any pull request, not just PRs into main#11
MoonBoi9001 merged 1 commit into
mainfrom
mb9/run-ci-on-all-pull-requests

Conversation

@MoonBoi9001
Copy link
Copy Markdown
Member

TL;DR

Broaden the CI workflow's pull_request trigger so it runs on PRs targeting any branch, not just main.

Motivation

Stacked PRs against feature branches (such as a PR opened against another open PR's branch, rather than directly against main) currently skip CI because the workflow filters on the base branch. The result is that downstream PRs in a stack ship without automated test or build checks, and reviewers have to remember to run things locally to catch what CI would otherwise flag. Removing the base-branch filter makes CI run uniformly on every pull request, which is the behaviour reviewers expect.

Summary

  • Drop the branches: filter on the pull_request trigger so CI runs on every PR.

🤖 Generated with Claude Code

Drop the branches: [main] filter so stacked PRs whose base is another
branch in the same repo (e.g. PR #7 stacked on this one) still get
build-and-test runs. Keep the push trigger narrow to main so CI does
not fire on every force-push across feature branches.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MoonBoi9001 MoonBoi9001 merged commit 2521bb0 into main May 11, 2026
4 checks passed
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