When there are many results, GitHub
paginates
the data. You can use the per_page parameter to loop over the data. Here’s a
practical example: getting the total stars across a user’s repositories.
Here’s a Val that returns the star count for a username.
Run this Val, change username to your GitHub username, and schedule it to run
every fifteen minutes.
When this Val runs, it gets the last 100 events for an authenticated user. It
makes additional requests to get the reactions for any recent events that are
comments.
If the reaction was created in the last fifteen minutes, then it’s a new
comment!
You’ll receive a batch of reactions and comment links only for new reactions.