1
0
Fork 0
forked from wry/wry

Merge pull request #741 from mahkoh/jorth/auto-approve

ci: add auto-approve workflow
This commit is contained in:
mahkoh 2026-02-16 14:38:24 +01:00 committed by GitHub
commit adc1d9a1b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,18 @@
name: auto-approve
on:
pull_request:
branches: [ master ]
jobs:
auto-approve:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.pull_request.user.login == github.repository_owner
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Auto-approve PR
run: gh pr review ${{ github.event.pull_request.number }} --approve
env:
GITHUB_TOKEN: ${{ github.token }}