Skip to content

Commit 6620c5b

Browse files
authored
Change SemVerType to more meaningful BumpTarget (#68)
1 parent 2bcaf15 commit 6620c5b

5 files changed

Lines changed: 14 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ The [Changelogger tool](https://pypi.org/project/changelogged) is used for autom
1414
<!-- BEGIN RELEASE NOTES -->
1515
### [Unreleased]
1616

17+
### [0.10.1] - 2023-03-05
18+
19+
#### Changed
20+
- `SemVerType` to `BumpTarget`.
21+
1722
### [0.10.0] - 2023-03-05
1823

1924
#### Added
@@ -122,7 +127,8 @@ The [Changelogger tool](https://pypi.org/project/changelogged) is used for autom
122127
- `unreleased add`, which allows inline or prompted adding of unreleased changes.
123128
<!-- END RELEASE NOTES -->
124129
<!-- BEGIN LINKS -->
125-
[Unreleased]: https://github.com/award28/changelogger/compare/0.10.0...HEAD
130+
[Unreleased]: https://github.com/award28/changelogger/compare/0.10.1...HEAD
131+
[0.10.1]: https://github.com/award28/changelogger/compare/0.10.0...0.10.1
126132
[0.10.0]: https://github.com/award28/changelogger/compare/0.9.1...0.10.0
127133
[0.9.1]: https://github.com/award28/changelogger/compare/0.9.0...0.9.1
128134
[0.9.0]: https://github.com/award28/changelogger/compare/0.8.0...0.9.0

changelogger/app/commands/upgrade.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
rollback_handler,
99
)
1010
from changelogger.conf import settings
11-
from changelogger.models.domain_models import ChangelogUpdate, SemVerType
11+
from changelogger.models.domain_models import BumpTarget, ChangelogUpdate
1212

1313

1414
def upgrade(
15-
version_to_bump: SemVerType,
15+
version_to_bump: BumpTarget,
1616
confirm: bool = typer.Option(
1717
True,
1818
help="Confirm the release notes before applying them.",

changelogger/models/domain_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pydantic import BaseModel, validator
66

77

8-
class SemVerType(Enum):
8+
class BumpTarget(Enum):
99
MAJOR = "major"
1010
MINOR = "minor"
1111
PATCH = "patch"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "changelogged"
3-
version = "0.10.0"
3+
version = "0.10.1"
44
description = "Automated management of your changelog and other versioned files, following the principles of Keep a Changelog and Semantic Versioning."
55
license = "MIT"
66
authors = ["award28 <austin.ward@klaviyo.com>"]

tests/app/commands/test_upgrade.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
from changelogger.app.commands.upgrade import upgrade
66
from changelogger.models.domain_models import (
7+
BumpTarget,
78
ChangelogUpdate,
89
ReleaseNotes,
9-
SemVerType,
1010
)
1111

1212

@@ -41,7 +41,7 @@ def mock_typer(self):
4141
(new_version, version_to_bump, prompt_changelog, confirm, markdown)
4242
for new_version, version_to_bump in zip(
4343
["1.0.0", "0.2.0", "0.1.1"],
44-
list(SemVerType),
44+
list(BumpTarget),
4545
)
4646
for prompt_changelog in (True, False)
4747
for confirm in (True, False)
@@ -51,7 +51,7 @@ def mock_typer(self):
5151
def test_upgrade(
5252
self,
5353
new_version: str,
54-
version_to_bump: SemVerType,
54+
version_to_bump: BumpTarget,
5555
prompt_changelog: bool,
5656
confirm: bool,
5757
markdown: str,

0 commit comments

Comments
 (0)