chore: standardize repository maintenance#25
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough本次 PR 更新了 CI/CD 与部署配置、ESLint 和 TypeScript 工具链、package 依赖与脚本、 ChangesCI/CD 与部署工作流
工具链与配置升级
文档更新
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant PreviewJob
participant SurgePreviewAction
GitHubActions->>PreviewJob: pull_request 触发
PreviewJob->>PreviewJob: 检查 SURGE_TOKEN
alt 已配置 token
PreviewJob->>PreviewJob: 检出代码并构建
PreviewJob->>SurgePreviewAction: 发布 .docs-dist
SurgePreviewAction-->>PreviewJob: 返回预览结果
else 未配置 token
PreviewJob->>PreviewJob: 跳过预览并输出提示
end
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 focuses on updating the repository's documentation, configuration, and dependencies. Key changes include a complete redesign of the English README.md and the addition of a Chinese translation (README.zh-CN.md), configuring Dependabot updates for npm and GitHub Actions, updating the GitHub Funding configuration, adding a vercel.json deployment configuration, and updating various package scripts and devDependencies in package.json. Feedback on the changes points out a redundant ## API heading immediately following the ## Detailed API heading in README.md which should be removed.
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 #25 +/- ##
=======================================
Coverage 82.41% 82.41%
=======================================
Files 25 25
Lines 654 654
Branches 238 238
=======================================
Hits 539 539
Misses 114 114
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
There was a problem hiding this comment.
Pull request overview
Standardizes repository maintenance and release/docs automation to align with the Ant Design / rc-component ecosystem, including refreshed documentation, modernized linting, and updated CI workflows.
Changes:
- Refreshes README (EN + zh-CN) with updated branding, usage/development/release sections, and consistent badges.
- Migrates ESLint configuration to flat config and updates TS/CI settings for a more standardized toolchain.
- Adds/aligns GitHub workflows (test, Surge preview, React Doctor) and repository maintenance files (funding, dependabot, Vercel).
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| vercel.json | Adds Vercel build settings for the docs output directory. |
| tsconfig.json | Updates TS config (module resolution, includes, path aliases). |
| src/index.ts | Switches to type-only re-export for interfaces. |
| README.zh-CN.md | Adds a new Simplified Chinese README with updated structure/content. |
| README.md | Rewrites README with new layout, badges, and updated guidance. |
| package.json | Updates metadata, scripts, and devDependencies to match standardized maintenance. |
| eslint.config.mjs | Introduces ESLint flat config and updated ignore/ruleset structure. |
| .github/workflows/test.yml | Adds reusable test workflow configuration. |
| .github/workflows/surge-preview.yml | Adds Surge-based preview workflow for PRs. |
| .github/workflows/react-doctor.yml | Adds React Doctor workflow for PRs and master pushes. |
| .github/workflows/ci.yml | Removes legacy CI workflow. |
| .github/FUNDING.yml | Aligns funding configuration with Ant Design org accounts. |
| .github/dependabot.yml | Adds grouped Dependabot updates for npm and GitHub Actions. |
| .eslintrc.js | Removes legacy ESLint config in favor of flat config. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
@rc-component/np; remove legacy duplicated CI or Now configuration where present.Refs ant-design/ant-design#58514
Test
npm run lintnpm run tscnpm run compilenpm testnpm run buildgit diff --checkSummary by CodeRabbit