auto-approve: only re-review if previous review was dismissed

this avoids unnecessary spam when someone clicks "Update branch" on the PR.
This commit is contained in:
Dylan T. 2024-11-23 19:07:24 +00:00 committed by GitHub
parent 7c2ed7d884
commit 0070426e97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,9 +9,10 @@ on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review
pull_request_review:
types: dismissed
jobs:
dispatch:
@ -35,4 +36,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 }}" }'
client-payload: '{"repo": "${{ github.repository }}", "pull_request_id": "${{ github.event.pull_request.number }}", "reviewer_id": "${{ github.event.review.user.id || 0 }}" }'