review-bot: trigger only on review approvals (#2289)

Moved the review event of review-bot to only be triggered in approvals.

Because we only update the required reviews when someone approves, this
will stop the bot from immediately requesting a new review when someone
comments or request changes as they should have been already notified in
the first batch.
This commit is contained in:
Javier Bullrich authored and GitHub committed 2023-11-13 22:17:36 +02:00
1 parent f332d6881d
commit 8d2637905b
1 file changed
+2 -1
+2 -1
View File
@@ -13,7 +13,8 @@ on:
jobs:
trigger-review-bot:
if: github.event.pull_request.draft != true
# (It is not a draft) && (it is not a review || it is an approving review)
if: ${{ github.event.pull_request.draft != true && (github.event_name != 'pull_request_review' || (github.event.review && github.event.review.state == 'APPROVED')) }}
runs-on: ubuntu-latest
name: trigger review bot
steps: