ci: skip PR runs when targeting a non-main base branch (#426)

* ci: skip PR runs when targeting a non-main base branch

Adds `branches: [main]` to the `pull_request:` trigger of each workflow
that runs on PRs (CI, regression, Windows render verification, Docs,
Catalog Previews). PRs whose base is something other than main — typical
for stacked PRs — no longer trigger these workflows.

On a 5-PR Graphite stack this turns 5× CI runs into 1× (when the tip
of the stack reaches main). When a child PR is rebased/promoted so its
base becomes main, CI fires as normal.

publish.yml and the default CodeQL setup are untouched: publish already
filters to main, and CodeQL is default-setup (org UI, not a repo YAML).

* chore(ci): fix oxfmt formatting on renovate.json

Same drive-by as #423. Renovate's config-migration PR #422 landed
unformatted (Renovate bot skips lefthook), so every PR branched from
current main fails `bun run format:check`. Whichever of #423 / #426
merges first cleans it up.
This commit is contained in:
James Russo
2026-04-22 14:19:04 -07:00
committed by GitHub
parent 5ab97a6af9
commit 2e8e579df2
6 changed files with 6 additions and 3 deletions
+1 -3
View File
@@ -36,9 +36,7 @@
},
{
"enabled": false,
"matchPackageNames": [
"/^@hyperframes//"
]
"matchPackageNames": ["/^@hyperframes//"]
}
]
}
+1
View File
@@ -2,6 +2,7 @@ name: Catalog Previews
on:
pull_request:
branches: [main]
paths:
- "registry/blocks/**"
- "registry/components/**"
+1
View File
@@ -2,6 +2,7 @@ name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
+1
View File
@@ -2,6 +2,7 @@ name: Docs
on:
pull_request:
branches: [main]
paths:
- "docs/**"
- "DOCS_GUIDELINES.md"
+1
View File
@@ -2,6 +2,7 @@ name: regression
on:
pull_request:
branches: [main]
push:
branches:
- main
+1
View File
@@ -8,6 +8,7 @@ name: Windows render verification
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch: