用于创建和编译变更日志文件的简单脚本。
changelog_helper的Python项目详细描述
这些python2/3兼容的脚本可以创建和编译变更日志 来自不同分支的文件没有冲突。
灵感来自Gitlab团队对变更日志的处理方法。 https://docs.gitlab.com/ee/development/changelog.html
如何安装:
pip install changelog-helper
信息
添加变更日志实体:
add-changelog.py [-h] [--author AUTHOR] [--amend] [--force] [title] Generate a changelog entry file in git project root. positional arguments: title optional arguments: -h, --help show this help message and exit --author AUTHOR --amend --force
发布版本并编译变更日志:
release-changelog [-h] [--inline INLINE] [--rebuild] [version] Generate CHANGELOG.md file from changelog yml files. positional arguments: version New version, in format like v5.6.7 optional arguments: -h, --help show this help message and exit --inline INLINE Inline minor release, with single change --rebuild
您可以将旧的变更日志移动到changelogs/archive.md,然后 将追加到CHANGELOG.md