Fix release messages

This commit is contained in:
Andrew Cassidy 2021-05-11 22:13:50 -07:00
parent dc90731f3d
commit bf2e8f670f
2 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file
## Unreleased
### Fixed
- Fixed `show` command not working with Click version 8
- Fixed release message incorrectly stating if a commit will be created or not
## Version 1.0.2 - 2021-05-12
### Changed

View File

@ -257,7 +257,7 @@ def release(obj: Changelog, version_name, rel_seg, pre_seg, commit):
tracked = len(repo.index.diff(repo.head.commit))
untracked = len(repo.index.diff(None))
message = [['Commit and create tag', 'Create tag'][min(tracked, 1)], 'for']
message = [['Create tag', 'Commit and create tag'][min(tracked, 1)], 'for']
if not cur_version.released:
message.append('non-release')