Updated based on the assumption that the Github api returns the branch
name