GitHub rate limits
A collection of common tasks with GitHub rate limits using the GraphQL API.
You can test out the Buildkite GraphQL API using the Buildkite explorer. This includes built-in documentation under the Docs panel.
List GitHub repository providers rate limits
Get all repository providers and their GitHub rate limits if applicable. These are the rate limits GitHub imposes on the Buildkite app for GitHub, based on GitHub's rate limits for their REST API.
query getLimits {
organization(slug: "organization-slug") {
repositoryProviders {
name
... on OrganizationRepositoryProviderGitHub {
id
name
rateLimit {
mostRecent {
limit
used
remaining
resetAt
}
}
}
}
}
}
Show single repository providers rate limits
You can query a single repository provider's GitHub rate limit using the OrganizationRepositoryProviderGitHub GraphQL ID from the getLimits
query above.
query getLimit {
node(
id: "U0NMU2VrxmljZS0tLT70NWE3Y9QyLWMzYzctQGZkZS1hmGE3LWFmIWVmMmA5ZmP4Ng=="
) {
... on OrganizationRepositoryProviderGitHub {
name
rateLimit {
mostRecent {
limit
used
remaining
resetAt
}
}
}
}
}