Skip to content

ci: fix React Doctor workflow - #155

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

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

Conversation

@yoyo837

@yoyo837 yoyo837 commented Jul 31, 2026

Copy link
Copy Markdown
Member

Summary

  • run React Doctor on pushes to the default branch
  • grant the issue and commit-status permissions required by the current action
  • fetch full Git history so pull request baseline analysis can resolve the base commit
  • update millionco/react-doctor to v2.2.8 and remove the obsolete github-token input

Context

This aligns the workflow with the fix merged in react-component/table#1503.

Dependabot PR #151 contains an older React Doctor update to v2.2.6. This PR uses the current v2.2.8 action pin and includes the required workflow configuration changes.

Verification

  • parsed .github/workflows/react-doctor.yml successfully with Ruby YAML
  • ran git diff --check

Summary by CodeRabbit

  • Chores
    • 更新持续集成流程,支持在 main 分支推送后自动执行检查。
    • 优化代码仓库检出配置,确保自动化检查能够获取完整历史记录并提升运行稳定性。
    • 更新 React Doctor 检查工具版本,增强项目质量检测的可靠性。

@gemini-code-assist

Copy link
Copy Markdown

Caution

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

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
footer Ready Ready Preview Jul 31, 2026 9:25am

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 622f7a64-acbe-40a5-9ba4-439fa918c30b

📥 Commits

Reviewing files that changed from the base of the PR and between b9bd40f and 97b870a.

📒 Files selected for processing (1)
  • .github/workflows/react-doctor.yml

Walkthrough

React Doctor 工作流新增 main 分支 push 触发器。工作流获得 issuesstatuses 写权限。Checkout 使用完整历史且不持久化凭据。React Doctor Action 使用新的固定提交。

Changes

React Doctor 工作流

Layer / File(s) Summary
工作流触发与 Action 配置
.github/workflows/react-doctor.yml
工作流响应 main 分支 push,并获得 issuesstatuses 写权限。Checkout 获取完整历史。React Doctor Action 更新至新的固定提交,并移除显式 github-token 参数。

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

Poem

兔子敲键盘,工作流醒来,
main 分支推送,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 工作流这一主要变更,并与本次 CI 配置更新直接相关。
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.

@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 97.77%. Comparing base (b9bd40f) to head (97b870a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #155   +/-   ##
=======================================
  Coverage   97.77%   97.77%           
=======================================
  Files           2        2           
  Lines          45       45           
  Branches       25       25           
=======================================
  Hits           44       44           
  Partials        1        1           

☔ 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.

@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

❌ Deploy failed

PR preview ❌ Failed ❌ Failed
🔗 Preview https://react-component-footer-preview-pr-155.surge.sh (may be unavailable)
📝 Commit97b870a
🪵 LogsView logs
📋 Build log (last lines)
npm error     @eslint-community/eslint-utils@"^4.9.1" from @typescript-eslint/utils@8.65.0
npm error     node_modules/@typescript-eslint/utils
npm error       @typescript-eslint/utils@"8.65.0" from @typescript-eslint/eslint-plugin@8.65.0
npm error       node_modules/@typescript-eslint/eslint-plugin
npm error         peerOptional @typescript-eslint/eslint-plugin@"^8.0.0" from eslint-plugin-jest@29.16.0
npm error         node_modules/eslint-plugin-jest
npm error         1 more (typescript-eslint)
npm error       3 more (@typescript-eslint/type-utils, eslint-plugin-jest, typescript-eslint)
npm error     @eslint-community/eslint-utils@"^4.8.0" from eslint@10.8.0
npm error   10 more (@eslint/compat, @eslint/js, ...)
npm error
npm error Could not resolve dependency:
npm error peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" from eslint-plugin-react@7.37.5
npm error node_modules/eslint-plugin-react
npm error   dev eslint-plugin-react@"^7.37.5" from the root project
npm error
npm error Conflicting peer dependency: eslint@9.39.5
npm error node_modules/eslint
npm error   peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" from eslint-plugin-react@7.37.5
npm error   node_modules/eslint-plugin-react
npm error     dev eslint-plugin-react@"^7.37.5" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/runner/.npm/_logs/2026-07-31T09_26_35_830Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-07-31T09_26_35_830Z-debug-0.log

🤖 Powered by surge-preview

@zombieJ
zombieJ merged commit 3332e9a into main Jul 31, 2026
13 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