class Github::Repos::Statistics

def commit_activity(*args)


github.repos.stats.commit_activity user: '...', repo: '...' { |stat| ... }
github.repos.stats.commit_activity user: '...', repo: '...'
github = Github.new

= Examples

The days array is a group of commits per day, starting on Sunday
Returns the last year of commit activity grouped by week.

Get the last year of commit activity data
def commit_activity(*args)
  arguments(args, :required => [:user, :repo])
  params = arguments.params
  response = get_request("/repos/#{user}/#{repo}/stats/commit_activity", params)
  return response unless block_given?
  response.each { |el| yield el }
end