Skip to content

Commit a69c79b

Browse files
committed
Replace harborapi references with zabbix-cli
1 parent 58a328e commit a69c79b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/bump_version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class VersionBumper(StateMachine):
187187
188188
If dry_run is True, the command will be printed but not executed."""
189189

190-
source_dir = Path("harborapi")
190+
source_dir = Path("zabbix_cli")
191191
version_file = source_dir / "__about__.py"
192192
changelog_file = Path("CHANGELOG.md")
193193
changelog_file_bak = changelog_file.with_suffix(".bak")
@@ -207,7 +207,7 @@ def __init__(
207207

208208
@property
209209
def tag(self) -> str:
210-
return f"harborapi-v{self.new_version}"
210+
return f"{self.new_version}"
211211

212212
def get_runner(self, dry_run: bool) -> Runner:
213213
def dryrun_subprocess_run(
@@ -313,7 +313,7 @@ def get_project_version(self) -> str:
313313
@advance(State.GIT_ADD)
314314
def git_add(self, *files: str) -> CompletedProcess[bytes]:
315315
p_git_add = self.run(
316-
["git", "add", "harborapi/__about__.py", "CHANGELOG.md", *files],
316+
["git", "add", "zabbix_cli/__about__.py", "CHANGELOG.md", *files],
317317
capture_output=True,
318318
)
319319
if p_git_add.returncode != 0:
@@ -394,7 +394,7 @@ def add_changelog_header(self, new_version: str) -> None:
394394
if index is None:
395395
exit_err("Failed to find '## Unreleased' section in CHANGELOG.md")
396396

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')}"
398398
lines[index] = "<!-- ## Unreleased -->" # comment out
399399
lines.insert(index + 1, f"\n{header}") # insert after
400400
self.changelog_file.write_text("\n".join(lines))

0 commit comments

Comments
 (0)