Skip to content

Commit 8d26379

Browse files
authored
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.
1 parent f332d68 commit 8d26379

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/review-trigger.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313

1414
jobs:
1515
trigger-review-bot:
16-
if: github.event.pull_request.draft != true
16+
# (It is not a draft) && (it is not a review || it is an approving review)
17+
if: ${{ github.event.pull_request.draft != true && (github.event_name != 'pull_request_review' || (github.event.review && github.event.review.state == 'APPROVED')) }}
1718
runs-on: ubuntu-latest
1819
name: trigger review bot
1920
steps:

0 commit comments

Comments
 (0)