Version up to 4.2.12 #1
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
name: Auto Approve | |
# このGitHub Actionsを起動するイベントの種類 | |
on: | |
# Pull Request関係のイベント | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review # Draft Pull RequestからDraftが外れたら起動 | |
jobs: | |
approve: | |
# このJobを実行する条件。以下の全てを満たす場合 | |
# + Pull Requestの作成者が、リポジトリ所有者と等しい | |
# + Pull Requestが、Draft Pull Requestではない | |
if: | | |
github.event.pull_request.user.login == github.repository_owner | |
&& ! github.event.pull_request.draft | |
# このJobを実行する時に使うOS | |
# 今回は何でもいいが、GitHub Actionsでは指定が必須 | |
runs-on: ubuntu-latest | |
# 内部で使用されるGitHub APIの権限を上書き | |
permissions: | |
pull-requests: write | |
steps: | |
# Pull RequestをApproveする | |
- uses: hmarr/auto-approve-action@v3 |