Skip to content

Instantly share code, notes, and snippets.

@davepcallan
Created March 12, 2024 00:34
Show Gist options
  • Save davepcallan/a743f128dc244fe4d5d87ca9b0e0db69 to your computer and use it in GitHub Desktop.
Save davepcallan/a743f128dc244fe4d5d87ca9b0e0db69 to your computer and use it in GitHub Desktop.
How to get remaining and used limits on GitHub GraphQL API
{
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