Skip to content

Develop

Develop #59

Workflow file for this run

name: Auto approve
on:
issue_comment:
types:
- created
jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@v6
name: Approve LGTM Review
if: github.actor == 'ucswift' && contains(github.event.comment.body, 'Approve')
with:
script: |
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
review_id: 1,
event: 'APPROVE',
body: 'This PR is approved.'
})