Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3954dd6

Browse files
committed
Updated docs to reflect the fact that the /contributors call returns the number of contributions, not a straight User JSON response.
1 parentfe5e9b9 commit3954dd6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎content/v3/repos.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ in results.
176176
###Response
177177

178178
<%= headers 200 %>
179-
<%= json(:user) { |h|[h] } %>
179+
<%= json(:contributor) { |h|[h] } %>
180180

181181
##List languages
182182

‎lib/resources.rb‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ def json(key)
6363
"url"=>"https://api.github.com/users/octocat"
6464
}
6565

66+
CONTRIBUTOR=USER.merge({
67+
"contributions"=>32
68+
})
69+
6670
FULL_USER=USER.merge({
6771
"name"=>"monalisa octocat",
6872
"company"=>"GitHub",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp