GET /repos/:owner/:repo/stats/commit_activity

Hi,

Using: 

GET /repos/:owner/:repo/stats/commit_activity

I get a JSON reponse, but it includes multiple values:

[
{
"total": 0,
"week": 1556409600,
"days": [
0,
0,
0,
0,
0,
0,
0
]
},
{
"total": 0,
"week": 1557014400,
"days": [
0,
0,
0,
0,
0,
0,
0
]
},
<SNIP>
{
"total": 13,
"week": 1561248000,
"days": [
0,
0,
4,
2,
1,
6,
0
]
},
{
"total": 27,
"week": 1561852800,
"days": [
0,
0,
8,
12,
4,
3,
0
]
},

But Im not sure which is the last “right” value.

Another problem is that none of results match what the github.com repo information shows as the:

Latest commit 4b148f0 on Mar 17

so, not sure how to get the last date of commit activity date.

basically I want to know the last date the repo was touched (push, pull, commit, etc.)

Any help is appreciated.

Luis

Those are the commits by week.  Convert week from a unix timestamp into something readable and you should be able to find your most recent commits.