Skip to content

ci: fix React Doctor workflow - #59

Merged
zombieJ merged 1 commit into
masterfrom
fix/react-doctor-workflow-v2.2.8
Jul 31, 2026
Merged

ci: fix React Doctor workflow#59
zombieJ merged 1 commit into
masterfrom
fix/react-doctor-workflow-v2.2.8

Conversation

@yoyo837

@yoyo837 yoyo837 commented Jul 31, 2026

Copy link
Copy Markdown
Member
  • update action pin to v2.2.8

Context

react-component/table#1503

Summary by CodeRabbit

  • 维护
    • 更新 React Doctor 自动检查流程所使用的版本,提升持续集成检查的稳定性。

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

GitHub Actions 工作流将 millionco/react-doctor 更新为新的固定提交版本。

Changes

工作流版本更新

Layer / File(s) Summary
固定 react-doctor 提交版本
.github/workflows/react-doctor.yml
工作流将 millionco/react-doctor 从旧提交版本更新为新的固定提交版本。

Estimated code review effort: 1(简单)| ~2 分钟

Poem

我是小兔,轻敲配置门,
提交版本换新身。
React Doctor 沿流程跑,
固定指针不漂摇。
耳朵一抖,检查完成!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确概括了修复 React Doctor 工作流的主要变更,内容清晰且简洁。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/react-doctor-workflow-v2.2.8

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

❌ Deploy failed

PR preview ❌ Failed ❌ Failed
🔗 Preview https://react-component-context-preview-pr-59.surge.sh (may be unavailable)
📝 Commit740a906
🪵 LogsView logs
📋 Build log (last lines)
npm warn exec The following package was not found and will be installed: surge@0.41.1

   Running as afc163@gmail.com (Student)

   Aborted - No such file or directory: ./docs-dist

🤖 Powered by surge-preview

@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (531e740) to head (740a906).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 531e740 and 740a906.

📒 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 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:


🌐 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:


🌐 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:


🌐 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:


🌐 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:


🌐 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:


为固定的提交版本添加正确的版本注释。

该行固定的是 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 不变。

@zombieJ
zombieJ merged commit a4656d4 into master Jul 31, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants