chore: standardize repository config#708
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 26 minutes and 34 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 (3)
Walkthrough对项目工具链进行全面更新:将文档站构建产物目录统一为 Changes构建工具链与 CI/CD 更新
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 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 |
✅ Preview is ready!
↩️ Previous: ⚡️ 🤖 Powered by surge-preview |
|||||||||||||||
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
There was a problem hiding this comment.
Code Review
This pull request updates the repository configuration, documentation, and build scripts to support modern Dumi-based documentation deployment. Key changes include updating .dumirc.ts, .gitignore, tsconfig.json, and package.json scripts, as well as rewriting the README.md and removing redundant React imports from examples. Feedback on these changes highlights two issues: first, the gh-pages script in package.json fails to propagate the GH_PAGES=1 environment variable to subsequent commands, which can be resolved by using a combined build script; second, the wildcard alias added in .dumirc.ts is invalid and redundant as Webpack/Rspack alias resolution does not support wildcards.
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #708 +/- ##
=======================================
Coverage 89.58% 89.58%
=======================================
Files 6 6
Lines 317 317
Branches 90 94 +4
=======================================
Hits 284 284
Misses 33 33 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Deployment failed with the following error: Learn More: https://vercel.com/afc163s-projects?upgradeToPro=build-rate-limit |
|
Deployment failed with the following error: Learn More: https://vercel.com/react-component?upgradeToPro=build-rate-limit |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 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 10-12: The workflow job in react-component-ci currently references
react-component/rc-test test-utoo.yml with `@main` and uses secrets: inherit, so
update the uses target to a fixed commit SHA and replace inherited secrets with
an explicit secrets mapping containing only the required values. Keep the change
focused on the test job configuration in
.github/workflows/react-component-ci.yml.
In @.github/workflows/surge-preview.yml:
- Around line 25-42: In the surge preview workflow, the step-level conditionals
are reading secrets directly, which should be avoided; move SURGE_TOKEN into a
job-level env in the workflow and update the Build preview,
afc163/surge-preview, and Skip Surge preview steps to branch on env.SURGE_TOKEN
instead of secrets. Keep the existing behavior the same while using the job env
consistently across these steps.
In `@README.md`:
- Around line 99-104: The documented `abort` signature is out of sync with the
actual `Upload` API in `Upload.tsx`: README marks `abort(file?: RcFile)` as
optional, but the `Upload` ref method currently requires a `RcFile`. Update the
`Upload` component’s `abort` method signature (and any related `UploadRef` type)
to accept an optional `file`, matching `AjaxUploader.abort`, or else change the
README to match the real TypeScript contract; keep the symbols `Upload`,
`UploadRef`, and `abort` aligned.
🪄 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: 360642e1-fc2c-40f0-bd9e-bf413861dcf0
📒 Files selected for processing (21)
.dumirc.ts.github/FUNDING.yml.github/dependabot.yml.github/workflows/codeql.yml.github/workflows/react-component-ci.yml.github/workflows/react-doctor.yml.github/workflows/surge-preview.yml.gitignoreREADME.mdREADME.zh-CN.mddocs/examples/asyncAction.tsxdocs/examples/customRequest.tsxdocs/examples/directoryUpload.tsxdocs/examples/drag.tsxdocs/examples/dragDirectory.tsxdocs/examples/paste.tsxdocs/examples/pasteDirectory.tsxdocs/index.mdpackage.jsontsconfig.jsonvercel.json
💤 Files with no reviewable changes (6)
- docs/examples/directoryUpload.tsx
- docs/examples/paste.tsx
- docs/examples/dragDirectory.tsx
- docs/examples/pasteDirectory.tsx
- docs/examples/drag.tsx
- docs/examples/asyncAction.tsx

Summary
Test plan
npm run tscnpm test -- --runInBandnpm run lintnpm run buildnpx vercel build --yesRefs ant-design/ant-design#58514
Summary by CodeRabbit