1
0
Fork 0
forked from wry/wry

ci: add auto-approve workflow

This commit is contained in:
Julian Orth 2026-02-16 14:36:10 +01:00
parent 6fb5526d64
commit 5afc8418c5

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 }}