Skip to content

Commit 2e8e579

Browse files
authored
ci: skip PR runs when targeting a non-main base branch (heygen-com#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 heygen-com#423. Renovate's config-migration PR heygen-com#422 landed unformatted (Renovate bot skips lefthook), so every PR branched from current main fails `bun run format:check`. Whichever of heygen-com#423 / heygen-com#426 merges first cleans it up.
1 parent 5ab97a6 commit 2e8e579

6 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/renovate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
},
3737
{
3838
"enabled": false,
39-
"matchPackageNames": [
40-
"/^@hyperframes//"
41-
]
39+
"matchPackageNames": ["/^@hyperframes//"]
4240
}
4341
]
4442
}

.github/workflows/catalog-previews.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Catalog Previews
22

33
on:
44
pull_request:
5+
branches: [main]
56
paths:
67
- "registry/blocks/**"
78
- "registry/components/**"

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: CI
22

33
on:
44
pull_request:
5+
branches: [main]
56
push:
67
branches: [main]
78

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Docs
22

33
on:
44
pull_request:
5+
branches: [main]
56
paths:
67
- "docs/**"
78
- "DOCS_GUIDELINES.md"

.github/workflows/regression.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: regression
22

33
on:
44
pull_request:
5+
branches: [main]
56
push:
67
branches:
78
- main

.github/workflows/windows-render.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ name: Windows render verification
88

99
on:
1010
pull_request:
11+
branches: [main]
1112
push:
1213
branches: [main]
1314
workflow_dispatch:

0 commit comments

Comments
 (0)