mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
auto-approve: drop pull_request_review trigger
this doesn't work for PRs from forks, since fork PRs don't have access to repo secrets. we'll need some more advanced mechanism to avoid redundant reviews, but that's a job for another time.
This commit is contained in:
parent
a9787f0d99
commit
8cdc7d7ee1
5
.github/workflows/team-pr-auto-approve.yml
vendored
5
.github/workflows/team-pr-auto-approve.yml
vendored
@ -11,8 +11,7 @@ on:
|
||||
- opened
|
||||
- reopened
|
||||
- ready_for_review
|
||||
pull_request_review:
|
||||
types: dismissed
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
dispatch:
|
||||
@ -36,4 +35,4 @@ jobs:
|
||||
token: ${{ steps.generate-token.outputs.token }}
|
||||
repository: ${{ github.repository_owner }}/RestrictedActions
|
||||
event-type: auto_approve_collaborator_pr
|
||||
client-payload: '{"repo": "${{ github.repository }}", "pull_request_id": "${{ github.event.pull_request.number }}", "reviewer_id": "${{ github.event.review.user.id || 0 }}" }'
|
||||
client-payload: '{"repo": "${{ github.repository }}", "pull_request_id": "${{ github.event.pull_request.number }}", "reviewer_id": "0" }'
|
||||
|
Loading…
x
Reference in New Issue
Block a user