Skip to content

Commit d04079b

Browse files
authored
chore(dependabot): update schedule to daily and set open pull requests limit (#333)
1 parent 190daf7 commit d04079b

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

.github/dependabot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ version: 2
22
updates:
33
- package-ecosystem: "maven"
44
directory: "/"
5+
open-pull-requests-limit: 10
56
schedule:
6-
interval: "weekly"
7+
interval: "daily"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Auto-merge Dependabot PRs
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened, synchronize, ready_for_review, labeled]
6+
7+
jobs:
8+
automerge:
9+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
checks: read
15+
steps:
16+
- name: Fetch Dependabot metadata
17+
id: metadata
18+
uses: dependabot/fetch-metadata@v2
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Approve PR
23+
env:
24+
PR_URL: ${{ github.event.pull_request.html_url }}
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: gh pr review --approve "$PR_URL"
27+
28+
- name: Enable auto-merge
29+
env:
30+
PR_URL: ${{ github.event.pull_request.html_url }}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
run: gh pr merge --auto --squash "$PR_URL"

0 commit comments

Comments
 (0)