You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/check_codex_comments.sh
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -55,8 +55,10 @@ RESULT=$(gh api graphql \
55
55
-F repo="$REPO" \
56
56
-F pr="$PR_NUMBER")
57
57
58
-
# Filter regular comments from bot that aren't minimized and don't say "Didn't find any major issues"
59
-
REGULAR_COMMENTS=$(echo "$RESULT"| jq "[.data.repository.pullRequest.comments.nodes[] | select(.author.login == \"${BOT_LOGIN_GRAPHQL}\" and .isMinimized == false and (.body | test(\"Didn't find any major issues\") | not))]")
58
+
# Filter regular comments from bot that aren't minimized, excluding:
59
+
# - "Didn't find any major issues" (no issues found)
60
+
# - "usage limits have been reached" (rate limit error, not a real review)
61
+
REGULAR_COMMENTS=$(echo "$RESULT"| jq "[.data.repository.pullRequest.comments.nodes[] | select(.author.login == \"${BOT_LOGIN_GRAPHQL}\" and .isMinimized == false and (.body | test(\"Didn't find any major issues|usage limits have been reached\") | not))]")
0 commit comments