AleksandrHovhannisyan / aleksandrhovhannisyan.com

My online resume and blog, created with 11ty, Sass, and JavaScript.
https://aleksandrhovhannisyan.com/
109 stars 26 forks source link

Comments are getting truncated after 30 #150

Closed AleksandrHovhannisyan closed 2 years ago

AleksandrHovhannisyan commented 2 years ago

The GitHub Issues API uses pagination with a default of 30 per page: https://docs.github.com/en/rest/reference/issues#list-issue-comments

Need to chain requests until one fails or just add a load more button. Curious how utterances does it 🤔

AleksandrHovhannisyan commented 2 years ago

Relevant article: https://michaelheap.com/octokit-pagination/

Looks like it's quite simple with Octokit!

AleksandrHovhannisyan commented 2 years ago

Closed in 121b99c1