Skip to content

Commit 491f51c

Browse files
committed
chore: use renovate instead of dependabot
Renovate handles mono-repos and automerge out of the box
1 parent 07754c2 commit 491f51c

3 files changed

Lines changed: 9 additions & 36 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/checks.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,3 @@ jobs:
2222
run: pnpm lint
2323
- name: 'Build userscripts'
2424
run: pnpm build
25-
auto-merge:
26-
name: 'dependabot-auto-merge'
27-
needs: linter
28-
if: github.actor == 'dependabot[bot]'
29-
runs-on: ubuntu-latest
30-
steps:
31-
- name: automerge
32-
uses: actions/github-script@v8.0.0
33-
with:
34-
script: |
35-
github.rest.pullRequests.createReview({
36-
owner: context.payload.repository.owner.login,
37-
repo: context.payload.repository.name,
38-
pull_number: context.payload.pull_request.number,
39-
event: 'APPROVE'
40-
})
41-
github.rest.pullRequests.merge({
42-
owner: context.payload.repository.owner.login,
43-
repo: context.payload.repository.name,
44-
pull_number: context.payload.pull_request.number
45-
})
46-
github-token: ${{github.token}}

renovate.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"config:recommended"
4+
"config:recommended",
5+
"npm:unpublishSafe",
6+
"schedule:weekly",
7+
":maintainLockFilesWeekly",
8+
":disableDependencyDashboard",
9+
":automergeMinor",
10+
":automergePr",
11+
":automergeRequireAllStatusChecks",
12+
":label(dependencies)"
513
]
614
}

0 commit comments

Comments
 (0)