Skip to content

LGTM workflow test pull request #3

LGTM workflow test pull request

LGTM workflow test pull request #3

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@v7
name: LGTM Auto Approve
if: github.actor_id == github.repository_owner_id && contains(github.event.comment.body, 'LGTM')
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: '![lgtm](https://github.com/niklasstoffers/HainzDiscord/blob/main/lgtm.gif?raw=true)'
})