Skip to content

Commit dec0133

Browse files
benhighamKael (OpenClaw)KaelKael
authored
ci: add Dependabot grouping and auto-merge for patch/minor (#59)
Co-authored-by: Kael (OpenClaw) <kael@openclaw> Co-authored-by: Kael <kael@openclaw.ai> Co-authored-by: Kael <kael@openclaw.dev>
1 parent 50506a8 commit dec0133

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

.github/dependabot.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
version: 2
22
updates:
3-
# Keep npm dependencies up to date
43
- package-ecosystem: 'npm'
54
directory: '/'
65
schedule:
@@ -10,8 +9,18 @@ updates:
109
commit-message:
1110
prefix: 'build'
1211
include: 'scope'
12+
groups:
13+
npm-minor:
14+
patterns:
15+
- '*'
16+
update-types:
17+
- 'minor'
18+
npm-patch:
19+
patterns:
20+
- '*'
21+
update-types:
22+
- 'patch'
1323

14-
# Keep GitHub Actions up to date
1524
- package-ecosystem: 'github-actions'
1625
directory: '/'
1726
schedule:
@@ -21,3 +30,14 @@ updates:
2130
commit-message:
2231
prefix: 'ci'
2332
include: 'scope'
33+
groups:
34+
github-actions-minor:
35+
patterns:
36+
- '*'
37+
update-types:
38+
- 'minor'
39+
github-actions-patch:
40+
patterns:
41+
- '*'
42+
update-types:
43+
- 'patch'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Auto-merge Dependabot PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
# Requires "Allow auto-merge" enabled in repository settings.
8+
permissions: {}
9+
10+
# Concurrency is handled by the reusable workflow.
11+
jobs:
12+
auto-merge:
13+
# Expected actor for Dependabot PRs. If auto-merges stop firing, verify
14+
# this value hasn't changed: https://docs.github.com/en/code-security/dependabot
15+
if: github.actor == 'dependabot[bot]'
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
# Reusable workflow from benhigham/.github (pinned to SHA below).
20+
# For the source of the pinned version, check the repo at the matching commit.
21+
# Latest version: https://github.com/benhigham/.github/blob/main/.github/workflows/auto-merge-dependabot.yml
22+
uses: benhigham/.github/.github/workflows/auto-merge-dependabot.yml@0ec9301fc776a5b328077294c3e98ba35cf5baef

0 commit comments

Comments
 (0)