def message_option_validator(ctx, param, value):
    """A commit template must have the **{new_version}** placeholder."""

    if not value or "{new_version}" not in value:
        ctx.fail("Missing {new_version} placeholder in " f"{value}.")

    return value
A commit template must have the **{new_version}** placeholder.