GET/repos/{owner}/{repo}/stats/commit_activity

Get the last year of commit activity

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

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.

3 status codes
200Response
daysarray<integer>required
totalintegerrequired
weekintegerrequired
202Accepted
204A header with no content is returned.

Was this helpful?