Skip to content

Commit efd94b5

Browse files
committed
add dependabot automerge
Signed-off-by: André Bauer <andre.bauer@staffbase.com>
1 parent c7a2873 commit efd94b5

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/auto-merge.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- match:
2+
dependency_type: all
3+
update_type: "semver:minor"

.github/dependabot.yml

+9
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ updates:
66
directory: "/"
77
schedule:
88
interval: "weekly"
9+
time: "09:00"
10+
timezone: "Europe/Berlin"
11+
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"
16+
time: "09:00"
17+
timezone: "Europe/Berlin"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Dependabot auto-merge
3+
on: pull_request
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
jobs:
10+
dependabot:
11+
runs-on: ubuntu-latest
12+
if: github.event.pull_request.user.login == 'dependabot[bot]'
13+
steps:
14+
- name: Dependabot metadata
15+
id: metadata
16+
uses: dependabot/fetch-metadata
17+
with:
18+
github-token: "${{ secrets.GITHUB_TOKEN }}"
19+
- name: Enable auto-merge for Dependabot PRs
20+
run: gh pr merge --auto --merge "$PR_URL"
21+
env:
22+
PR_URL: ${{github.event.pull_request.html_url}}
23+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)