Skip to content

Commit 25ba6d3

Browse files
committed
configure dependabot automerge
1 parent 682c51f commit 25ba6d3

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,3 @@ updates:
1212
ignore:
1313
- dependency-name: "*"
1414
update-types: ["version-update:semver-major"]
15-
groups:
16-
# Specify a name for the group, which will be used in pull request titles
17-
# and branch names
18-
dev-dependencies:
19-
# Define patterns to include dependencies in the group (based on
20-
# dependency name)
21-
patterns:
22-
- "*"

.github/workflows/maven.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
pull_request:
1515
branches: [ "master" ]
1616

17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
1721
jobs:
1822
build:
1923

@@ -30,3 +34,17 @@ jobs:
3034
- name: Build with Maven
3135
run: mvn -B -V package
3236

37+
- name: Approve Dependabot PRs
38+
if: github.actor == 'dependabot[bot]'
39+
run: gh pr review --approve "$PR_URL"
40+
env:
41+
PR_URL: ${{github.event.pull_request.html_url}}
42+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
43+
44+
- name: Enable auto-merge for Dependabot PRs
45+
if: github.actor == 'dependabot[bot]'
46+
run: gh pr merge --auto --merge "$PR_URL"
47+
env:
48+
PR_URL: ${{github.event.pull_request.html_url}}
49+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
50+

0 commit comments

Comments
 (0)