I am not able to paginate the results of the Github compare commit REST API as defined here: https://docs.github.com/en/github-ae@latest/rest/commits/commits#compare-two-commits
I perform a GET operation in the following format:
url = https://api.github.com/repos/${owner}/${repo}/compare/${base}...${head}?per_page=50
I always get 300 files with no link as to how I can get to the next page (list of 50 items).
Note: I have read the git hub pagination https://docs.github.com/en/rest/guides/traversing-with-pagination, and it has not provided much insight.
Ideally, I am looking for a JS implementation of how-to page the results of the compare API