Skip to content

Commit

Permalink
[add] pr-auto-approve
Browse files Browse the repository at this point in the history
  • Loading branch information
ray03j committed Aug 20, 2024
1 parent 2187b58 commit 751f228
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr-auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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

0 comments on commit 751f228

Please sign in to comment.