Skip to content

Commit 6e1c900

Browse files
committed
Remove branches filter from merge_group triggers
The merge queue creates temporary refs like gh-readonly-queue/main/pr-N-xxx. The branches: [main] filter was preventing workflows from triggering because the ref name doesn't match the simple "main" glob pattern. Since merge queue is only enabled for specific branches via branch protection rules anyway, the branches filter on merge_group events is redundant and causes the workflows to never run. This fixes all 4 required checks (tests, claude-code-e2e, cla-check, validate-generation) not running in merge queue.
1 parent c719bb9 commit 6e1c900

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/cla.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ on:
99
# Run in merge queue but skip the step (shows as passing check)
1010
merge_group:
1111
types: [checks_requested]
12-
branches: [main]
12+
# Note: Don't use branches filter here - merge queue refs like
13+
# gh-readonly-queue/main/pr-N-xxx don't match simple branch globs
1314
workflow_dispatch:
1415

1516
# Explicitly set permissions for the workflow

.github/workflows/claude-code-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ on:
1515
# Run in the merge queue to validate before merging
1616
merge_group:
1717
types: [checks_requested]
18-
branches: [main]
18+
# Note: Don't use branches filter here - merge queue refs like
19+
# gh-readonly-queue/main/pr-N-xxx don't match simple branch globs
1920

2021
# Ensure only one instance runs at a time per PR/branch
2122
concurrency:

.github/workflows/validate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
branches: [main]
66
merge_group:
77
types: [checks_requested]
8-
branches: [main]
8+
# Note: Don't use branches filter here - merge queue refs like
9+
# gh-readonly-queue/main/pr-N-xxx don't match simple branch globs
910
workflow_dispatch:
1011

1112
# Minimal permissions for this workflow

0 commit comments

Comments
 (0)