Skip to content

Commit b7bcecf

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

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-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

src/browser/stories/App.sidebar.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
installMockAPI,
1717
type GitStatusFixture,
1818
} from "./mockFactory";
19+
import { expandProjects } from "./storyHelpers";
1920

2021
export default {
2122
...appMeta,
@@ -290,6 +291,9 @@ export const RuntimeBadgeVariations: AppStory = {
290291
chatHandlers,
291292
})
292293
);
294+
295+
// Expand the project so badges are visible
296+
expandProjects(["/home/user/projects/runtime-demo"]);
293297
}}
294298
/>
295299
),

src/browser/stories/storyHelpers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ export function setWorkspaceModel(workspaceId: string, model: string): void {
4545
localStorage.setItem(`model:${workspaceId}`, model);
4646
}
4747

48+
/** Expand projects in the sidebar */
49+
export function expandProjects(projectPaths: string[]): void {
50+
localStorage.setItem("expandedProjects", JSON.stringify(projectPaths));
51+
}
52+
4853
// ═══════════════════════════════════════════════════════════════════════════════
4954
// SIMPLE CHAT STORY SETUP
5055
// ═══════════════════════════════════════════════════════════════════════════════

0 commit comments

Comments
 (0)