diff --git a/build/cliff.toml b/build/cliff.toml index b11c9278..557e8979 100644 --- a/build/cliff.toml +++ b/build/cliff.toml @@ -20,6 +20,8 @@ body = """ {% endfor %} {% endfor %} +---- + - 该版本有 {{ statistics.commit_count }} 次提交 - 在提交中检测到 {{ statistics.links | length }} 个关联议题 {%- if statistics.links | length > 0 %} @@ -71,7 +73,7 @@ protect_breaking_commits = false # Optionally sets the commit's scope and can decide to exclude commits from further processing. commit_parsers = [ - { message = "^(add|新增|添加)", group = "🚀 新增功能" }, + { message = "^(feat|add|新增|添加)", group = "🚀 新增功能" }, { message = "^(fix|修复)", group = "🐛 修复" }, { message = "^doc", group = "📚 文档更改" }, { message = "^(improve|改进|优化)", group = "⚡ 体验优化" }, @@ -92,7 +94,9 @@ commit_parsers = [ # Exclude commits that are not matched by any commit parser. filter_commits = false # An array of link parsers for extracting external references, and turning them into URLs, using regex. -link_parsers = [] +link_parsers = [ + { pattern = "#(\\d+)", href = "https://github.com/InkCanvasForClass/community/issues/$1"}, +] # Include only the tags that belong to the current branch. use_branch_tags = false # Order releases topologically instead of chronologically.