-
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 (#212)
- Loading branch information
1 parent
fcc8857
commit cf3790f
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 }} |
cf3790f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://courageous-croissant-8a5b98.netlify.app as production
🚀 Deployed on https://65d85c785405aec0fe627afb--courageous-croissant-8a5b98.netlify.app