Skip to content

Commit

Permalink
removed dismiss-step
Browse files Browse the repository at this point in the history
It should not be a separated step
  • Loading branch information
Bullrich committed Apr 16, 2024
1 parent 7ae3aa3 commit c2dfb3d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/review-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@ on:
pull_request_review:

jobs:
dismiss-reviews:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request_target' && github.event.action == 'synchronize' }}
steps:
- name: Dismiss Approvals
env:
GH_TOKEN: ${{ github.token }}
run: |
gh api repos/${{ github.repository }}/pulls/${{ github.event.number }}/reviews \
--jq '.[] | select(.state == "APPROVED") | .id' \
| xargs -I '{}' gh api --method=PUT -f message="Dismissed due to PR edit." \
repos/${{ github.repository }}/pulls/${{ github.event.number }}/reviews/'{}'/dismissals
trigger-review-bot:
runs-on: ubuntu-latest
name: trigger review bot
Expand Down

0 comments on commit c2dfb3d

Please sign in to comment.