Skip to content

Commit

Permalink
Add automatic approval action (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Feb 17, 2024
1 parent 4f05915 commit f02bccb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/autoapprove.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# yamllint disable rule:line-length
# yamllint disable rule:braces
name: PR Approval

on:
pull_request:

jobs:
approve_pr:
name: Automatic Approval
runs-on: ubuntu-latest
if: github.actor == github.repository_owner

steps:
- name: Approve PR
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr review ${{ github.event.pull_request.html_url }} --approve

0 comments on commit f02bccb

Please sign in to comment.