Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDEnYO committed Sep 5, 2024
1 parent e29684b commit abd9ea4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/verifyAudit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,14 @@ jobs:
fi
#### ------------------------------------------------------
# Fetch PR reviews using the GitHub API via gh cli
REVIEWS=$(gh api repos/lifinance/contracts/pulls/$PR_NUMBER/reviews --jq ".[] | {author: \"$AUDITOR_GIT_HANDLE\", state: .state}")
echo "now checking if auditor ($AUDITOR_GIT_HANDLE) approved this PR ($PR_NUMBER)"
REVIEWS=$(gh api repos/lifinance/contracts/pulls/$PR_NUMBER/reviews --jq '.[] | @json')
# Check if the output is empty or not valid JSON
if [[ -z "$REVIEWS" ]]; then
echo "ERROR: No reviews found or failed to fetch reviews for PR #$PR_NUMBER"
exit 1
fi
# Flag to track if the review by the specified person is found
FOUND_REVIEW=false
Expand Down

0 comments on commit abd9ea4

Please sign in to comment.