chore: standardize repository config#627
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Preview is ready!
↩️ Previous: ⚡️ 🤖 Powered by surge-preview |
|||||||||||||||
|
Warning Review limit reached
More reviews will be available in 23 minutes and 27 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 (10)
Walkthrough更新了站点路径前缀与别名、构建发布配置、README 文档,以及 GitHub Actions、Dependabot 和资助配置;同时将项目命名统一为 Changes仓库现代化
Sequence Diagram(s)Surge Preview 发布流sequenceDiagram
participant PullRequest as pull_request
participant GitHubActions as GitHub Actions
participant Checkout as actions/checkout
participant SurgePreview as afc163/surge-preview
PullRequest->>GitHubActions: trigger pull_request to master
GitHubActions->>Checkout: checkout code
GitHubActions->>SurgePreview: run npm run build for docs-dist
SurgePreview->>GitHubActions: publish preview output
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 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 |
There was a problem hiding this comment.
Code Review
This pull request updates the repository configuration, documentation, and build scripts to align with the @rc-component scope and improve the GitHub Pages and Vercel deployment workflows. Key changes include a redesigned README, updated dumi and TypeScript configurations, and restructured package scripts. Feedback highlights a few issues: wildcard aliases in .dumirc.ts are unsupported and should be removed, ignoring the entire .dumi directory in .gitignore incorrectly excludes source configurations, and the gh-pages script in package.json fails to propagate the GH_PAGES=1 environment variable to the documentation build step.
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 #627 +/- ##
=======================================
Coverage 97.28% 97.28%
=======================================
Files 17 17
Lines 956 956
Branches 268 278 +10
=======================================
Hits 930 930
Misses 26 26 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
README.md (1)
90-100: 📐 Maintainability & Code Quality | 🔵 Trivial更新 Development 步骤以反映实际可用脚本
README 中的开发命令列表部分包含无效或非推荐流程。
package.json已确认包含start、test、tsc、compile、build脚本,但开发工作流中通常不需要显式运行npm run tsc和npm run compile。建议简化文档:
- 开发阶段:
npm start- 构建产物:
npm run build- 测试:
npm test- 类型检查与编译已在构建流程中自动执行或作为独立可选步骤
请移除冗余命令或将其标注为可选步骤,避免开发者误解标准工作流。
🤖 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 `@README.md` around lines 90 - 100, Update the README Development section to match the actual recommended workflow: keep the core scripts that developers should run regularly (`npm start`, `npm test`, and `npm run build`) and remove or clearly mark `npm run tsc` and `npm run compile` as optional/internal steps rather than standard development commands. Use the existing Development heading and script list in README.md as the target location, and ensure the documented flow reflects what package.json supports without suggesting redundant commands.
🤖 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 14-15: The reusable workflow call in the GitHub Actions config is
using a mutable `@main` ref and inheriting all secrets, so tighten it up in the
workflow job that references
react-component/rc-test/.github/workflows/test-utoo.yml. Pin the uses target to
the provided commit SHA instead of main, and replace secrets: inherit with an
explicit secrets mapping that passes only CODECOV_TOKEN. If needed, also update
the called workflow’s workflow_call declaration to require only that secret.
In `@README.md`:
- Around line 62-89: The README API table is out of sync with TriggerProps in
src/index.tsx: rename the documented `destroyPopupOnHide` entry to
`autoDestroy`, add the deprecated `onPopupVisibleChange` replacement
`onOpenChange` plus `afterOpenChange`, and include the missing props such as
`prefixCls`, `showAction`, `hideAction`, `popupMotion`, `maskMotion`,
`mouseEnterDelay`, `mouseLeaveDelay`, `focusDelay`, and `blurDelay`. Update the
descriptions/types/defaults to match the `TriggerProps` interface exactly so the
API docs reflect the current component surface.
---
Nitpick comments:
In `@README.md`:
- Around line 90-100: Update the README Development section to match the actual
recommended workflow: keep the core scripts that developers should run regularly
(`npm start`, `npm test`, and `npm run build`) and remove or clearly mark `npm
run tsc` and `npm run compile` as optional/internal steps rather than standard
development commands. Use the existing Development heading and script list in
README.md as the target location, and ensure the documented flow reflects what
package.json supports without suggesting redundant commands.
🪄 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: 2baf11e0-4ead-4379-8e2f-3dec2a138683
📒 Files selected for processing (15)
.dumirc.ts.github/FUNDING.yml.github/dependabot.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.mddocs/index.mdnow.jsonpackage.jsontsconfig.jsonvercel.json
💤 Files with no reviewable changes (2)
- .github/workflows/main.yml
- now.json
|
Deployment failed with the following error: Learn More: https://vercel.com/afc163s-projects?upgradeToPro=build-rate-limit |
|
React Doctor found no issues. 🎉 Reviewed by React Doctor for commit |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|

Summary
Test plan
npm run tscnpm test -- --runInBandnpm run lintnpm run buildnpx vercel build --yesRefs ant-design/ant-design#58514
Summary by CodeRabbit
新功能
改进
杂项