Skip to content

Commit 0c538eb

Browse files
chore: enable grouping of minor and patch updates. (#580)
Enable grouping of minor and patch updates. Enable automerge. Signed-off-by: Fredrik Skogman <[email protected]>
1 parent 3dd2cca commit 0c538eb

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/dependabot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ updates:
66
schedule:
77
interval: "weekly"
88
time: "10:00"
9+
groups:
10+
minor-patch:
11+
update-types:
12+
- "minor"
13+
- "patch"
914
commit-message:
1015
prefix: "chore"
1116
include: "scope"
@@ -16,6 +21,11 @@ updates:
1621
schedule:
1722
interval: "weekly"
1823
time: "10:00"
24+
groups:
25+
minor-patch:
26+
update-types:
27+
- "minor"
28+
- "patch"
1929
commit-message:
2030
prefix: "chore"
2131
include: "scope"
@@ -26,6 +36,11 @@ updates:
2636
schedule:
2737
interval: "weekly"
2838
time: "10:00"
39+
groups:
40+
minor-patch:
41+
update-types:
42+
- "minor"
43+
- "patch"
2944
commit-message:
3045
prefix: "chore"
3146
include: "scope"

.github/workflows/auto-merge.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Dependabot auto-merge
2+
3+
on:
4+
pull_request:
5+
6+
permissions: read-all
7+
8+
jobs:
9+
dependabot:
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
15+
steps:
16+
- name: Dependabot metadata
17+
id: metadata
18+
uses: dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 # v1.6.0
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
- name: Enable auto-merge for Dependabot PRs
22+
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
23+
run: gh pr merge --auto --squash "$PR_URL"
24+
env:
25+
PR_URL: ${{ github.event.pull_request.html_url }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)