ci: fix React Doctor workflow - #59
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
WalkthroughGitHub Actions 工作流将 Changes工作流版本更新
Estimated code review effort: 1(简单)| ~2 分钟 Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
❌ Deploy failed
📋 Build log (last lines)🤖 Powered by surge-preview |
|||||||||
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #59 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 92 92
Branches 26 26
=========================================
Hits 92 92 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/react-doctor.yml:
- Line 22: 为 workflow 中的 millionco/react-doctor uses 引用补充与提交 SHA
01820bb4fd4d0a4aebcd8df2b2a143a098649cb2 对应的真实版本注释,替换任何错误的 v2.2.8 注释;保留现有提交 SHA
不变。
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 2bf64249-35b6-4e3f-858c-03f73d3e1d7a
📒 Files selected for processing (1)
.github/workflows/react-doctor.yml
| fetch-depth: 0 | ||
| persist-credentials: false | ||
| - uses: millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3 | ||
| - uses: millionco/react-doctor@01820bb4fd4d0a4aebcd8df2b2a143a098649cb2 |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Verify the tag v2.2.8 in millionco/react-doctor points to the pinned commit SHA.
[skip_cloning]Repository: react-component/context
Length of output: 213
🌐 Web query:
Does the millionco/react-doctor commit 01820bb4fd4d0a4aebcd8df2b2a143a098649cb2 correspond to tag v2.2.8?
💡 Result:
The commit hash 01820bb4fd4d0a4aebcd8df2b2a143a098649cb2 does not exist in the millionco/react-doctor repository. Searches across the repository's commit history and related technical documentation confirm this hash is not associated with any tags, including v2.2.8. In the millionco/react-doctor repository, releases and tags such as v2.2.8 are typically associated with specific merge commits on the main branch. Documentation and pull request discussions indicate that v2.2.8 was released around July 16, 2026 [1][2], and v2.2.9 followed shortly after [3][4][5]. No record of the specified commit hash was found in relation to these or any other releases.
Citations:
- 1: fix(action): improve ensure-json-report error messages millionco/react-doctor#1332
- 2: fix(action): improve ensure-json-report error messages millionco/react-doctor#1332
- 3: security: harden skill supply-chain with version ranges and trust model millionco/react-doctor#1441
- 4: fix(action): exclude base-branch drift from PR changed-file detection millionco/react-doctor#1447
- 5: security: harden skill supply-chain with version ranges and trust model millionco/react-doctor#1441
🌐 Web query:
github millionco react-doctor 01820bb4fd4d0a4aebcd8df2b2a143a098649cb2
💡 Result:
React Doctor (github.com/millionco/react-doctor) is a CLI tool designed to diagnose and improve the quality of React codebases [1][2]. It scans projects for issues related to state and effects, performance, architecture, security, and accessibility, providing a 0–100 health score alongside actionable diagnostics [1][3]. The tool is framework-agnostic, supporting Next.js, Vite, Remix, TanStack, React Native, Expo, and others [1][2]. It can be executed via npx without installation [2][3], integrated into CI/CD pipelines (e.g., GitHub Actions) to monitor pull requests for new issues [3][4], and used as a skill for coding agents like Cursor or Claude Code to help automatically fix identified problems [2][3]. Regarding the specific identifier provided (01820bb4fd4d0a4aebcd8df2b2a143a098649cb2), this is a truncated or specific Git commit hash associated with the millionco/react-doctor repository [1][5]. As of July 31, 2026, the project remains active, with its latest release being version 0.7.7 as of July 13, 2026 [1].
Citations:
- 1: https://github.com/millionco/react-doctor
- 2: https://millionco-react-doctor-36.mintlify.app/introduction
- 3: https://github.com/millionco/react-doctor?cmid=3eeb9e72-8e9f-4665-9b7f-7bf93f9045b9
- 4: https://www.react.doctor/docs/ci-and-prs/github-actions-setup
- 5: https://github.com/millionco/react-doctor/tree/7716d6cf1ba0eab0171ba244feeff05cf950fa1c
🌐 Web query:
millionco react-doctor repository 7716d6cf1ba0eab0171ba244feeff05cf950fa1c
💡 Result:
The repository identified is millionco/react-doctor, an open-source CLI tool designed to scan React codebases for issues related to performance, security, architecture, and correctness [1][2][3]. The specific commit hash 7716d6cf1ba0eab0171ba244feeff05cf950fa1c corresponds to a feature update titled "feat: integrate skill installation prompt into CLI workflow," authored by aidenybai on February 19, 2026 [4]. React Doctor functions as a diagnostic tool that provides a health score (0-100) for projects and is designed to work as a "skill" for coding agents (such as Cursor, Claude Code, and Windsurf) to help them identify and fix React code issues [1][5][3][6]. It supports various frameworks including Next.js, Vite, and Expo, and can be integrated into CI/CD pipelines to scan pull requests [1][2][3][7].
Citations:
- 1: https://github.com/millionco/react-doctor
- 2: https://github.com/millionco/react-doctor?cmid=3eeb9e72-8e9f-4665-9b7f-7bf93f9045b9
- 3: https://millionco-react-doctor-36.mintlify.app/introduction
- 4: millionco/react-doctor@7716d6c
- 5: https://www.react.doctor/
- 6: https://github.com/millionco/react-doctor/blob/4dc48d7b/packages/react-doctor/README.md
- 7: https://mintlify.com/explore/millionco/react-doctor
🌐 Web query:
millionco/react-doctor v2.2.8
💡 Result:
There is no version 2.2.8 for the millionco/react-doctor package. As of July 31, 2026, the latest version of react-doctor is 0.8.1 [1]. React Doctor is a deterministic analysis tool designed to scan React codebases for security, performance, architecture, and accessibility issues [2][1][3]. It is commonly used via npx with the command npx react-doctor@latest [2][4][1]. The project also supports CI/CD integration [2][1], coding agent skill installation (e.g., for Cursor, Claude Code) [2][1], and GitHub Actions [2][5]. The GitHub Action for React Doctor uses a separate versioning scheme (e.g., millionco/react-doctor@v2) for the action itself [5], which may be the source of confusion regarding the "v2" identifier.
Citations:
- 1: https://www.npmjs.com/package/react-doctor
- 2: https://github.com/millionco/react-doctor
- 3: https://www.react.doctor/
- 4: https://millionco-react-doctor-36.mintlify.app/usage/cli-commands
- 5: https://www.react.doctor/docs/reference/github-action-reference
🌐 Web query:
github millionco react-doctor 45433b8979761906295078d72ce53e1bc6aa0d
💡 Result:
React Doctor (millionco/react-doctor) is an open-source command-line interface (CLI) tool designed to scan React codebases for issues related to performance, state management, security, architecture, and accessibility [1][2]. It provides a 0-100 health score for projects and offers actionable diagnostics to help improve code quality [2][3]. The tool is designed to work with various React frameworks and libraries, including Next.js, Vite, TanStack, React Native, and Expo [1][4]. It can be run locally using npx react-doctor@latest or integrated into CI/CD pipelines to review pull requests and post summary comments [1][4]. Additionally, it supports integration with coding agents (such as Cursor, Claude Code, and Windsurf) by installing a specialized skill that allows these agents to learn from and automatically fix identified issues [4][3]. The repository is maintained by Million Software, Inc. [2], and has gained significant popularity, with over 13,000 stars on GitHub [1][4]. The specific string 45433b8979761906295078d72ce53e1bc6aa0d appears to be a truncated or specific commit hash associated with the project's development history on GitHub. React Doctor is licensed under a modified MIT license, which requires a written license from Million Software for large-scale commercial use or AI training [2].
Citations:
- 1: https://github.com/millionco/react-doctor
- 2: https://www.react.doctor/
- 3: https://millionco-react-doctor-36.mintlify.app/introduction
- 4: https://github.com/millionco/react-doctor?cmid=3eeb9e72-8e9f-4665-9b7f-7bf93f9045b9
🌐 Web query:
millionco react-doctor 01820bb4fd4d0a4aebcd8df2b2a143a098649cb2
💡 Result:
The string 01820bb4fd4d0a4aebcd8df2b2a143a098649cb2 corresponds to a git commit hash in the repository millionco/react-doctor [1][2]. React Doctor is a CLI-based tool designed to analyze React codebases for security, performance, architecture, and correctness issues [1][3][4]. It provides a 0-100 health score for projects and can be integrated into development workflows, such as CI/CD pipelines (e.g., GitHub Actions) or used as a skill for AI coding agents like Cursor and Claude Code [1][5][2]. Key features include: - Automated framework detection (Next.js, Vite, Remix, React Native, etc.) [3][4][2]. - CI/CD support for scanning pull requests and reporting findings [5][2]. - Support for auto-fixing issues via AI agents [3][6]. - Deterministic scanning across state, effects, bundle size, and accessibility [1][2]. The project is hosted on GitHub at https://github.com/millionco/react-doctor [1][2]. Documentation is available at https://react.doctor [1][2].
Citations:
- 1: https://github.com/millionco/react-doctor
- 2: https://github.com/millionco/react-doctor?cmid=3eeb9e72-8e9f-4665-9b7f-7bf93f9045b9
- 3: https://millionco-react-doctor-36.mintlify.app/introduction
- 4: https://mintlify.com/explore/millionco/react-doctor
- 5: https://www.react.doctor/docs/ci-and-prs/github-actions-setup
- 6: https://millionco-react-doctor-36.mintlify.app/usage/cli-commands
为固定的提交版本添加正确的版本注释。
该行固定的是 millionco/react-doctor 的提交 SHA 01820bb4fd4d0a4aebcd8df2b2a143a098649cb2,不是 v2.2.8。需要补充该提交对应的真实版本注释,否则后续维护者难以定位此固定版本。
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/react-doctor.yml at line 22, 为 workflow 中的
millionco/react-doctor uses 引用补充与提交 SHA 01820bb4fd4d0a4aebcd8df2b2a143a098649cb2
对应的真实版本注释,替换任何错误的 v2.2.8 注释;保留现有提交 SHA 不变。

Context
react-component/table#1503
Summary by CodeRabbit