Skip to content

Commit 788e14d

Browse files
authored
chore(ci): auto-merge dependabot pull requests (#119)
1 parent 763c90d commit 788e14d

File tree

2 files changed

+22
-28
lines changed

2 files changed

+22
-28
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Dependabot Auto-merge
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
auto-merge:
13+
name: Auto-merge
14+
runs-on: ubuntu-latest
15+
if: github.actor == 'dependabot[bot]'
16+
17+
steps:
18+
- name: Enable auto-merge
19+
run: gh pr merge --auto --squash "$PR_URL"
20+
env:
21+
PR_URL: ${{ github.event.pull_request.html_url }}
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.mergify.yml

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

0 commit comments

Comments
 (0)