File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353 # Check Copilot review - must verify Copilot has actually reviewed first
5454 # Copilot leaves "COMMENTED" reviews (never "APPROVED" or "CHANGES_REQUESTED")
5555 # We need to: 1) Confirm a review exists, 2) Check for inline comments
56- COPILOT_REVIEW=$(gh api "repos/${{ github.repository }}/pulls/$PR_NUMBER/reviews" --jq '[.[] | select(.user.login == "copilot[bot]")] | length')
57- COPILOT_COMMENTS=$(gh api "repos/${{ github.repository }}/pulls/$PR_NUMBER/comments" --jq '[.[] | select(.user.login == "copilot[bot]")] | length')
56+ # Note: Copilot uses different usernames for reviews vs comments
57+ COPILOT_REVIEW=$(gh api "repos/${{ github.repository }}/pulls/$PR_NUMBER/reviews" --jq '[.[] | select(.user.login == "copilot-pull-request-reviewer[bot]")] | length')
58+ COPILOT_COMMENTS=$(gh api "repos/${{ github.repository }}/pulls/$PR_NUMBER/comments" --jq '[.[] | select(.user.login == "Copilot")] | length')
5859
5960 COPILOT_OK="false"
6061 if [ "$COPILOT_REVIEW" -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments