(raw_ref: str)
return None
Extract the branch name from the ref
Extract the branch name from the ref
Extract the branch name from the ref
def get_branch_name(raw_ref: str) -> str | None:
    """
    Extract the branch name from the ref
    """
    if raw_ref.startswith("refs/heads/"):
        return raw_ref.split("refs/heads/", 1)[1]
    return None
def get_branch_name ( raw_ref : str ) -> str | None : if raw_ref . startswith ( "refs/heads/" ) : return raw_ref . split ( "refs/heads/" , 1 ) [ 1 ] return None