Skip to content

Commit fb9dc10

Browse files
authored
Merge pull request #7 from haturatu/feat/dependabot-automerge
feat: dependabot automerge
2 parents 04fec5d + fd10910 commit fb9dc10

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)