Skip to content

Commit 2322cf1

Browse files
committed
ci: Enable auto-merge for pre-commit.ci autoupdate PRs
1 parent be05626 commit 2322cf1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/auto-approve.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@ jobs:
66
auto-approve:
77
runs-on: ubuntu-latest
88
permissions:
9+
contents: write
910
pull-requests: write
1011
if: (github.actor == 'renovate[bot]' && startsWith(github.head_ref, 'renovate/automerge/'))
1112
|| (github.actor == 'pre-commit-ci[bot]' && startsWith(github.head_ref, 'pre-commit-ci-update-config'))
1213
steps:
1314
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
15+
- name: Enable auto-merge for pre-commit.ci autoupdate PRs
16+
if: github.actor == 'pre-commit-ci[bot]' && startsWith(github.head_ref, 'pre-commit-ci-update-config')
17+
env:
18+
PR_URL: ${{github.event.pull_request.html_url}}
19+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
20+
run: gh pr merge --auto --merge "$PR_URL"

0 commit comments

Comments
 (0)