chore: add changelog auto gen

This commit is contained in:
kevin.zhang
2024-04-18 09:48:58 +08:00
parent 78f5ce7cdd
commit 3f941c8dd9
3 changed files with 41 additions and 1 deletions

17
changelog.py Normal file
View File

@@ -0,0 +1,17 @@
from git_changelog.cli import build_and_render
# 运行这段脚本自动生成CHANGELOG.md文件
build_and_render(
repository=".",
output="CHANGELOG.md",
convention="angular",
provider="github",
template="keepachangelog",
parse_trailers=True,
parse_refs=False,
sections=["build", "deps", "feat", "fix", "refactor"],
versioning="pep440",
bump="1.1.2", # 指定bump版本
in_place=True,
)