@staticmethod
def _is_last_commit_already_tagged(repo, last_tag, branch_name):
    """Check if the last_tag is also applied on the latest commit."""
    if last_tag is None:
        return False
    commit = list(repo.iter_commits(rev=branch_name))[0]
    return last_tag.commit == commit
