Skip to content

Commit 7f9a3e1

Browse files
fix(ci): use correct Copilot bot usernames
- Reviews: copilot-pull-request-reviewer[bot] - Comments: Copilot Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
1 parent bd46b58 commit 7f9a3e1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/auto-approve.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ jobs:
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

0 commit comments

Comments
 (0)