Commit 377380d
committed
ci: modernize dependabot auto-merge (fix broken event filter)
The previous workflow gated on `workflow_run.event == 'push'`, but
Dependabot PRs trigger CI via `pull_request`, not `push` — so the
condition was always false and the job was silently skipped on every
Dependabot PR. Replaced with the modern pattern:
- Triggers on `pull_request` (the right event).
- Uses `dependabot/fetch-metadata@v2` to classify the update.
- Calls `gh pr merge --auto --squash`, which lets GitHub wait on
branch-protection required status checks before merging.
- Only patch and minor updates auto-merge. Majors stay manual.
Prereqs (also being set on the repo):
- `allow_auto_merge=true` at repo level.
- Branch protection on main with required status checks for the CI
`build` job and each of the Node.js Package driver matrix jobs, so
a Dependabot PR cannot be auto-merged until the full driver suite
and the lint/ts-check/build pipeline are green.1 parent 76cc3d5 commit 377380d
1 file changed
Lines changed: 17 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 11 | | |
| 12 | + | |
19 | 13 | | |
20 | | - | |
21 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
22 | 19 | | |
23 | | - | |
24 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
0 commit comments