Skip to content

chore: standardize repository tooling - #616

Merged
afc163 merged 32 commits into
masterfrom
codex/standardize-rc-config
Jun 29, 2026
Merged

chore: standardize repository tooling#616
afc163 merged 32 commits into
masterfrom
codex/standardize-rc-config

Conversation

@afc163

@afc163 afc163 commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

Standardize this rc-component repository as part of the Ant Design rc-component maintenance sweep.

Tracking issue: ant-design/ant-design#58514

Scope

  • Redesign README.md and README.zh-CN.md with centered title, Ant Design ecosystem branding, aligned badges, scoped Bundlephobia badge, install command, Usage, Development, Release, and License sections.
  • Standardize package metadata, GitHub repo metadata, npm package name, package entry fields, types: "./es/index.d.ts", publishConfig, and release flow through @rc-component/np.
  • Align shared dependencies and scripts for React, testing-library, Jest/Vitest where existing, TypeScript, ESLint, Prettier, Less, dumi, father, Husky, lint-staged, and Dependabot.
  • Use the shared react-component/rc-test/.github/workflows/test-utoo.yml@main workflow, React Doctor, Codecov, CodeQL, updated GitHub Actions versions, and guarded Surge preview fallback.
  • Keep Vercel preview configuration compatible with docs-dist output and remove legacy now-build / Cloudflare Pages residue.
  • Keep API docs, demos, tests, TypeScript checks, funding metadata, and npm package files aligned with the repository standardization matrix.

Notes

  • No breaking runtime behavior is intended.
  • React peer dependency ranges are preserved when narrowing them would be a breaking change.
  • secrets: inherit is kept until react-component/rc-test#176 is merged, then it can be narrowed to explicit CODECOV_TOKEN forwarding.

Summary by CodeRabbit

  • 新功能
    • 新增在线预览与部署支持,便于在 PR 和文档站点中查看最新效果。
    • 补充中文文档与更新后的英文文档,提供更完整的使用、开发和 API 说明。
  • 改进
    • 更新构建与发布配置,支持新的文档输出路径和站点访问方式。
    • 优化开发工具链与检查流程,增强提交前格式化与类型检查。
  • Bug Fixes
    • 调整忽略规则,避免生成产物和临时文件被误提交。

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
drawer Ready Ready Preview, Comment Jun 29, 2026 6:26am

@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@afc163, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable usage-based reviews in Billing to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 reviews.

How do review 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, and refer to the rate limits docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d2329afe-214d-4628-b010-7a07e8917b8d

📥 Commits

Reviewing files that changed from the base of the PR and between bb216c8 and 796415d.

📒 Files selected for processing (1)
  • .github/workflows/react-component-ci.yml

Walkthrough

新增工作流与预览发布配置,重写中英文 README,并更新站点路径、脚本、依赖自动化和仓库忽略/资助设置。

Changes

发布与仓库配置

Layer / File(s) Summary
工作流配置
.github/workflows/react-doctor.yml, .github/workflows/surge-preview.yml, .github/workflows/react-component-ci.yml
新增 React Doctor 与 Surge 预览工作流,并调整现有 CI 工作流的权限和复用测试工作流引用。
README 重写
README.md, README.zh-CN.md
README 的简介、安装、使用、示例、API、开发和发布内容被重写并重组。
脚本与部署配置
package.json, vercel.json, .dumirc.ts, .github/dependabot.yml, .github/FUNDING.yml, .gitignore, tsconfig.json, .fatherrc.ts, .husky/pre-commit, .prettierignore
npm 脚本、Vercel 构建配置、dumi 路径配置、依赖更新策略、资助配置和忽略规则被更新。

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

  • react-component/drawer#476:同样调整了 .github/workflows/react-component-ci.yml,变更点直接落在 CI 复用工作流配置上。

Suggested reviewers

  • zombieJ

Poem

我是一只小兔蹦又跳,
新工作流把门儿瞧。
README 换上新衣帽,
脚本与部署齐步跑,
胡萝卜香里春风到。

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确概括了本次以仓库工具链、脚本和工作流标准化为主的改动。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/standardize-rc-config

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b7b65b7) to head (796415d).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #616   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          209       209           
  Branches        75        75           
=========================================
  Hits           209       209           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the README.md with modern React 18 usage examples, a comprehensive and updated API table, and clearer development and release instructions. Additionally, package.json is updated to expand ESLint coverage, add a TypeScript check script, and improve Prettier formatting. The review feedback suggests making the API documentation in README.md more precise by explicitly typing the parameters for the motion and onClose callbacks.

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.

Comment thread README.md Outdated
Comment thread README.md Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-doctor.yml:
- Around line 22-25: The workflow uses mutable action tags for actions/checkout
and millionco/react-doctor, and checkout still persists credentials by default.
Update the checkout step and the react-doctor step in the workflow to pin both
actions to immutable commit SHAs, and set persist-credentials to false on the
checkout configuration to avoid leaving Git credentials available to downstream
steps.
🪄 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: e55154bc-6a25-4b78-b495-eb30a3f0f0e4

📥 Commits

Reviewing files that changed from the base of the PR and between b7b65b7 and 020aad2.

📒 Files selected for processing (3)
  • .github/workflows/react-doctor.yml
  • README.md
  • package.json

Comment thread .github/workflows/react-doctor.yml Outdated
@afc163
afc163 force-pushed the codex/standardize-rc-config branch from 020aad2 to 702bda4 Compare June 26, 2026 03:36
@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

✅ Preview is ready!

PR preview ✅ Ready ✅ Ready
🔗 Preview https://react-component-drawer-preview-pr-616.surge.sh
📝 Commit796415d
⏱️ Build time27.831s
📦 Size4.3 MB · 66 files
🪵 LogsView logs
📱 MobileScan to open preview on mobile

↩️ Previous: ⚡️ 796415d · react-component-drawer-preview-pr-616.surge.sh (open ↗) · 2026-06-29 06:27:05 UTC

🤖 Powered by surge-preview

Comment thread .github/workflows/react-component-ci.yml Fixed
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/react-component?upgradeToPro=build-rate-limit

@socket-security

socket-security Bot commented Jun 27, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​types/​node@​25.9.4 ⏵ 26.0.1100 +11008196100
Addednpm/​glob@​13.0.6961009985100

View full report

@socket-security

socket-security Bot commented Jun 27, 2026

Copy link
Copy Markdown

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.

View full report

@afc163
afc163 merged commit bf76c6a into master Jun 29, 2026
16 checks passed
@afc163
afc163 deleted the codex/standardize-rc-config branch June 29, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants