chore: standardize repository config#708
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough更新了文档站构建与部署配置,新增和调整了 GitHub Actions 工作流,重写了英文与中文 README,并清理了示例文件中的 React 默认导入与部分 lint 配置。 Changes构建工具链、CI/CD 与文档更新
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
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 |
✅ 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
Standardize this rc-component repository as part of the Ant Design rc-component maintenance sweep.
Tracking issue: ant-design/ant-design#58514
Scope
types: "./es/index.d.ts", publishConfig, and release flow through@rc-component/np.react-component/rc-test/.github/workflows/test-utoo.yml@mainworkflow, React Doctor, Codecov, CodeQL, updated GitHub Actions versions, and guarded Surge preview fallback.docs-distoutput and remove legacynow-build/ Cloudflare Pages residue.Notes
secrets: inheritis kept untilreact-component/rc-test#176is merged, then it can be narrowed to explicitCODECOV_TOKENforwarding.