Skip to content

ci: configure PR title types whitelist for semantic check - #70

Merged
lonewolfyx merged 1 commit into
antdv-next:mainfrom
dogledogle:ci/pr-title-types-whitelist
Sep 21, 2026
Merged

lonewolfyx merged 1 commit into
antdv-next:mainfrom
dogledogle:ci/pr-title-types-whitelist

Conversation

@dogledogle

Copy link
Copy Markdown
Member

🤔 本次变更属于 ...

  • 🆕 新功能
  • 🐞 Bug 修复
  • 📝 站点 / 文档改进
  • 📽️ Demo 改进
  • 💄 组件样式改进
  • 🤖 TypeScript 类型定义改进
  • 📦 包体积优化
  • ⚡️ 性能优化
  • ⭐️ 功能增强
  • 🌐 国际化
  • 🛠 重构
  • 🎨 代码风格优化
  • ✅ 测试用例
  • 🔀 分支合并
  • ⏩ 工作流
  • ⌨️ 无障碍改进
  • ❓ 其他(请说明)

🔗 相关 Issue

None

💡 背景与方案

PR 标题校验使用的 amannn/action-semantic-pull-request 在未配置 types 输入时,会按 conventional-commit-types 的默认白名单校验,仅允许 feat、fix、docs、style、refactor、perf、test、build、ci、chore、revert。本仓库 create-pr skill(.agents/skills/create-pr/SKILL.md)中补充的 release 标题类型会被 CI 直接拒绝。

本次为该 action 显式配置 types 白名单,取默认白名单与仓库 skill 所列类型的并集,共 12 个:在默认白名单基础上新增 release。subjectPattern 等其余校验规则保持不变。

📝 变更日志

语言 变更日志
🇺🇸 英文 No changelog required
🇨🇳 中文 无需更新日志

Pin the types whitelist in validate-pr-title.yml to the union of the
conventional-commit-types defaults and the types listed in
.agents/skills/create-pr/SKILL.md, so PR titles like 'release: ...'
generated per the skill pass validation.
@lonewolfyx
lonewolfyx merged commit c2c9b0b into antdv-next:main Sep 21, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Thx for the PR @dogledogle

@dogledogle
dogledogle deleted the ci/pr-title-types-whitelist branch September 21, 2026 06:19
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