Getting commits weekly distribution from GitHub API