def METHOD_NAME(self, name: str) -> bool:
    """Return True if the given branch name an official branch for development or releases."""
    if self.args.base_branch:
        return name == self.args.base_branch
    if name == 'devel':
        return True
    if re.match(r'^stable-[0-9]+\.[0-9]+$', name):
        return True
    return False