-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add auto-approve.yml to review requests by the bot
- Loading branch information
1 parent
9ae9177
commit 956b56c
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, '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 }} |