diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 44cee3c..2be3cc8 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.0.14 +current_version = 1.0.17 commit = True tag = False diff --git a/commit_msg_version_bump/main.py b/commit_msg_version_bump/main.py index e8f2919..0a7f37d 100644 --- a/commit_msg_version_bump/main.py +++ b/commit_msg_version_bump/main.py @@ -238,7 +238,7 @@ def amend_commit(new_commit_msg: str) -> None: subprocess.run(["git", "commit", "--amend", "-m", new_commit_msg], check=True) logger.info("Successfully amended the commit with the new version bump.") logger.info( - "Please perform a force push using 'git push --force' to update the remote repository." + "Please perform a force push using 'git push' to update the remote repository. Avoid use --force" ) except subprocess.CalledProcessError as e: logger.error(f"Failed to amend the commit: {e}") @@ -283,7 +283,7 @@ def main() -> None: amend_commit(updated_commit_msg) logger.info( - "Aborting the current push. Please perform a force push using 'git push --force'." + "Aborting the current push. Please perform a force push using 'git push'. Avoid use --force" ) sys.exit(1) else: diff --git a/pyproject.toml b/pyproject.toml index 7389f0b..d828076 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scripts" -version = "1.0.14" +version = "1.0.17" description = "CICD Core Scripts" authors = ["B "] license = "Apache 2.0" @@ -71,5 +71,5 @@ ensure_newline_before_comments = true rcfile = ".pylintrc" [build-system] -requires = ["poetry-core>=1.0.14"] +requires = ["poetry-core>=1.0.17"] build-backend = "poetry.core.masonry.api"