add remaining stat response docs · github/developer.github.com@6ef7a80 · GitHub
Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit 6ef7a80

Browse files
author
Justin Palmer
committed
add remaining stat response docs
1 parent 42af9be commit 6ef7a80

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

Gemfile

Lines changed: 2 additions & 0 deletions

content/v3/repos/statistics.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ is a group of commits per day, starting on `Sunday`.
4848
### Response
4949

5050
<%= headers 200 %>
51+
<%= json(:repo_stats_code_frequency) %>
5152

5253
## Get the weekly commit count for the repo owner and others
5354

@@ -56,11 +57,21 @@ is a group of commits per day, starting on `Sunday`.
5657
### Response
5758

5859
<%= headers 200 %>
60+
<%= json(:repo_stats_participation) %>
5961

6062
## Get the number of commits per hour in day
6163

6264
GET /repos/:owner/:repo/stats/punch_card
6365

6466
### Response
6567

66-
<%= headers 200 %>
68+
Each array contains the day number, hour number and number of commits:
69+
70+
* `0-6` = Sunday - Saturday
71+
* `0-23` = Hour of day
72+
* Number of commits
73+
74+
For example, `[2, 14, 25]` would indicate that there were 25 total commits, during the 2:00pm hour on Tuesdays.
75+
76+
<%= headers 200 %>
77+
<%= json(:repo_stats_punch_card) %>

lib/resources.rb

Lines changed: 17 additions & 1 deletion

0 commit comments

Comments
 (0)