Use pagination to get tags/branches from the github API