Skip to content

Commit

Permalink
Filter out COMMENTED reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
jd authored Nov 7, 2023
1 parent 5ef0e90 commit 9dc4511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ runs:
if: "${{ steps.extract.outputs.creators }}"
run: |
set -x
for creator in ${{steps.extract.outputs.creators}}; do
gh pr view ${{github.event.pull_request.html_url}} --json latestReviews |jq -e '.latestReviews[] | select(.author.login == "'${creator}'" and .state != "DISMISSED")' \
for creator in ${{steps.extract.outputs.creators}}; do
gh pr view ${{github.event.pull_request.html_url}} --json latestReviews |jq -e '.latestReviews[] | select(.author.login == "'${creator}'" and .state != "DISMISSED" and .state != "COMMENTED")' \
&& \
echo "Review of ${creator} has already been requested" \
|| \
Expand Down

0 comments on commit 9dc4511

Please sign in to comment.