Skip to content

Commit

Permalink
Update pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mandeepnh5 authored Dec 29, 2024
1 parent d027c8c commit 47b1c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ jobs:
exit 1
fi
approval_count=$(echo "$reviews" | jq '[.[] | select(.state == "APPROVED" and .user.login == "coderabbitai")] | length')
approval_count=$(echo "$reviews" | jq '[.[] | select(.state == "APPROVED" and .user.login == "coderabbitai[bot]")] | length')
if [[ ! "$approval_count" =~ ^[0-9]+$ ]]; then
echo "Error: Failed to parse approval count"
Expand All @@ -497,4 +497,4 @@ jobs:
echo "Success: PR approved by CodeRabbit.ai"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 47b1c9c

Please sign in to comment.