Skip to content

chore(ci): cliff.toml 支持 conventional scope + bump 1.8.1#63

Merged
wnzzer merged 2 commits into
mainfrom
chore/cliff-toml-scope-support
May 17, 2026
Merged

chore(ci): cliff.toml 支持 conventional scope + bump 1.8.1#63
wnzzer merged 2 commits into
mainfrom
chore/cliff-toml-scope-support

Conversation

@wnzzer
Copy link
Copy Markdown
Owner

@wnzzer wnzzer commented May 17, 2026

Summary

  • cliff.toml commit_parsers 正则支持 (scope) — 旧正则 (?i)^fix[::] 要求 type 后立刻跟冒号,带 scope 的 commit (fix(arena): / feat(security): 等) 全部被 fallthrough 到 skip = true,历史所有 scoped commit 都漏出 changelog。加 (\(.+?\))? 可选段后,有/无 scope 都正确归类。
  • bump 1.8.1 — 配合 fix(arena): 修复斗魂(CHERRY)多变种识别、海克斯展示、按小队占比 #62 (arena CHERRY 修复) 发版。

Test plan

  • npm run check 通过
  • 合并后 release workflow 跑 cliff 生成 changelog 时,scoped commit 应正确归入 🐛 Bug Fixes / 🚀 Features 等分组

wnzzer added 2 commits May 17, 2026 18:51
旧正则 `(?i)^fix[::]` 要求 type 后立即跟冒号,带 scope 的 commit(如
`fix(arena):`)被 fallthrough 到 `{ message = ".*", skip = true }`,
导致历史所有 `fix(security):` / `feat(arena):` 类 commit 都不进 changelog。

加上可选的 scope 后缀 `(\(.+?\))?` 后,无 scope 与带 scope 的两种
都能匹配并归到对应 emoji 分组。
Copilot AI review requested due to automatic review settings May 17, 2026 10:51
@wnzzer wnzzer merged commit 561f0c8 into main May 17, 2026
5 checks passed
@wnzzer wnzzer deleted the chore/cliff-toml-scope-support branch May 17, 2026 10:52
Copy link
Copy Markdown

Copilot AI left a comment

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 updates the release tooling to correctly categorize scoped Conventional Commits in git-cliff changelog generation, and bumps the Tauri app version to 1.8.1 for the upcoming release.

Changes:

  • Update .github/cliff.toml commit_parsers regex to recognize optional (scope) in commit headers.
  • Bump src-tauri/tauri.conf.json app version from 1.8.0 to 1.8.1.

Reviewed changes

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

File Description
lol-record-analysis-tauri/src-tauri/tauri.conf.json Bumps the app version to 1.8.1 for release tagging/build metadata.
.github/cliff.toml Adjusts git-cliff commit parsing to classify scoped Conventional Commits into the correct changelog groups.
Comments suppressed due to low confidence (1)

.github/cliff.toml:42

  • Same regex issue as above: the \(.+?\) fragment uses +? (lazy quantifier) which may not be supported by git-cliff’s regex engine and can break the release workflow when generating the changelog. Replace the scope portion with a Rust-regex-compatible character class like \([^)]*\) and keep it optional.
    { message = "(?i)^style(\\(.+?\\))?[::]", group = "🎨 Styling" },
    { message = "(?i)^test(\\(.+?\\))?[::]", group = "🧪 Testing" },
    { message = "^chore\\(release\\): prepare for", skip = true },
    { message = "(?i)^chore(\\(.+?\\))?[::]", skip = true },

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

Comment thread .github/cliff.toml
Comment on lines +34 to +38
{ message = "(?i)^feat(\\(.+?\\))?[::]", group = "🚀 Features" },
{ message = "(?i)^fix(\\(.+?\\))?[::]", group = "🐛 Bug Fixes" },
{ message = "(?i)^doc(\\(.+?\\))?[::]", group = "📚 Documentation" },
{ message = "(?i)^perf(\\(.+?\\))?[::]", group = "⚡ Performance" },
{ message = "(?i)^refactor(\\(.+?\\))?[::]", group = "🛠 Refactor" },
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