Skip to content

Commit

Permalink
set review-bot to trigger only on review approvals
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Bullrich committed Nov 13, 2023
1 parent 5f4ce80 commit a984fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/review-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
trigger-review-bot:
if: github.event.pull_request.draft != true
if: github.event.pull_request.draft != true || (github.event.review && github.event.review.state == 'APPROVED')
runs-on: ubuntu-latest
name: trigger review bot
steps:
Expand Down

0 comments on commit a984fcd

Please sign in to comment.