Handle pagination from github