Skip to content

Commit 6ea530b

Browse files
committed
Add workflow to automerge pull requests by dependabot
1 parent a4bc5cd commit 6ea530b

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Merge pull request created by Dependabot
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
mergePullRequestByDependabot:
10+
if: github.actor == 'dependabot'
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
steps:
16+
- name: Comment to merge Dependabot PR
17+
uses: actions/github-script@v8
18+
with:
19+
script: |
20+
github.rest.issues.createComment({
21+
issue_number: context.issue.number,
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
body: @dependabot merge
25+
})

0 commit comments

Comments
 (0)