8000 Merge pull request #839 from github/repo-sample-response · Git-Beadup/developer.github.com@35edbf7 · GitHub < 8000 meta name="twitter:title" content="Merge pull request #839 from github/repo-sample-response · Git-Beadup/developer.github.com@35edbf7" />
[go: up one dir, main page]

Skip to content

Commit 35edbf7

Browse files
committed
Merge pull request github#839 from github/repo-sample-response
Update sample repository response
2 parents b4574d3 + 955d35a commit 35edbf7

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

lib/resources.rb

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,46 @@ def fetch_content(key)
266266
}
267267

268268
REPO ||= SIMPLE_REPO.merge({
269+
"archive_url" => "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
270+
"assignees_url" => "http://api.github.com/repos/octocat/Hello-World/assignees{/user}",
271+
"blobs_url" => "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
272+
"branches_url" => "http://api.github.com/repos/octocat/Hello-World/branches{/branch}",
269273
"clone_url" => "https://github.com/octocat/Hello-World.git",
270-
"git_url" => "git://github.com/octocat/Hello-World.git",
274+
"collaborators_url" => "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
275+
"comments_url" => "http://api.github.com/repos/octocat/Hello-World/comments{/number}",
276+
"commits_url" => "http://api.github.com/repos/octocat/Hello-World/commits{/sha}",
277+
"compare_url" => "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
278+
"contents_url" => "http://api.github.com/repos/octocat/Hello-World/contents/{+path}",
279+
"contributors_url" => "http://api.github.com/repos/octocat/Hello-World/contributors",
280+
"downloads_url" => "http://api.github.com/repos/octocat/Hello-World/downloads",
281+
"events_url" => "http://api.github.com/repos/octocat/Hello-World/events",
282+
"forks_url" => "http://api.github.com/repos/octocat/Hello-World/forks",
283+
"git_commits_url" => "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
284+
"git_refs_url" => "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
285+
"git_tags_url" => "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
286+
"git_url" => "git:github.com/octocat/Hello-World.git",
287+
"hooks_url" => "http://api.github.com/repos/octocat/Hello-World/hooks",
288+
"issue_comment_url" => "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
289+
"issue_events_url" => "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
290+
"issues_url" => "http://api.github.com/repos/octocat/Hello-World/issues{/number}",
291+
"keys_url" => "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
292+
"labels_url" => "http://api.github.com/repos/octocat/Hello-World/labels{/name}",
293+
"languages_url" => "http://api.github.com/repos/octocat/Hello-World/languages",
294+
"merges_url" => "http://api.github.com/repos/octocat/Hello-World/merges",
295+
"milestones_url" => "http://api.github.com/repos/octocat/Hello-World/milestones{/number}",
296+
"mirror_url" => "git:git.example.com/octocat/Hello-World",
297+
"notifications_url" => "http://api.github.com/repos/octocat/Hello-World/notifications{?since, all, participating}",
298+
"pulls_url" => "http://api.github.com/repos/octocat/Hello-World/pulls{/number}",
299+
"releases_url" => "http://api.github.com/repos/octocat/Hello-World/releases{/id}",
271300
"ssh_url" => "git@github.com:octocat/Hello-World.git",
301+
"stargazers_url" => "http://api.github.com/repos/octocat/Hello-World/stargazers",
302+
"statuses_url" => "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
303+
"subscribers_url" => "http://api.github.com/repos/octocat/Hello-World/subscribers",
304+
"subscription_url" => "http://api.github.com/repos/octocat/Hello-World/subscription",
272305
"svn_url" => "https://svn.github.com/octocat/Hello-World",
273-
"mirror_url" => "git://git.example.com/octocat/Hello-World",
306+
"tags_url" => "http://api.github.com/repos/octocat/Hello-World/tags",
307+
"teams_url" => "http://api.github.com/repos/octocat/Hello-World/teams",
308+
"trees_url" => "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
274309
"homepage" => "https://github.com",
275310
"language" => nil,
276311
"forks_count" => 9,

0 commit comments

Comments
 (0)
0