Skip to content

Commit 40bc280

Browse files
mesh-2816: automate dependabot
1 parent 79d59be commit 40bc280

File tree

3 files changed

+48
-17
lines changed

3 files changed

+48
-17
lines changed

.dependabot/config.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1-
version: 1
2-
update_configs:
1+
version: 2
2+
updates:
33
- package_manager: "javascript"
44
directory: "/"
5-
update_schedule: "live"
6-
automerged_updates:
7-
- match:
8-
dependency_type: "all"
9-
update_type: "security:patch"
5+
schedule:
6+
interval: "daily"
7+
108
- package_manager: "javascript"
119
directory: "/sandbox"
12-
update_schedule: "live"
13-
automerged_updates:
14-
- match:
15-
dependency_type: "all"
16-
update_type: "security:patch"
10+
schedule:
11+
interval: "daily"
12+
1713
- package_manager: "python"
1814
directory: "/"
19-
update_schedule: "live"
20-
automerged_updates:
21-
- match:
22-
dependency_type: "all"
23-
update_type: "security:patch"
15+
schedule:
16+
interval: "daily"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Auto-merge Dependabot PRs
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- ready_for_review
10+
- labeled
11+
12+
jobs:
13+
enable-automerge:
14+
# Only run on Dependabot PRs
15+
if: github.actor == 'dependabot[bot]'
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
21+
steps:
22+
- name: Fetch Dependabot metadata
23+
id: metadata
24+
uses: dependabot/fetch-metadata@ffa630c65fa7e0ecfa0625b5ceda64399aea1b36 #v3.0.0
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Auto-approve Dependabot PR
29+
uses: hmarr/auto-approve-action@8f929096a962e83ccdfa8afcf855f39f12d4dac7 # v4
30+
with:
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Enable auto-merge for Dependabot PRs
34+
run: gh pr merge --auto --squash "$PR_URL"
35+
env:
36+
PR_URL: ${{ github.event.pull_request.html_url }}
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
python 3.8.18
22
nodejs 24.7.0
33
poetry 1.8.5
4+
java temurin-21.0.10+7.0.LTS

0 commit comments

Comments
 (0)