Skip to content

Commit 5f4ff10

Browse files
committed
FIX: Auto
1 parent 00b3d60 commit 5f4ff10

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/automerge.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Bot auto-merge
2+
on: pull_request_target # yamllint disable-line rule:truthy
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
autobot:
10+
runs-on: ubuntu-latest
11+
if: github.event.pull_request.user.login == 'dependabot[bot]'
12+
steps:
13+
- name: Enable auto-merge for bot PRs
14+
run: gh pr merge --auto --squash "$PR_URL"
15+
env:
16+
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)