When there are many results, GitHub
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.
Call it to get the result:
Create a GitHub personal access token:
Give it permissions to the repositories that you’re interested in getting
comment reaction notifications for.
Allow Read-only access for issues to find your recent issue comments (pull
requests are issues).
and save the token as
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
If the reaction was created in the last fifteen minutes, then it’s a new
You’ll receive a batch of reactions and comment links only for new reactions.