Skip to content

Commit aa3e093

Browse files
authored
Create pre-commit-auto-merge.yml
1 parent a5e2c65 commit aa3e093

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Pre-commit auto-merge
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
dependabot:
13+
runs-on: ubuntu-latest
14+
if: ${{ github.head_ref == 'pre-commit-ci-update-config' }}
15+
steps:
16+
- name: Enable auto-merge for Pre-commit PRs
17+
run: gh pr merge --auto --squash "$PR_URL"
18+
env:
19+
PR_URL: ${{github.event.pull_request.html_url}}
20+
GITHUB_TOKEN: ${{secrets.PAT_TOKEN}}

0 commit comments

Comments
 (0)