(sha: str, branches: list[Branch])
return [branch.name for branch in branches if branch.commit.sha == sha]
from the docs:
        The "branches" key is "an array of branch objects containing the status'
        SHA. Each branch contains the given SHA, but the SHA may or may not be
        the head of the branch. The array includes a maximum of 10 branches.""
    https://developer.github.com/v3/activity/events/types/#statusevent

    NOTE(chdsbd): only take branches with commit at branch head to reduce
    potential number of api requests we need to make.
from the docs:
        The "branches" key is "an array of branch objects containing the status'
        SHA. Each branch contains the given SHA, but the SHA may or may not be
        the head of the branch. The array includes a maximum of 10 branches.""
    https://developer.github.com/v3/activity/events/types/#statusevent
from the docs : The branches key is an array of branch objects containing the status SHA . Each branch contains the given SHA but the SHA may or may not be the head of the branch . The array includes a maximum of 10 branches . https : // developer . github . com / v3 / activity / events / types / #statusevent
def find_branch_names_latest(sha: str, branches: list[Branch]) -> list[str]:
    """
    from the docs:
        The "branches" key is "an array of branch objects containing the status'
        SHA. Each branch contains the given SHA, but the SHA may or may not be
        the head of the branch. The array includes a maximum of 10 branches.""
    https://developer.github.com/v3/activity/events/types/#statusevent

    NOTE(chdsbd): only take branches with commit at branch head to reduce
    potential number of api requests we need to make.
    """
    return [branch.name for branch in branches if branch.commit.sha == sha]
def find_branch_names_latest ( sha : str , branches : list [ Branch ] ) -> list [ str ] : return [ branch . name for branch in branches if branch . commit . sha == sha ]