Created
March 12, 2024 00:34
-
-
Save davepcallan/a743f128dc244fe4d5d87ca9b0e0db69 to your computer and use it in GitHub Desktop.
How to get remaining and used limits on GitHub GraphQL API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
rateLimit { | |
limit | |
remaining | |
used | |
resetAt | |
} | |
repository(owner: "dotnet", name: "runtime") { | |
pullRequests(states: MERGED, first: 50, orderBy: {field: CREATED_AT, direction: DESC}) { | |
edges { | |
node { | |
title | |
url | |
number | |
mergedAt | |
reviewDecision | |
author { | |
login | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment