@@ -187,7 +187,7 @@ class VersionBumper(StateMachine):
187
187
188
188
If dry_run is True, the command will be printed but not executed."""
189
189
190
- source_dir = Path ("harborapi " )
190
+ source_dir = Path ("zabbix_cli " )
191
191
version_file = source_dir / "__about__.py"
192
192
changelog_file = Path ("CHANGELOG.md" )
193
193
changelog_file_bak = changelog_file .with_suffix (".bak" )
@@ -207,7 +207,7 @@ def __init__(
207
207
208
208
@property
209
209
def tag (self ) -> str :
210
- return f"harborapi-v { self .new_version } "
210
+ return f"{ self .new_version } "
211
211
212
212
def get_runner (self , dry_run : bool ) -> Runner :
213
213
def dryrun_subprocess_run (
@@ -313,7 +313,7 @@ def get_project_version(self) -> str:
313
313
@advance (State .GIT_ADD )
314
314
def git_add (self , * files : str ) -> CompletedProcess [bytes ]:
315
315
p_git_add = self .run (
316
- ["git" , "add" , "harborapi /__about__.py" , "CHANGELOG.md" , * files ],
316
+ ["git" , "add" , "zabbix_cli /__about__.py" , "CHANGELOG.md" , * files ],
317
317
capture_output = True ,
318
318
)
319
319
if p_git_add .returncode != 0 :
@@ -394,7 +394,7 @@ def add_changelog_header(self, new_version: str) -> None:
394
394
if index is None :
395
395
exit_err ("Failed to find '## Unreleased' section in CHANGELOG.md" )
396
396
397
- header = f"## [{ new_version } ](https://github.com/unioslo/harborapi /tree/harborapi-v { new_version } ) - { datetime .now ().strftime ('%Y-%m-%d' )} "
397
+ header = f"## [{ new_version } ](https://github.com/unioslo/zabbix-cli /tree/{ new_version } ) - { datetime .now ().strftime ('%Y-%m-%d' )} "
398
398
lines [index ] = "<!-- ## Unreleased -->" # comment out
399
399
lines .insert (index + 1 , f"\n { header } " ) # insert after
400
400
self .changelog_file .write_text ("\n " .join (lines ))
0 commit comments