-
-
Notifications
You must be signed in to change notification settings - Fork 998
chore: update release-dingtalk #1500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthrough工作流配置更新,将钉钉发布通知系统从版本 1* 升级至 2*,并为内部和 XMarkdown 频道添加两个新的独立通知步骤,保持现有社区通知渠道并扩展多频道发布能力。 Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 分钟
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 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 |
Summary of ChangesHello @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 Highlights
Ignored Files
Using Gemini Code AssistThe 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
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 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
|
Deploying ant-design-x with
|
| 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 |
There was a problem hiding this 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.
There was a problem hiding this 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
📒 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*',需要确认:
actions-cool/release-helper@v2是否支持 '2*' 的 tag 和 latest 过滤器配置- 此次版本升级是否包含任何破坏性变更或行为变化
- 这些更改是否已在测试或预发布环境中验证
建议在发布前运行一次工作流验证所有三个通知渠道是否正常工作。
Also applies to: 36-37, 51-52
size-limit report 📦
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
Bundle ReportBundle size has no change ✅ |

中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
📝 Change Log
Summary by CodeRabbit
发布说明
✏️ Tip: You can customize this high-level summary in your review settings.