mirror of
https://github.com/drewcassidy/yaclog.git
synced 2024-09-01 14:58:58 +00:00
Fix release messages
This commit is contained in:
parent
dc90731f3d
commit
bf2e8f670f
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user