action_utils.tag_commit module

Tag the current git commit based on version information in a JSON file

action_utils.tag_commit.parse_args()

Parse commandline args

action_utils.tag_commit.tag_current_commit(git_repo: git.repo.base.Repo, new_version: VersionTag, add_date: bool = False) None

Given a new version, tag the current commit accordingly

Parameters:
  • new_version – The new version to use to tag

  • add_date – Append current date to the tag

Raises:

common.InvalidVersion – If the new version does not make sense with respect to the current version