chore: standardize repository config#180
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 4 minutes and 3 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Walkthrough更新了文档构建输出和预览/部署配置,调整了包脚本与格式化工具,重写 README 并补充资助项,同时替换和新增多个 GitHub Actions 工作流。 Changes文档站点与仓库说明
持续集成与自动化
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
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 #180 +/- ##
=======================================
Coverage 98.34% 98.34%
=======================================
Files 11 11
Lines 423 423
Branches 136 131 -5
=======================================
Hits 416 416
Misses 7 7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Code Review
This pull request updates the documentation, build outputs, and deployment configurations. Key changes include migrating the documentation output directory to docs-dist, adding Vercel configuration, updating the README with modern layout and API details, and removing pretty-quick in favor of updated Prettier scripts. Feedback on these changes suggests removing a duplicate .vercel entry in .gitignore, importing React in the README's ref example for copy-paste usability, and cleaning up the obsolete husky configuration block in package.json.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| .vercel | ||
| .vercel |
| import Input, { | ||
| TextArea, | ||
| type InputRef, | ||
| type TextAreaRef, | ||
| } from '@rc-component/input'; |
There was a problem hiding this comment.
In the Refs example, React.useRef is used but React is not imported. Importing React will make the code snippet fully valid and copy-pasteable.
| import Input, { | |
| TextArea, | |
| type InputRef, | |
| type TextAreaRef, | |
| } from '@rc-component/input'; | |
| import React from 'react'; | |
| import Input, { | |
| TextArea, | |
| type InputRef, | |
| type TextAreaRef, | |
| } from '@rc-component/input'; |
| "prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"", | ||
| "pretty-quick": "pretty-quick", | ||
| "lint-staged": "lint-staged", | ||
| "prettier": "prettier --write --ignore-unknown .", |
There was a problem hiding this comment.
Since pretty-quick has been removed from the dependencies and scripts, the husky configuration block at the bottom of package.json (lines 80-84) is now obsolete and contains a broken reference to pretty-quick. Since this repository is using Husky v9 (which uses the .husky/ directory instead of package.json configuration), you should remove the entire husky block from package.json to clean up dead code.
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-component-ci.yml:
- Around line 7-8: The reusable workflow reference in the CI config is pinned to
the mutable main branch instead of a fixed commit, so update the workflow call
in react-component/rc-test/.github/workflows/test-utoo.yml to use a specific
SHA-based ref rather than `@main`. Keep the existing secrets inheritance, and make
sure the only change is replacing the branch reference with an immutable commit
hash so the workflow version stays stable.
🪄 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
Run ID: 9ab285b4-7301-4a40-816c-912b2f67dc8b
📒 Files selected for processing (11)
.dumirc.ts.github/FUNDING.yml.github/workflows/codeql.yml.github/workflows/main.yml.github/workflows/react-component-ci.yml.github/workflows/react-doctor.yml.github/workflows/surge-preview.yml.gitignoreREADME.mdpackage.jsonvercel.json
💤 Files with no reviewable changes (1)
- .github/workflows/main.yml
| uses: react-component/rc-test/.github/workflows/test-utoo.yml@main | ||
| secrets: inherit |
There was a problem hiding this comment.
🔒 Security & Privacy | 🔴 Critical | ⚡ Quick win
将可复用工作流引用固定到提交哈希。
当前使用 react-component/rc-test/.github/workflows/test-utoo.yml@main 分支引用,未固定到具体提交哈希,与 PR 目标中“固定 action SHA”的要求不一致。这会导致供应链风险:main 分支上的任何变更都会自动影响本仓库的 CI,且无需经过本仓库的代码审查。
请将 @main 替换为具体的提交哈希,例如 @abc1234...。
🧰 Tools
🪛 zizmor (1.26.1)
[error] 7-7: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[warning] 7-7: secrets unconditionally inherited by called workflow (secrets-inherit): this reusable workflow
(secrets-inherit)
🤖 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-component-ci.yml around lines 7 - 8, The reusable
workflow reference in the CI config is pinned to the mutable main branch instead
of a fixed commit, so update the workflow call in
react-component/rc-test/.github/workflows/test-utoo.yml to use a specific
SHA-based ref rather than `@main`. Keep the existing secrets inheritance, and make
sure the only change is replacing the branch reference with an immutable commit
hash so the workflow version stays stable.
|
Deployment failed with the following error: Learn More: https://vercel.com/afc163s-projects?upgradeToPro=build-rate-limit |

Summary
react-component/rc-test/.github/workflows/test-utoo.yml@main.docs-distand ignore local preview artifacts.Test
npm installnpm run prettiernpm run lintnpm run tscnpm test -- --runInBandnpm run compilenpm run buildnpx vercel build --yesRefs ant-design/ant-design#58514
Summary by CodeRabbit
docs-dist,并同步调整部署相关设置。