GitHub GraphQL contribution counts



examples/github-graphql/countributions_count.gql
query($username:String!) {
  user(login: $username) {
    contributionsCollection {
      contributionCalendar {
        totalContributions
        weeks {
          contributionDays {
            contributionCount
            weekday
            date
          }
        }
      }
    }
  }
}

{
  "username": "szabgab"
}


examples/github-graphql/countributions_count_time_range.gql
query($username:String!, $from:DateTime, $to:DateTime) {
  user(login: $username) {
    contributionsCollection(from: $from, to: $to) {
      contributionCalendar {
        totalContributions
        weeks {
          contributionDays {
            contributionCount
            weekday
            date
          }
        }
      }
    }
  }
}

{
  "username": "szabgab",
  "from": "2013-03-20T00:00:00Z",
  "to": "2013-04-20T00:00:00Z"
}