Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kimteayon
Copy link
Collaborator

@kimteayon kimteayon commented Dec 10, 2025

中文版模板 / Chinese template

🤔 This is a ...

  • 🆕 New feature
  • 🐞 Bug fix
  • 📝 Site / documentation improvement
  • 📽️ Demo improvement
  • 💄 Component style improvement
  • 🤖 TypeScript definition improvement
  • 📦 Bundle size optimization
  • ⚡️ Performance optimization
  • ⭐️ Feature enhancement
  • 🌐 Internationalization
  • 🛠 Refactoring
  • 🎨 Code style optimization
  • ✅ Test Case
  • 🔀 Branch merge
  • ⏩ Workflow
  • ⌨️ Accessibility improvement
  • ❓ Other (about what?)

🔗 Related Issues

  • Describe the source of related requirements, such as links to relevant issue discussions.
  • For example: close #xxxx, fix #xxxx

💡 Background and Solution

  • The specific problem to be addressed.
  • List the final API implementation and usage if needed.
  • If there are UI/interaction changes, consider providing screenshots or GIFs.

📝 Change Log

Language Changelog
🇺🇸 English
🇨🇳 Chinese 新增服务群推送

Summary by CodeRabbit

发布说明

  • 杂务
    • 改进了发布通知流程,增加了对多个通知渠道的支持。

✏️ Tip: You can customize this high-level summary in your review settings.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

Preview failed

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 10, 2025

📝 Walkthrough

Walkthrough

工作流配置更新,将钉钉发布通知系统从版本 1* 升级至 2*,并为内部和 XMarkdown 频道添加两个新的独立通知步骤,保持现有社区通知渠道并扩展多频道发布能力。

Changes

凝聚点 / 文件 变更摘要
钉钉发布工作流配置更新
.github/workflows/release-dingtalk.yml
重命名社区通知步骤,版本过滤器从 1* 更新至 2*;新增"发送到内部 DingGroup"和"发送到 XMarkdown DingGroup"两个步骤,各自配置独立 token,使用相同的触发条件和 2* 版本过滤器。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 分钟

  • 单文件修改,仅涉及 YAML 配置层面的文本编辑和结构复制
  • 重复的配置块模式,易于验证一致性
  • 无逻辑变更或依赖关系调整,仅需确认 token 值、步骤名称和参数正确性

Poem

🐰 工作流的蓝图更新妙,
从一到二的版本升到高,
三条通知渠道齐声响,
社区、内部、XMarkdown 放光彩,
DingGroup 家族欢庆,消息传得更快!

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR标题'chore: update release-dingtalk'与变更内容部分相关,准确反映了修改的文件,但缺乏具体性,未说明添加新的DingTalk通知步骤这一主要变更。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch doc

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 and usage tips.

@dosubot dosubot bot added the documentation Improvements or additions to documentation label Dec 10, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @kimteayon, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily updates the component documentation for the ant-design/x project. It reclassifies the Sources component to better reflect its role in providing feedback, and introduces CodeHighlighter and Mermaid as new feedback-oriented components. These changes ensure the component overview is accurate and up-to-date for both English and Chinese users.

Highlights

  • Component Reclassification: The Sources component has been moved from the "Confirmation" category to the "Feedback" category in the component documentation, reflecting a more accurate functional grouping.
  • New Feedback Components Introduced: Two new components, CodeHighlighter and Mermaid, have been added to the "Feedback" category, expanding the available tools for presenting information such as code snippets and diagrams.
  • Multilingual Documentation Update: These component categorization and addition changes have been consistently applied across both the English (index.en-US.md) and Chinese (index.zh-CN.md) documentation files, ensuring consistency for all users.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/release-dingtalk.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 10, 2025

Deploying ant-design-x with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5323834
Status: ✅  Deploy successful!
Preview URL: https://07dbb26d.ant-design-x.pages.dev
Branch Preview URL: https://doc.ant-design-x.pages.dev

View logs

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 10, 2025
Copy link
Contributor

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

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 component lists in the documentation to correctly categorize Sources, CodeHighlighter, and Mermaid. The changes in the markdown files are correct and consistent.

However, there are a few issues with the pull request's metadata that should be addressed to improve clarity and maintainability:

  • PR Type: The type of change is not selected in the description. This looks like a '📝 Site / documentation improvement'.
  • PR Title: The title 'chore: update release-dingtalk' does not describe the changes. A more descriptive title, following conventional commits, would be something like 'docs: update component list in introduction'.
  • Changelog: The changelog in the PR description is inaccurate. The Chinese entry '新增服务群推送' (Add service group push) is incorrect, and the English entry is missing. Both should be updated to reflect the documentation changes.

Correcting these will make the pull request easier to understand and improve the project's history.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/workflows/release-dingtalk.yml (1)

15-59: 代码重复:建议使用工作流矩阵策略优化多渠道通知

三个通知步骤(Community、Internal、XMarkdown)的配置几乎完全相同,只在以下参数上不同:

  • 步骤名称(name)
  • DingTalk 密钥(dingding-token)

建议使用 GitHub Actions 的 matrix 策略来消除重复,提高可维护性。

可以使用如下矩阵策略重构:

jobs:
  release-helper:
    permissions:
      contents: write
    if: github.event.ref_type == 'tag'
    runs-on: ubuntu-latest
    strategy:
      matrix:
        channel:
          - { name: 'Community', token_secret: 'DINGDING_BOT_TOKEN' }
          - { name: 'Internal', token_secret: 'DINGDING_BOT_INTERNAL_TOKEN' }
          - { name: 'XMarkdown', token_secret: 'DINGDING_BOT_XMARKDOWN_TOKEN' }
    steps:
      - name: Send to Ant Design X DingGroup ${{ matrix.channel.name }}
        uses: actions-cool/release-helper@v2
        with:
          trigger: tag
          changelogs: 'CHANGELOG.en-US.md, CHANGELOG.zh-CN.md'
          branch: 'main'
          tag: '2*'
          latest: '2*'
          dingding-token: ${{ secrets[matrix.channel.token_secret] }}
          dingding-msg: CHANGELOG.zh-CN.md
          msg-title: '# Ant Design X {{v}} 发布日志'
          msg-poster: 'https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*kjHUSYIdsnUAAAAAAAAAAAAADgCCAQ/original'
          msg-footer: '💬 前往 [**Ant Design X Releases**]({{url}}) 查看更新日志'
          prettier: true
          prerelease-filter: '-, a, b, A, B'
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 68bfb92 and 5323834.

📒 Files selected for processing (1)
  • .github/workflows/release-dingtalk.yml (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: afc163
Repo: ant-design/x PR: 0
File: :0-0
Timestamp: 2025-04-11T14:47:09.527Z
Learning: 当评审 ant-design/x 仓库中的 PR 时,需要用中文回复中文评论。该项目的文档支持中英双语。
Learnt from: afc163
Repo: ant-design/x PR: 0
File: :0-0
Timestamp: 2025-04-11T14:47:09.527Z
Learning: 当评审 ant-design/x 仓库中的 PR 时,需要用中文回复中文评论。该项目的文档支持中英双语。
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: build preview
  • GitHub Check: test
  • GitHub Check: size
  • GitHub Check: test
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (2)
.github/workflows/release-dingtalk.yml (2)

38-38: 验证新增的 DingTalk 密钥配置

PR 引入了两个新的密钥变量:

  • 第 38 行:DINGDING_BOT_INTERNAL_TOKEN
  • 第 53 行:DINGDING_BOT_XMARKDOWN_TOKEN

请确认这两个密钥已在 GitHub 仓库的 Settings → Secrets and variables → Actions 中正确配置,否则工作流将会失败。

Also applies to: 53-53


21-22: 验证 release-helper@v2 对 '2' 版本过滤器的支持*

PR 将版本过滤器从 '1*' 升级到 '2*',需要确认:

  1. actions-cool/release-helper@v2 是否支持 '2*' 的 tag 和 latest 过滤器配置
  2. 此次版本升级是否包含任何破坏性变更或行为变化
  3. 这些更改是否已在测试或预发布环境中验证

建议在发布前运行一次工作流验证所有三个通知渠道是否正常工作。

Also applies to: 36-37, 51-52

@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

size-limit report 📦

Path Size
packages/x/dist/antdx.min.js 439.45 KB
packages/x-sdk/dist/x-sdk.min.js 7.5 KB
packages/x-markdown/dist/x-markdown.min.js 28.85 KB
packages/x-markdown/dist/plugins/latex.min.js 61.95 KB

@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.81%. Comparing base (68bfb92) to head (5323834).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1500   +/-   ##
=======================================
  Coverage   94.81%   94.81%           
=======================================
  Files         137      137           
  Lines        3951     3951           
  Branches     1107     1108    +1     
=======================================
  Hits         3746     3746           
  Misses        202      202           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 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.

@kimteayon kimteayon merged commit 7c53b59 into main Dec 10, 2025
15 checks passed
@kimteayon kimteayon deleted the doc branch December 10, 2025 08:49
@codecov
Copy link

codecov bot commented Dec 10, 2025

Bundle Report

Bundle size has no change ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants