github_api 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE.txt +20 -0
- data/README.rdoc +228 -0
- data/Rakefile +52 -0
- data/features/github_api.feature +50 -0
- data/features/options.feature +4 -0
- data/features/pagination.feature +4 -0
- data/features/step_definitions/github_api_steps.rb +11 -0
- data/features/support/env.rb +13 -0
- data/lib/github_api.rb +73 -0
- data/lib/github_api/api.rb +175 -0
- data/lib/github_api/api/utils.rb +9 -0
- data/lib/github_api/authorization.rb +73 -0
- data/lib/github_api/authorizations.rb +119 -0
- data/lib/github_api/cache_control.rb +19 -0
- data/lib/github_api/client.rb +55 -0
- data/lib/github_api/compatibility.rb +23 -0
- data/lib/github_api/configuration.rb +96 -0
- data/lib/github_api/connection.rb +75 -0
- data/lib/github_api/core_ext/array.rb +14 -0
- data/lib/github_api/core_ext/hash.rb +42 -0
- data/lib/github_api/error.rb +35 -0
- data/lib/github_api/events.rb +202 -0
- data/lib/github_api/gists.rb +200 -0
- data/lib/github_api/gists/comments.rb +86 -0
- data/lib/github_api/git_data.rb +26 -0
- data/lib/github_api/git_data/blobs.rb +51 -0
- data/lib/github_api/git_data/commits.rb +78 -0
- data/lib/github_api/git_data/references.rb +113 -0
- data/lib/github_api/git_data/tags.rb +78 -0
- data/lib/github_api/git_data/trees.rb +89 -0
- data/lib/github_api/issues.rb +215 -0
- data/lib/github_api/issues/comments.rb +123 -0
- data/lib/github_api/issues/events.rb +54 -0
- data/lib/github_api/issues/labels.rb +191 -0
- data/lib/github_api/issues/milestones.rb +140 -0
- data/lib/github_api/mime_type.rb +55 -0
- data/lib/github_api/orgs.rb +95 -0
- data/lib/github_api/orgs/members.rb +120 -0
- data/lib/github_api/orgs/teams.rb +245 -0
- data/lib/github_api/pull_requests.rb +224 -0
- data/lib/github_api/pull_requests/comments.rb +144 -0
- data/lib/github_api/repos.rb +286 -0
- data/lib/github_api/repos/collaborators.rb +81 -0
- data/lib/github_api/repos/commits.rb +180 -0
- data/lib/github_api/repos/downloads.rb +155 -0
- data/lib/github_api/repos/forks.rb +48 -0
- data/lib/github_api/repos/hooks.rb +174 -0
- data/lib/github_api/repos/keys.rb +104 -0
- data/lib/github_api/repos/pub_sub_hubbub.rb +102 -0
- data/lib/github_api/repos/watching.rb +94 -0
- data/lib/github_api/request.rb +84 -0
- data/lib/github_api/request/basic_auth.rb +31 -0
- data/lib/github_api/request/caching.rb +33 -0
- data/lib/github_api/request/oauth2.rb +33 -0
- data/lib/github_api/response.rb +28 -0
- data/lib/github_api/response/helpers.rb +14 -0
- data/lib/github_api/response/jsonize.rb +26 -0
- data/lib/github_api/response/mashify.rb +24 -0
- data/lib/github_api/response/raise_error.rb +33 -0
- data/lib/github_api/result.rb +42 -0
- data/lib/github_api/users.rb +84 -0
- data/lib/github_api/users/emails.rb +49 -0
- data/lib/github_api/users/followers.rb +98 -0
- data/lib/github_api/users/keys.rb +84 -0
- data/lib/github_api/version.rb +12 -0
- data/spec/README.rdoc +22 -0
- data/spec/coverage_adapter.rb +15 -0
- data/spec/fixtures/auths/authorization.json +14 -0
- data/spec/fixtures/auths/authorizations.json +16 -0
- data/spec/fixtures/events/events.json +29 -0
- data/spec/fixtures/issues/comment.json +13 -0
- data/spec/fixtures/issues/comments.json +15 -0
- data/spec/fixtures/issues/event.json +13 -0
- data/spec/fixtures/issues/events.json +15 -0
- data/spec/fixtures/issues/issue.json +56 -0
- data/spec/fixtures/issues/issues.json +58 -0
- data/spec/fixtures/issues/milestone.json +18 -0
- data/spec/fixtures/issues/milestones.json +20 -0
- data/spec/fixtures/orgs/members.json +9 -0
- data/spec/fixtures/orgs/org.json +18 -0
- data/spec/fixtures/orgs/orgs.json +8 -0
- data/spec/fixtures/orgs/team.json +8 -0
- data/spec/fixtures/orgs/team_repos.json +29 -0
- data/spec/fixtures/orgs/teams.json +7 -0
- data/spec/fixtures/repos/branches.json +9 -0
- data/spec/fixtures/repos/collaborators.json +8 -0
- data/spec/fixtures/repos/commit.json +53 -0
- data/spec/fixtures/repos/commit_comment.json +16 -0
- data/spec/fixtures/repos/commit_comments.json +18 -0
- data/spec/fixtures/repos/commits.json +27 -0
- data/spec/fixtures/repos/contributors.json +8 -0
- data/spec/fixtures/repos/download.json +10 -0
- data/spec/fixtures/repos/download_s3.json +21 -0
- data/spec/fixtures/repos/downloads.json +12 -0
- data/spec/fixtures/repos/fork.json +27 -0
- data/spec/fixtures/repos/forks.json +29 -0
- data/spec/fixtures/repos/hook.json +15 -0
- data/spec/fixtures/repos/hooks.json +10 -0
- data/spec/fixtures/repos/key.json +6 -0
- data/spec/fixtures/repos/keys.json +8 -0
- data/spec/fixtures/repos/languages.json +4 -0
- data/spec/fixtures/repos/repo.json +90 -0
- data/spec/fixtures/repos/repo_comments.json +18 -0
- data/spec/fixtures/repos/repos.json +29 -0
- data/spec/fixtures/repos/tags.json +11 -0
- data/spec/fixtures/repos/teams.json +7 -0
- data/spec/fixtures/repos/watched.json +29 -0
- data/spec/fixtures/repos/watchers.json +8 -0
- data/spec/fixtures/users/user.json +32 -0
- data/spec/github/api_spec.rb +25 -0
- data/spec/github/authorization_spec.rb +176 -0
- data/spec/github/authorizations_spec.rb +242 -0
- data/spec/github/client_spec.rb +50 -0
- data/spec/github/core_ext/hash_spec.rb +44 -0
- data/spec/github/events_spec.rb +491 -0
- data/spec/github/gists/comments_spec.rb +5 -0
- data/spec/github/gists_spec.rb +5 -0
- data/spec/github/git_data/blobs_spec.rb +5 -0
- data/spec/github/git_data/commits_spec.rb +5 -0
- data/spec/github/git_data/references_spec.rb +5 -0
- data/spec/github/git_data/tags_spec.rb +5 -0
- data/spec/github/git_data/trees_spec.rb +5 -0
- data/spec/github/git_data_spec.rb +5 -0
- data/spec/github/issues/comments_spec.rb +254 -0
- data/spec/github/issues/events_spec.rb +153 -0
- data/spec/github/issues/labels_spec.rb +5 -0
- data/spec/github/issues/milestones_spec.rb +260 -0
- data/spec/github/issues_spec.rb +287 -0
- data/spec/github/mime_type_spec.rb +70 -0
- data/spec/github/orgs/members_spec.rb +275 -0
- data/spec/github/orgs/teams_spec.rb +563 -0
- data/spec/github/orgs_spec.rb +160 -0
- data/spec/github/repos/collaborators_spec.rb +169 -0
- data/spec/github/repos/commits_spec.rb +424 -0
- data/spec/github/repos/downloads_spec.rb +247 -0
- data/spec/github/repos/forks_spec.rb +108 -0
- data/spec/github/repos/hooks_spec.rb +333 -0
- data/spec/github/repos/keys_spec.rb +217 -0
- data/spec/github/repos/pub_sub_hubbub_spec.rb +83 -0
- data/spec/github/repos/watching_spec.rb +222 -0
- data/spec/github/repos_spec.rb +571 -0
- data/spec/github/result_spec.rb +43 -0
- data/spec/github/users_spec.rb +140 -0
- data/spec/github_spec.rb +109 -0
- data/spec/spec_helper.rb +86 -0
- data/spec/support/base.rb +13 -0
- metadata +149 -4
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
|
3
|
+
"commit": {
|
|
4
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
|
5
|
+
"sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Monalisa Octocat",
|
|
8
|
+
"email": "support@github.com",
|
|
9
|
+
"date": "2011-04-14T16:00:49Z"
|
|
10
|
+
},
|
|
11
|
+
"committer": {
|
|
12
|
+
"name": "Monalisa Octocat",
|
|
13
|
+
"email": "support@github.com",
|
|
14
|
+
"date": "2011-04-14T16:00:49Z"
|
|
15
|
+
},
|
|
16
|
+
"message": "Fix all the bugs",
|
|
17
|
+
"tree": {
|
|
18
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
|
19
|
+
"sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"author": {
|
|
23
|
+
"login": "octocat",
|
|
24
|
+
"id": 1,
|
|
25
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
26
|
+
"url": "https://api.github.com/users/octocat"
|
|
27
|
+
},
|
|
28
|
+
"committer": {
|
|
29
|
+
"login": "octocat",
|
|
30
|
+
"id": 1,
|
|
31
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
32
|
+
"url": "https://api.github.com/users/octocat"
|
|
33
|
+
},
|
|
34
|
+
"parents": [
|
|
35
|
+
{
|
|
36
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
|
37
|
+
"sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"stats": {
|
|
41
|
+
"additions": 104,
|
|
42
|
+
"deletions": 4,
|
|
43
|
+
"total": 108
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
{
|
|
47
|
+
"filename": "file1.txt",
|
|
48
|
+
"additions": 10,
|
|
49
|
+
"deletions": 2,
|
|
50
|
+
"total": 12
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
|
|
3
|
+
"id": 1,
|
|
4
|
+
"body": "Great stuff",
|
|
5
|
+
"path": "file1.txt",
|
|
6
|
+
"position": 4,
|
|
7
|
+
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
|
8
|
+
"user": {
|
|
9
|
+
"login": "octocat",
|
|
10
|
+
"id": 1,
|
|
11
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
12
|
+
"url": "https://api.github.com/users/octocat"
|
|
13
|
+
},
|
|
14
|
+
"created_at": "2011-04-14T16:00:49Z",
|
|
15
|
+
"updated_at": "2011-04-14T16:00:49Z"
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
|
|
4
|
+
"id": 1,
|
|
5
|
+
"body": "Great stuff",
|
|
6
|
+
"path": "file1.txt",
|
|
7
|
+
"position": 4,
|
|
8
|
+
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
|
9
|
+
"user": {
|
|
10
|
+
"login": "octocat",
|
|
11
|
+
"id": 1,
|
|
12
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
13
|
+
"url": "https://api.github.com/users/octocat"
|
|
14
|
+
},
|
|
15
|
+
"created_at": "2011-04-14T16:00:49Z",
|
|
16
|
+
"updated_at": "2011-04-14T16:00:49Z"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
|
|
4
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd",
|
|
5
|
+
"author": {
|
|
6
|
+
"date": "2010-04-10T14:10:01-07:00",
|
|
7
|
+
"name": "Scott Chacon",
|
|
8
|
+
"email": "schacon@gmail.com"
|
|
9
|
+
},
|
|
10
|
+
"committer": {
|
|
11
|
+
"date": "2010-04-10T14:10:01-07:00",
|
|
12
|
+
"name": "Scott Chacon",
|
|
13
|
+
"email": "schacon@gmail.com"
|
|
14
|
+
},
|
|
15
|
+
"message": "added readme, because im a good github citizen\n",
|
|
16
|
+
"tree": {
|
|
17
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb",
|
|
18
|
+
"sha": "691272480426f78a0138979dd3ce63b77f706feb"
|
|
19
|
+
},
|
|
20
|
+
"parents": [
|
|
21
|
+
{
|
|
22
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5",
|
|
23
|
+
"sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/downloads/1",
|
|
3
|
+
"html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg",
|
|
4
|
+
"id": 1,
|
|
5
|
+
"name": "new_file.jpg",
|
|
6
|
+
"description": "Description of your download",
|
|
7
|
+
"size": 1024,
|
|
8
|
+
"download_count": 40,
|
|
9
|
+
"content_type": ".jpg"
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/downloads/1",
|
|
3
|
+
"html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg",
|
|
4
|
+
"id": 1,
|
|
5
|
+
"name": "new_file.jpg",
|
|
6
|
+
"description": "Description of your download",
|
|
7
|
+
"size": 1024,
|
|
8
|
+
"download_count": 40,
|
|
9
|
+
"content_type": ".jpg",
|
|
10
|
+
"policy": "ewogICAg...",
|
|
11
|
+
"signature": "mwnFDC...",
|
|
12
|
+
"bucket": "github",
|
|
13
|
+
"accesskeyid": "1ABCDEFG...",
|
|
14
|
+
"path": "downloads/ocotocat/Hello-World/new_file.jpg",
|
|
15
|
+
"acl": "public-read",
|
|
16
|
+
"expirationdate": "2011-04-14T16:00:49Z",
|
|
17
|
+
"prefix": "downloads/octocat/Hello-World/",
|
|
18
|
+
"mime_type": "image/jpeg",
|
|
19
|
+
"redirect": false,
|
|
20
|
+
"s3_url": "https://github.s3.amazonaws.com/"
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/downloads/1",
|
|
4
|
+
"html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg",
|
|
5
|
+
"id": 1,
|
|
6
|
+
"name": "new_file.jpg",
|
|
7
|
+
"description": "Description of your download",
|
|
8
|
+
"size": 1024,
|
|
9
|
+
"download_count": 40,
|
|
10
|
+
"content_type": ".jpg"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"url": "https://api.github.com/repos/octocat/Hello-World",
|
|
3
|
+
"html_url": "https://github.com/octocat/Hello-World",
|
|
4
|
+
"clone_url": "https://github.com/octocat/Hello-World.git",
|
|
5
|
+
"git_url": "git://github.com/octocat/Hello-World.git",
|
|
6
|
+
"ssh_url": "git@github.com:octocat/Hello-World.git",
|
|
7
|
+
"svn_url": "https://svn.github.com/octocat/Hello-World",
|
|
8
|
+
"owner": {
|
|
9
|
+
"login": "octocat",
|
|
10
|
+
"id": 1,
|
|
11
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
12
|
+
"url": "https://api.github.com/users/octocat"
|
|
13
|
+
},
|
|
14
|
+
"name": "Hello-World",
|
|
15
|
+
"description": "This your first repo!",
|
|
16
|
+
"homepage": "https://github.com",
|
|
17
|
+
"language": null,
|
|
18
|
+
"private": false,
|
|
19
|
+
"fork": false,
|
|
20
|
+
"forks": 9,
|
|
21
|
+
"watchers": 80,
|
|
22
|
+
"size": 108,
|
|
23
|
+
"master_branch": "master",
|
|
24
|
+
"open_issues": 0,
|
|
25
|
+
"pushed_at": "2011-01-26T19:06:43Z",
|
|
26
|
+
"created_at": "2011-01-26T19:01:12Z"
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"url": "https://api.github.com/repos/octocat/Hello-World",
|
|
4
|
+
"html_url": "https://github.com/octocat/Hello-World",
|
|
5
|
+
"clone_url": "https://github.com/octocat/Hello-World.git",
|
|
6
|
+
"git_url": "git://github.com/octocat/Hello-World.git",
|
|
7
|
+
"ssh_url": "git@github.com:octocat/Hello-World.git",
|
|
8
|
+
"svn_url": "https://svn.github.com/octocat/Hello-World",
|
|
9
|
+
"owner": {
|
|
10
|
+
"login": "octocat",
|
|
11
|
+
"id": 1,
|
|
12
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
13
|
+
"url": "https://api.github.com/users/octocat"
|
|
14
|
+
},
|
|
15
|
+
"name": "Hello-World",
|
|
16
|
+
"description": "This your first repo!",
|
|
17
|
+
"homepage": "https://github.com",
|
|
18
|
+
"language": null,
|
|
19
|
+
"private": false,
|
|
20
|
+
"fork": false,
|
|
21
|
+
"forks": 9,
|
|
22
|
+
"watchers": 80,
|
|
23
|
+
"size": 108,
|
|
24
|
+
"master_branch": "master",
|
|
25
|
+
"open_issues": 0,
|
|
26
|
+
"pushed_at": "2011-01-26T19:06:43Z",
|
|
27
|
+
"created_at": "2011-01-26T19:01:12Z"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/hooks/1",
|
|
3
|
+
"updated_at": "2011-09-06T20:39:23Z",
|
|
4
|
+
"created_at": "2011-09-06T17:26:27Z",
|
|
5
|
+
"name": "web",
|
|
6
|
+
"events": [
|
|
7
|
+
"push"
|
|
8
|
+
],
|
|
9
|
+
"active": true,
|
|
10
|
+
"config": {
|
|
11
|
+
"url": "http://example.com",
|
|
12
|
+
"content_type": "json"
|
|
13
|
+
},
|
|
14
|
+
"id": 1
|
|
15
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"url": "https://api.github.com/repos/octocat/Hello-World",
|
|
3
|
+
"html_url": "https://github.com/octocat/Hello-World",
|
|
4
|
+
"clone_url": "https://github.com/octocat/Hello-World.git",
|
|
5
|
+
"git_url": "git://github.com/octocat/Hello-World.git",
|
|
6
|
+
"ssh_url": "git@github.com:octocat/Hello-World.git",
|
|
7
|
+
"svn_url": "https://svn.github.com/octocat/Hello-World",
|
|
8
|
+
"owner": {
|
|
9
|
+
"login": "octocat",
|
|
10
|
+
"id": 1,
|
|
11
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
12
|
+
"url": "https://api.github.com/users/octocat"
|
|
13
|
+
},
|
|
14
|
+
"name": "Hello-World",
|
|
15
|
+
"description": "This your first repo!",
|
|
16
|
+
"homepage": "https://github.com",
|
|
17
|
+
"language": null,
|
|
18
|
+
"private": false,
|
|
19
|
+
"fork": false,
|
|
20
|
+
"forks": 9,
|
|
21
|
+
"watchers": 80,
|
|
22
|
+
"size": 108,
|
|
23
|
+
"master_branch": "master",
|
|
24
|
+
"open_issues": 0,
|
|
25
|
+
"pushed_at": "2011-01-26T19:06:43Z",
|
|
26
|
+
"created_at": "2011-01-26T19:01:12Z",
|
|
27
|
+
"organization": {
|
|
28
|
+
"login": "octocat",
|
|
29
|
+
"id": 1,
|
|
30
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
31
|
+
"url": "https://api.github.com/users/octocat",
|
|
32
|
+
"type": "Organization"
|
|
33
|
+
},
|
|
34
|
+
"parent": {
|
|
35
|
+
"url": "https://api.github.com/repos/octocat/Hello-World",
|
|
36
|
+
"html_url": "https://github.com/octocat/Hello-World",
|
|
37
|
+
"clone_url": "https://github.com/octocat/Hello-World.git",
|
|
38
|
+
"git_url": "git://github.com/octocat/Hello-World.git",
|
|
39
|
+
"svn_url": "https://svn.github.com/octocat/Hello-World",
|
|
40
|
+
"owner": {
|
|
41
|
+
"login": "octocat",
|
|
42
|
+
"id": 1,
|
|
43
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
44
|
+
"url": "https://api.github.com/users/octocat"
|
|
45
|
+
},
|
|
46
|
+
"name": "Hello-World",
|
|
47
|
+
"description": "This your first repo!",
|
|
48
|
+
"homepage": "https://github.com",
|
|
49
|
+
"language": null,
|
|
50
|
+
"private": false,
|
|
51
|
+
"fork": false,
|
|
52
|
+
"forks": 9,
|
|
53
|
+
"watchers": 80,
|
|
54
|
+
"size": 108,
|
|
55
|
+
"master_branch": "master",
|
|
56
|
+
"open_issues": 0,
|
|
57
|
+
"pushed_at": "2011-01-26T19:06:43Z",
|
|
58
|
+
"created_at": "2011-01-26T19:01:12Z"
|
|
59
|
+
},
|
|
60
|
+
"source": {
|
|
61
|
+
"url": "https://api.github.com/repos/octocat/Hello-World",
|
|
62
|
+
"html_url": "https://github.com/octocat/Hello-World",
|
|
63
|
+
"clone_url": "https://github.com/octocat/Hello-World.git",
|
|
64
|
+
"git_url": "git://github.com/octocat/Hello-World.git",
|
|
65
|
+
"ssh_url": "git@github.com:octocat/Hello-World.git",
|
|
66
|
+
"svn_url": "https://svn.github.com/octocat/Hello-World",
|
|
67
|
+
"owner": {
|
|
68
|
+
"login": "octocat",
|
|
69
|
+
"id": 1,
|
|
70
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
71
|
+
"url": "https://api.github.com/users/octocat"
|
|
72
|
+
},
|
|
73
|
+
"name": "Hello-World",
|
|
74
|
+
"description": "This your first repo!",
|
|
75
|
+
"homepage": "https://github.com",
|
|
76
|
+
"language": null,
|
|
77
|
+
"private": false,
|
|
78
|
+
"fork": false,
|
|
79
|
+
"forks": 9,
|
|
80
|
+
"watchers": 80,
|
|
81
|
+
"size": 108,
|
|
82
|
+
"master_branch": "master",
|
|
83
|
+
"open_issues": 0,
|
|
84
|
+
"pushed_at": "2011-01-26T19:06:43Z",
|
|
85
|
+
"created_at": "2011-01-26T19:01:12Z"
|
|
86
|
+
},
|
|
87
|
+
"has_issues": true,
|
|
88
|
+
"has_wiki": true,
|
|
89
|
+
"has_downloads": true
|
|
90
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
|
|
4
|
+
"id": 1,
|
|
5
|
+
"body": "Great stuff",
|
|
6
|
+
"path": "file1.txt",
|
|
7
|
+
"position": 4,
|
|
8
|
+
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
|
9
|
+
"user": {
|
|
10
|
+
"login": "octocat",
|
|
11
|
+
"id": 1,
|
|
12
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
13
|
+
"url": "https://api.github.com/users/octocat"
|
|
14
|
+
},
|
|
15
|
+
"created_at": "2011-04-14T16:00:49Z",
|
|
16
|
+
"updated_at": "2011-04-14T16:00:49Z"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"url": "https://api.github.com/repos/octocat/Hello-World",
|
|
4
|
+
"html_url": "https://github.com/octocat/Hello-World",
|
|
5
|
+
"clone_url": "https://github.com/octocat/Hello-World.git",
|
|
6
|
+
"git_url": "git://github.com/octocat/Hello-World.git",
|
|
7
|
+
"ssh_url": "git@github.com:octocat/Hello-World.git",
|
|
8
|
+
"svn_url": "https://svn.github.com/octocat/Hello-World",
|
|
9
|
+
"owner": {
|
|
10
|
+
"login": "octocat",
|
|
11
|
+
"id": 1,
|
|
12
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
13
|
+
"url": "https://api.github.com/users/octocat"
|
|
14
|
+
},
|
|
15
|
+
"name": "Hello-World",
|
|
16
|
+
"description": "This your first repo!",
|
|
17
|
+
"homepage": "https://github.com",
|
|
18
|
+
"language": null,
|
|
19
|
+
"private": false,
|
|
20
|
+
"fork": false,
|
|
21
|
+
"forks": 9,
|
|
22
|
+
"watchers": 80,
|
|
23
|
+
"size": 108,
|
|
24
|
+
"master_branch": "master",
|
|
25
|
+
"open_issues": 0,
|
|
26
|
+
"pushed_at": "2011-01-26T19:06:43Z",
|
|
27
|
+
"created_at": "2011-01-26T19:01:12Z"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "v0.1",
|
|
4
|
+
"commit": {
|
|
5
|
+
"sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc",
|
|
6
|
+
"url": "https://api.github.com/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc"
|
|
7
|
+
},
|
|
8
|
+
"zipball_url": "https://github.com/octocat/Hello-World/zipball/v0.1",
|
|
9
|
+
"tarball_url": "https://github.com/octocat/Hello-World/tarball/v0.1"
|
|
10
|
+
}
|
|
11
|
+
]
|