Skip to main content

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`.

GET/repos/{owner}/{repo}/stats/commit_activity
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
owner string
required
repo string
required

Responses

application/json array[Commit Activity object]

Response

items Commit Activity object

Commit Activity

days array[integer]
required
Example:
[
  0,
  3,
  26,
  20,
  39,
  1,
  0
]
total integer
required

Example: 89

week integer
required

Example: 1336280400

application/json object

Accepted

Response body object

A header with no content is returned.