Skip to content

Instantly share code, notes, and snippets.

@wraithgar
Created December 16, 2021 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wraithgar/1799a02ba2b344f7573fcc39e853bb90 to your computer and use it in GitHub Desktop.
Save wraithgar/1799a02ba2b344f7573fcc39e853bb90 to your computer and use it in GitHub Desktop.
github graphql contributions query
// https://docs.github.com/en/graphql/overview/explorer
query get($username: String!, $from: DateTime!, $to: DateTime!) {
user(login: $username) {
name
contributionsCollection(from: $from, to: $to) {
commitContributionsByRepository(maxRepositories: 100) {
contributions {
totalCount
}
repository {
nameWithOwner
}
}
}
}
}
{
"username": "yourgithubusername",
"from": "2021-01-01T00:00:00.000Z",
"to":"2021-01-01T00:00:00.000Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment