Skip to content

chore: standardize repository maintenance#37

Merged
afc163 merged 16 commits into
masterfrom
codex/standardize-rc-infra
Jul 3, 2026
Merged

chore: standardize repository maintenance#37
afc163 merged 16 commits into
masterfrom
codex/standardize-rc-infra

Conversation

@afc163

@afc163 afc163 commented Jul 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Refresh README and README.zh-CN with centered heading, badges, Ant Design ecosystem branding, install, usage, development, release, and license sections.
  • Align Funding, grouped Dependabot updates, React Doctor, reusable test workflow, Surge preview, and Vercel preview configuration.
  • Align release documentation and scripts with @rc-component/np; remove legacy duplicated CI or Now configuration where present.
  • Keep GitHub's default CodeQL setup instead of adding an advanced CodeQL workflow.

Refs ant-design/ant-design#58514

Test

  • npm run lint
  • npm run tsc
  • npm run compile
  • npm test
  • npm run build
  • git diff --check
  • JSON parse check for package/config files
  • README consistency scan

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 23 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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 refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 40df975b-e98e-49fe-bb93-428b5e8a4ad0

📥 Commits

Reviewing files that changed from the base of the PR and between e6e5bc0 and 8f8d5d0.

⛔ Files ignored due to path filters (2)
  • tests/__snapshots__/index.test.tsx.snap is excluded by !**/*.snap
  • tests/__snapshots__/testEnv.test.tsx.snap is excluded by !**/*.snap
📒 Files selected for processing (18)
  • .eslintrc.js
  • .github/FUNDING.yml
  • .github/dependabot.yml
  • .github/workflows/main.yml
  • .github/workflows/preview.yml
  • .github/workflows/react-doctor.yml
  • .github/workflows/surge-preview.yml
  • .github/workflows/test.yml
  • README.md
  • README.zh-CN.md
  • docs/examples/getContainer.tsx
  • eslint.config.mjs
  • global.d.ts
  • package.json
  • src/index.tsx
  • tests/index.test.tsx
  • tsconfig.json
  • vercel.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/standardize-rc-infra

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.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

✅ Preview is ready!

PR preview ✅ Ready ✅ Ready
🔗 Preview https://react-component-portal-preview-pr-37.surge.sh
📝 Commit8f8d5d0
⏱️ Build time27.346s
📦 Size1.7 MB · 34 files
🪵 LogsView logs
📱 MobileScan to open preview on mobile

↩️ Previous: ⚡️ 8f8d5d0 · react-component-portal-preview-pr-37.surge.sh (open ↗) · 2026-07-03 03:35:37 UTC

🤖 Powered by surge-preview

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.57%. Comparing base (e6e5bc0) to head (8f8d5d0).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #37   +/-   ##
=======================================
  Coverage   94.57%   94.57%           
=======================================
  Files           7        7           
  Lines         166      166           
  Branches       53       54    +1     
=======================================
  Hits          157      157           
  Misses          9        9           

☔ 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 repository configurations, documentation, and dependencies. Key changes include adding a funding configuration, setting up Dependabot for npm and GitHub Actions, adding a Vercel deployment configuration, updating package scripts, and rewriting the README files in both English and Chinese. Feedback on these changes suggests restricting the TypeScript compilation include paths in tsconfig.json to avoid matching build output directories, and restoring the missing 'Type' and 'Default' columns to the API tables in both README files for completeness.

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 tsconfig.json Outdated
Comment thread README.md Outdated
Comment thread README.zh-CN.md Outdated
@socket-security

socket-security Bot commented Jul 1, 2026

Copy link
Copy Markdown

@socket-security

socket-security Bot commented Jul 1, 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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 8f8d5d0.

Copilot AI review requested due to automatic review settings July 2, 2026 03:55

Copilot AI 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.

Pull request overview

This PR standardizes repository maintenance across docs, tooling, CI workflows, and hosting configuration to align with the broader Ant Design / rc-component ecosystem.

Changes:

  • Refresh README/README.zh-CN branding and usage/development/release documentation.
  • Standardize CI automation (Dependabot grouping, reusable test workflow, Surge preview, React Doctor) and remove legacy workflow/config.
  • Update TypeScript/ESLint/Prettier/tooling configuration and scripts, and add Vercel + global TypeScript declarations.

Reviewed changes

Copilot reviewed 17 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
vercel.json Adds Vercel build/output configuration for the docs site.
tsconfig.json Adjusts TS compiler settings, path aliases, and project include/exclude.
tests/index.test.tsx Updates ref typing and adjusts an expected render count.
tests/snapshots/testEnv.test.tsx.snap Updates snapshot header URL.
tests/snapshots/index.test.tsx.snap Updates snapshot header URL.
src/index.tsx Adds an eslint disable and standardizes type export pattern.
README.zh-CN.md Adds new Simplified Chinese README with standardized sections/badges.
README.md Replaces legacy README with standardized sections/badges.
package.json Updates scripts and modernizes devDependencies/tooling versions.
global.d.ts Adds module declaration for *.less.
eslint.config.mjs Migrates to ESLint flat config with TS/React/Jest support.
docs/examples/getContainer.tsx Improves TS typing for ref-based getContainer example.
.github/workflows/test.yml Adds reusable test workflow (rc-test).
.github/workflows/surge-preview.yml Adds Surge preview workflow for PRs.
.github/workflows/react-doctor.yml Adds React Doctor workflow.
.github/workflows/main.yml Removes legacy CI workflow.
.github/FUNDING.yml Adds funding links.
.github/dependabot.yml Configures grouped Dependabot updates for npm + GitHub Actions.
.eslintrc.js Removes legacy ESLint config file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
@afc163 afc163 merged commit 55ba92d into master Jul 3, 2026
13 checks passed
@afc163 afc163 deleted the codex/standardize-rc-infra branch July 3, 2026 12:32
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