|
|
@@ -20,7 +20,7 @@ Web 服务功能会封装到子命令 serve 中,命令行功能会封装到子
|
|
|
4. migrate 数据库迁移
|
|
|
5. cache 缓存处理
|
|
|
|
|
|
-# 变更日志\n
|
|
|
+## 变更日志\n
|
|
|
本文件记录了本项目的所有重要变更。\n
|
|
|
"""
|
|
|
|
|
|
@@ -28,12 +28,12 @@ Web 服务功能会封装到子命令 serve 中,命令行功能会封装到子
|
|
|
# https://keats.github.io/tera/docs/#introduction
|
|
|
body = """
|
|
|
{% if version %}\
|
|
|
- ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
|
|
+ ### [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
|
|
{% else %}\
|
|
|
- ## [未发布]
|
|
|
+ ### [未发布]
|
|
|
{% endif %}\
|
|
|
{% for group, commits in commits | group_by(attribute="group") %}
|
|
|
- ### {{ group | striptags | trim | upper_first }}
|
|
|
+ #### {{ group | striptags | trim | upper_first }}
|
|
|
{% for commit in commits %}
|
|
|
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
|
|
|
{% if commit.breaking %}[**破坏性变更**] {% endif %}\
|