ci: add auto-approve workflow
This commit is contained in:
parent
6fb5526d64
commit
5afc8418c5
1 changed files with 18 additions and 0 deletions
18
.github/workflows/auto-approve-own-prs.yml
vendored
Normal file
18
.github/workflows/auto-approve-own-prs.yml
vendored
Normal 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue