Skip to content

Commit 826b75f

Browse files
committed
🤖 fix: ignore Codex rate limit errors in CI check
_Generated with `mux`_
1 parent d2132e3 commit 826b75f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/check_codex_comments.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ RESULT=$(gh api graphql \
5555
-F repo="$REPO" \
5656
-F pr="$PR_NUMBER")
5757

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))]")
6062
REGULAR_COUNT=$(echo "$REGULAR_COMMENTS" | jq 'length')
6163

6264
# Filter unresolved review threads from bot

0 commit comments

Comments
 (0)