add Branch method for payload
add GetFile func for repo