Skip to content

Commit

Permalink
Add auto-approve.yml to review requests by the bot (#109)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
tkoyama010 and pre-commit-ci[bot] authored Jan 24, 2024
1 parent aa927e0 commit 8e033e1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Approve PRs
on:
workflow_dispatch:
issue_comment:
types: [created]

jobs:
autoapprove:
# This job only runs for pull request comments by approved users on creation
name: PR comment
if: github.event.issue.pull_request &&
contains(github.event.comment.body, 'github-actions LGTM') && (
github.event.comment.user.login == 'tkoyama010' ||
)
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: hmarr/auto-approve-action@v3
with:
review-message: ":white_check_mark: Approving this PR because [${{ github.event.comment.user.login }}](https://github.com/${{ github.event.comment.user.login }}) said so in [here](${{ github.event.comment.html_url }}) :shipit:"
pull-request-number: ${{ github.event.issue.number }}
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8e033e1

Please sign in to comment.