from unittest.mock import call
import re


def is_release() -> bool:
    """Return if current branch is a release branch."""
    tag_name = call("git describe --tags").replace("\n", "")
    return re.match(r"^v\d+\.\d+\.\d+$", tag_name) is not None