git_reflow 0.8.10 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/multi-ruby-tests.yml +33 -0
  3. data/.rubocop.yml +2 -0
  4. data/.ruby-version +1 -1
  5. data/Appraisals +1 -6
  6. data/CHANGELOG.md +466 -348
  7. data/Gemfile.lock +100 -70
  8. data/LICENSE +20 -20
  9. data/README.md +36 -12
  10. data/Rakefile +15 -8
  11. data/Workflow +3 -0
  12. data/bin/console +7 -7
  13. data/bin/setup +6 -6
  14. data/exe/git-reflow +14 -30
  15. data/git_reflow.gemspec +25 -24
  16. data/lib/git_reflow.rb +3 -14
  17. data/lib/git_reflow/config.rb +52 -17
  18. data/lib/git_reflow/git_helpers.rb +69 -22
  19. data/lib/git_reflow/git_server/base.rb +68 -68
  20. data/lib/git_reflow/git_server/git_hub.rb +53 -40
  21. data/lib/git_reflow/git_server/git_hub/pull_request.rb +25 -17
  22. data/lib/git_reflow/git_server/pull_request.rb +19 -3
  23. data/lib/git_reflow/merge_error.rb +9 -9
  24. data/lib/git_reflow/rspec.rb +1 -0
  25. data/lib/git_reflow/rspec/command_line_helpers.rb +23 -6
  26. data/lib/git_reflow/rspec/stub_helpers.rb +13 -13
  27. data/lib/git_reflow/rspec/workflow_helpers.rb +18 -0
  28. data/lib/git_reflow/sandbox.rb +16 -6
  29. data/lib/git_reflow/version.rb +1 -1
  30. data/lib/git_reflow/workflow.rb +305 -10
  31. data/lib/git_reflow/workflows/FlatMergeWorkflow +38 -0
  32. data/lib/git_reflow/workflows/core.rb +208 -79
  33. data/spec/fixtures/authentication_failure.json +3 -0
  34. data/spec/fixtures/awesome_workflow.rb +2 -6
  35. data/spec/fixtures/git/git_config +7 -7
  36. data/spec/fixtures/issues/comment.json.erb +27 -27
  37. data/spec/fixtures/issues/comments.json +29 -29
  38. data/spec/fixtures/issues/comments.json.erb +15 -15
  39. data/spec/fixtures/pull_requests/comment.json.erb +45 -45
  40. data/spec/fixtures/pull_requests/comments.json +47 -47
  41. data/spec/fixtures/pull_requests/comments.json.erb +15 -15
  42. data/spec/fixtures/pull_requests/commits.json +29 -29
  43. data/spec/fixtures/pull_requests/external_pull_request.json +145 -145
  44. data/spec/fixtures/pull_requests/pull_request.json +142 -142
  45. data/spec/fixtures/pull_requests/pull_request.json.erb +142 -142
  46. data/spec/fixtures/pull_requests/pull_request_branch_nonexistent_error.json +32 -0
  47. data/spec/fixtures/pull_requests/pull_request_exists_error.json +32 -32
  48. data/spec/fixtures/pull_requests/pull_requests.json +136 -136
  49. data/spec/fixtures/repositories/commit.json +53 -53
  50. data/spec/fixtures/repositories/commit.json.erb +53 -53
  51. data/spec/fixtures/repositories/commits.json.erb +13 -13
  52. data/spec/fixtures/repositories/statuses.json +31 -31
  53. data/spec/fixtures/users/user.json +32 -0
  54. data/spec/lib/git_reflow/git_helpers_spec.rb +115 -12
  55. data/spec/lib/git_reflow/git_server/git_hub/pull_request_spec.rb +6 -6
  56. data/spec/lib/git_reflow/git_server/git_hub_spec.rb +77 -3
  57. data/spec/lib/git_reflow/git_server/pull_request_spec.rb +41 -7
  58. data/spec/lib/git_reflow/workflow_spec.rb +259 -14
  59. data/spec/lib/git_reflow/workflows/core_spec.rb +224 -65
  60. data/spec/lib/git_reflow/workflows/flat_merge_spec.rb +17 -6
  61. data/spec/lib/git_reflow_spec.rb +2 -25
  62. data/spec/spec_helper.rb +3 -0
  63. data/spec/support/github_helpers.rb +1 -1
  64. data/spec/support/mock_pull_request.rb +17 -17
  65. data/spec/support/web_mocks.rb +39 -39
  66. metadata +52 -53
  67. data/circle.yml +0 -26
  68. data/lib/git_reflow/commands/deliver.rb +0 -10
  69. data/lib/git_reflow/commands/refresh.rb +0 -20
  70. data/lib/git_reflow/commands/review.rb +0 -13
  71. data/lib/git_reflow/commands/setup.rb +0 -11
  72. data/lib/git_reflow/commands/stage.rb +0 -9
  73. data/lib/git_reflow/commands/start.rb +0 -18
  74. data/lib/git_reflow/commands/status.rb +0 -7
  75. data/lib/git_reflow/workflows/flat_merge.rb +0 -10
  76. data/spec/fixtures/workflow_with_super.rb +0 -8
@@ -1,142 +1,142 @@
1
- {
2
- "url": "https://api.github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>",
3
- "html_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>",
4
- "diff_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>.diff",
5
- "patch_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>.patch",
6
- "issue_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>/issue/<%= number %>",
7
- "number": <%= number %>,
8
- "state": "<%= state %>",
9
- "title": "<%= title %>",
10
- "body": "<%= body %>",
11
- "created_at": "2011-01-26T19:01:12Z",
12
- "updated_at": "2011-01-26T19:01:12Z",
13
- "closed_at": "2011-01-26T19:01:12Z",
14
- "merged_at": "2011-01-26T19:01:12Z",
15
- "_links": {
16
- "self": {
17
- "href": "https://api.github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>"
18
- },
19
- "html": {
20
- "href": "https://github.com/<%= repo_owner %>/<%= repo_name %>/pull/<%= number %>"
21
- },
22
- "comments": {
23
- "href": "https://api.github.com/<%= repo_owner %>/<%= repo_name %>/issues/<%= number %>/comments"
24
- },
25
- "review_comments": {
26
- "href": "https://api.github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>/comments"
27
- }
28
- },
29
- "merged": false,
30
- "mergeable": true,
31
- "merged_by": {
32
- "login": "reenhanced",
33
- "id": 1,
34
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
35
- "gravatar_id": "somehexcode",
36
- "url": "https://api.github.com/users/reenhanced"
37
- },
38
- "comments": 10,
39
- "commits": 3,
40
- "additions": 100,
41
- "deletions": 3,
42
- "changed_files": 5,
43
- "user": {
44
- "login": "<%= owner %>",
45
- "id": 1,
46
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
47
- "gravatar_id": "",
48
- "url": "https://api.github.com/users/<%= owner %>",
49
- "html_url": "https://github.com/<%= owner %>",
50
- "followers_url": "https://api.github.com/users/<%= owner %>/followers",
51
- "following_url": "https://api.github.com/users/<%= owner %>/following{/other_user}",
52
- "gists_url": "https://api.github.com/users/<%= owner %>/gists{/gist_id}",
53
- "starred_url": "https://api.github.com/users/<%= owner %>/starred{/owner}{/repo}",
54
- "subscriptions_url": "https://api.github.com/users/<%= owner %>/subscriptions",
55
- "organizations_url": "https://api.github.com/users/<%= owner %>/orgs",
56
- "repos_url": "https://api.github.com/users/<%= owner %>/repos",
57
- "events_url": "https://api.github.com/users/<%= owner %>/events{/privacy}",
58
- "received_events_url": "https://api.github.com/users/<%= owner %>/received_events",
59
- "type": "User",
60
- "site_admin": false
61
- },
62
- "head": {
63
- "label": "<%= feature_branch %>",
64
- "ref": "<%= feature_branch %>",
65
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
66
- "user": {
67
- "login": "<%= owner %>",
68
- "id": 1,
69
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
70
- "gravatar_id": "somehexcode",
71
- "url": "https://api.github.com/users/<%= owner %>"
72
- },
73
- "repo": {
74
- "url": "https://api.github.com/repos/<%= feature_repo_owner %>/<%= repo_name %>",
75
- "html_url": "https://github.com/<%= feature_repo_owner %>/<%= repo_name %>",
76
- "clone_url": "https://github.com/<%= feature_repo_owner %>/<%= repo_name %>.git",
77
- "git_url": "git://github.com/<%= feature_repo_owner %>/<%= repo_name %>.git",
78
- "ssh_url": "git@github.com:<%= feature_repo_owner %>/<%= repo_name %>.git",
79
- "svn_url": "https://svn.github.com/<%= feature_repo_owner %>/<%= repo_name %>",
80
- "owner": {
81
- "login": "<%= owner %>",
82
- "id": 1,
83
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
84
- "gravatar_id": "somehexcode",
85
- "url": "https://api.github.com/users/<%= owner %>"
86
- },
87
- "name": "<%= repo_name %>",
88
- "description": "This your first repo!",
89
- "homepage": "https://github.com",
90
- "language": null,
91
- "private": false,
92
- "fork": false,
93
- "forks": 9,
94
- "watchers": 80,
95
- "size": 108,
96
- "master_branch": "master",
97
- "open_issues": 1,
98
- "pushed_at": "2011-01-26T19:06:43Z",
99
- "created_at": "2011-01-26T19:01:12Z"
100
- }
101
- },
102
- "base": {
103
- "label": "<%= base_branch %>",
104
- "ref": "<%= base_branch %>",
105
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
106
- "user": {
107
- "login": "reenhanced",
108
- "id": 1,
109
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
110
- "gravatar_id": "somehexcode",
111
- "url": "https://api.github.com/users/reenhanced"
112
- },
113
- "repo": {
114
- "url": "https://api.github.com/repos/<%= repo_owner %>/<%= repo_name %>",
115
- "html_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>",
116
- "clone_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>.git",
117
- "git_url": "git://github.com/<%= repo_owner %>/<%= repo_name %>.git",
118
- "ssh_url": "git@github.com:<%= repo_owner %>/<%= repo_name %>.git",
119
- "svn_url": "https://svn.github.com/<%= repo_owner %>/<%= repo_name %>",
120
- "owner": {
121
- "login": "reenhanced",
122
- "id": 1,
123
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
124
- "gravatar_id": "somehexcode",
125
- "url": "https://api.github.com/users/reenhanced"
126
- },
127
- "name": "repo",
128
- "description": "This your first repo!",
129
- "homepage": "https://github.com",
130
- "language": null,
131
- "private": false,
132
- "fork": false,
133
- "forks": 9,
134
- "watchers": 80,
135
- "size": 108,
136
- "master_branch": "master",
137
- "open_issues": 1,
138
- "pushed_at": "2011-01-26T19:06:43Z",
139
- "created_at": "2011-01-26T19:01:12Z"
140
- }
141
- }
142
- }
1
+ {
2
+ "url": "https://api.github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>",
3
+ "html_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>",
4
+ "diff_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>.diff",
5
+ "patch_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>.patch",
6
+ "issue_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>/issue/<%= number %>",
7
+ "number": <%= number %>,
8
+ "state": "<%= state %>",
9
+ "title": "<%= title %>",
10
+ "body": "<%= body %>",
11
+ "created_at": "2011-01-26T19:01:12Z",
12
+ "updated_at": "2011-01-26T19:01:12Z",
13
+ "closed_at": "2011-01-26T19:01:12Z",
14
+ "merged_at": "2011-01-26T19:01:12Z",
15
+ "_links": {
16
+ "self": {
17
+ "href": "https://api.github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>"
18
+ },
19
+ "html": {
20
+ "href": "https://github.com/<%= repo_owner %>/<%= repo_name %>/pull/<%= number %>"
21
+ },
22
+ "comments": {
23
+ "href": "https://api.github.com/<%= repo_owner %>/<%= repo_name %>/issues/<%= number %>/comments"
24
+ },
25
+ "review_comments": {
26
+ "href": "https://api.github.com/<%= repo_owner %>/<%= repo_name %>/pulls/<%= number %>/comments"
27
+ }
28
+ },
29
+ "merged": false,
30
+ "mergeable": true,
31
+ "merged_by": {
32
+ "login": "reenhanced",
33
+ "id": 1,
34
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
35
+ "gravatar_id": "somehexcode",
36
+ "url": "https://api.github.com/users/reenhanced"
37
+ },
38
+ "comments": 10,
39
+ "commits": 3,
40
+ "additions": 100,
41
+ "deletions": 3,
42
+ "changed_files": 5,
43
+ "user": {
44
+ "login": "<%= owner %>",
45
+ "id": 1,
46
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
47
+ "gravatar_id": "",
48
+ "url": "https://api.github.com/users/<%= owner %>",
49
+ "html_url": "https://github.com/<%= owner %>",
50
+ "followers_url": "https://api.github.com/users/<%= owner %>/followers",
51
+ "following_url": "https://api.github.com/users/<%= owner %>/following{/other_user}",
52
+ "gists_url": "https://api.github.com/users/<%= owner %>/gists{/gist_id}",
53
+ "starred_url": "https://api.github.com/users/<%= owner %>/starred{/owner}{/repo}",
54
+ "subscriptions_url": "https://api.github.com/users/<%= owner %>/subscriptions",
55
+ "organizations_url": "https://api.github.com/users/<%= owner %>/orgs",
56
+ "repos_url": "https://api.github.com/users/<%= owner %>/repos",
57
+ "events_url": "https://api.github.com/users/<%= owner %>/events{/privacy}",
58
+ "received_events_url": "https://api.github.com/users/<%= owner %>/received_events",
59
+ "type": "User",
60
+ "site_admin": false
61
+ },
62
+ "head": {
63
+ "label": "<%= feature_branch %>",
64
+ "ref": "<%= feature_branch %>",
65
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
66
+ "user": {
67
+ "login": "<%= owner %>",
68
+ "id": 1,
69
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
70
+ "gravatar_id": "somehexcode",
71
+ "url": "https://api.github.com/users/<%= owner %>"
72
+ },
73
+ "repo": {
74
+ "url": "https://api.github.com/repos/<%= feature_repo_owner %>/<%= repo_name %>",
75
+ "html_url": "https://github.com/<%= feature_repo_owner %>/<%= repo_name %>",
76
+ "clone_url": "https://github.com/<%= feature_repo_owner %>/<%= repo_name %>.git",
77
+ "git_url": "git://github.com/<%= feature_repo_owner %>/<%= repo_name %>.git",
78
+ "ssh_url": "git@github.com:<%= feature_repo_owner %>/<%= repo_name %>.git",
79
+ "svn_url": "https://svn.github.com/<%= feature_repo_owner %>/<%= repo_name %>",
80
+ "owner": {
81
+ "login": "<%= owner %>",
82
+ "id": 1,
83
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
84
+ "gravatar_id": "somehexcode",
85
+ "url": "https://api.github.com/users/<%= owner %>"
86
+ },
87
+ "name": "<%= repo_name %>",
88
+ "description": "This your first repo!",
89
+ "homepage": "https://github.com",
90
+ "language": null,
91
+ "private": false,
92
+ "fork": false,
93
+ "forks": 9,
94
+ "watchers": 80,
95
+ "size": 108,
96
+ "master_branch": "master",
97
+ "open_issues": 1,
98
+ "pushed_at": "2011-01-26T19:06:43Z",
99
+ "created_at": "2011-01-26T19:01:12Z"
100
+ }
101
+ },
102
+ "base": {
103
+ "label": "<%= base_branch %>",
104
+ "ref": "<%= base_branch %>",
105
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
106
+ "user": {
107
+ "login": "reenhanced",
108
+ "id": 1,
109
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
110
+ "gravatar_id": "somehexcode",
111
+ "url": "https://api.github.com/users/reenhanced"
112
+ },
113
+ "repo": {
114
+ "url": "https://api.github.com/repos/<%= repo_owner %>/<%= repo_name %>",
115
+ "html_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>",
116
+ "clone_url": "https://github.com/<%= repo_owner %>/<%= repo_name %>.git",
117
+ "git_url": "git://github.com/<%= repo_owner %>/<%= repo_name %>.git",
118
+ "ssh_url": "git@github.com:<%= repo_owner %>/<%= repo_name %>.git",
119
+ "svn_url": "https://svn.github.com/<%= repo_owner %>/<%= repo_name %>",
120
+ "owner": {
121
+ "login": "reenhanced",
122
+ "id": 1,
123
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
124
+ "gravatar_id": "somehexcode",
125
+ "url": "https://api.github.com/users/reenhanced"
126
+ },
127
+ "name": "repo",
128
+ "description": "This your first repo!",
129
+ "homepage": "https://github.com",
130
+ "language": null,
131
+ "private": false,
132
+ "fork": false,
133
+ "forks": 9,
134
+ "watchers": 80,
135
+ "size": 108,
136
+ "master_branch": "master",
137
+ "open_issues": 1,
138
+ "pushed_at": "2011-01-26T19:06:43Z",
139
+ "created_at": "2011-01-26T19:01:12Z"
140
+ }
141
+ }
142
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ :method => :post,
3
+ :body => "{
4
+ \"errors\" : [{
5
+ \"code\" : \"invalid\",
6
+ \"field\" : \"head\",
7
+ \"message\" : \"head The branch reenhanced:banana does not exist.\",
8
+ \"resource\" : \"PullRequest\" }],
9
+ \"message\" : \"Validation Failed\"}",
10
+ :url => "https://api.github.com/repos/reenhanced/gitreflow/pulls?access_token=12345",
11
+ :request_headers => {
12
+ "Content-Type" => "application/json",
13
+ "Authorization" => "Token token=\"12345\""
14
+ },
15
+ :parallel_manager => nil,
16
+ :request => {:proxy => nil},
17
+ :ssl => {},
18
+ :status => 422,
19
+ :response_headers => {
20
+ "server" => "nginx/1.0.13",
21
+ "date" => "Fri, 27 Apr 2012 13:02:49 GMT",
22
+ "content-type" => "application/json; charset=utf-8",
23
+ "connection" => "close",
24
+ "status" => "422 Unprocessable Entity",
25
+ "x-ratelimit-limit" => "5000",
26
+ "etag" => "\"ebdeb717fe19444c308e608728569d5a\"",
27
+ "x-oauth-scopes" => "repo",
28
+ "x-ratelimit-remaining" => "4996",
29
+ "x-accepted-oauth-scopes" => "repo",
30
+ "content-length" => "192"},
31
+ :response => ""
32
+ }
@@ -1,32 +1,32 @@
1
- {
2
- :method => :post,
3
- :body => "{
4
- \"errors\" : [{
5
- \"code\" : \"custom\",
6
- \"field\" : \"base\",
7
- \"message\" : \"base A pull request already exists for reenhanced:banana.\",
8
- \"resource\" : \"PullRequest\" }],
9
- \"message\" : \"Validation Failed\"}",
10
- :url => "https://api.github.com/repos/reenhanced/gitreflow/pulls?access_token=12345",
11
- :request_headers => {
12
- "Content-Type" => "application/json",
13
- "Authorization" => "Token token=\"12345\""
14
- },
15
- :parallel_manager => nil,
16
- :request => {:proxy => nil},
17
- :ssl => {},
18
- :status => 422,
19
- :response_headers => {
20
- "server" => "nginx/1.0.13",
21
- "date" => "Fri, 27 Apr 2012 13:02:49 GMT",
22
- "content-type" => "application/json; charset=utf-8",
23
- "connection" => "close",
24
- "status" => "422 Unprocessable Entity",
25
- "x-ratelimit-limit" => "5000",
26
- "etag" => "\"ebdeb717fe19444c308e608728569d5a\"",
27
- "x-oauth-scopes" => "repo",
28
- "x-ratelimit-remaining" => "4996",
29
- "x-accepted-oauth-scopes" => "repo",
30
- "content-length" => "192"},
31
- :response => ""
32
- }
1
+ {
2
+ :method => :post,
3
+ :body => "{
4
+ \"errors\" : [{
5
+ \"code\" : \"custom\",
6
+ \"field\" : \"base\",
7
+ \"message\" : \"base A pull request already exists for reenhanced:banana.\",
8
+ \"resource\" : \"PullRequest\" }],
9
+ \"message\" : \"Validation Failed\"}",
10
+ :url => "https://api.github.com/repos/reenhanced/gitreflow/pulls?access_token=12345",
11
+ :request_headers => {
12
+ "Content-Type" => "application/json",
13
+ "Authorization" => "Token token=\"12345\""
14
+ },
15
+ :parallel_manager => nil,
16
+ :request => {:proxy => nil},
17
+ :ssl => {},
18
+ :status => 422,
19
+ :response_headers => {
20
+ "server" => "nginx/1.0.13",
21
+ "date" => "Fri, 27 Apr 2012 13:02:49 GMT",
22
+ "content-type" => "application/json; charset=utf-8",
23
+ "connection" => "close",
24
+ "status" => "422 Unprocessable Entity",
25
+ "x-ratelimit-limit" => "5000",
26
+ "etag" => "\"ebdeb717fe19444c308e608728569d5a\"",
27
+ "x-oauth-scopes" => "repo",
28
+ "x-ratelimit-remaining" => "4996",
29
+ "x-accepted-oauth-scopes" => "repo",
30
+ "content-length" => "192"},
31
+ :response => ""
32
+ }
@@ -1,136 +1,136 @@
1
- [
2
- {
3
- "url": "https://api.github.com/reenhanced/repo/pulls/1",
4
- "html_url": "https://github.com/reenhanced/repo/pulls/1",
5
- "diff_url": "https://github.com/reenhanced/repo/pulls/1.diff",
6
- "patch_url": "https://github.com/reenhanced/repo/pulls/1.patch",
7
- "issue_url": "https://github.com/reenhanced/repo/issue/1",
8
- "number": 1,
9
- "state": "open",
10
- "title": "new-feature",
11
- "body": "Please pull these awesome changes",
12
- "created_at": "2011-01-26T19:01:12Z",
13
- "updated_at": "2011-01-26T19:01:12Z",
14
- "closed_at": "2011-01-26T19:01:12Z",
15
- "merged_at": "2011-01-26T19:01:12Z",
16
- "user": {
17
- "login": "reenhanced",
18
- "id": 1,
19
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
20
- "gravatar_id": "",
21
- "url": "https://api.github.com/users/reenhanced",
22
- "html_url": "https://github.com/reenhanced",
23
- "followers_url": "https://api.github.com/users/reenhanced/followers",
24
- "following_url": "https://api.github.com/users/reenhanced/following{/other_user}",
25
- "gists_url": "https://api.github.com/users/reenhanced/gists{/gist_id}",
26
- "starred_url": "https://api.github.com/users/reenhanced/starred{/owner}{/repo}",
27
- "subscriptions_url": "https://api.github.com/users/reenhanced/subscriptions",
28
- "organizations_url": "https://api.github.com/users/reenhanced/orgs",
29
- "repos_url": "https://api.github.com/users/reenhanced/repos",
30
- "events_url": "https://api.github.com/users/reenhanced/events{/privacy}",
31
- "received_events_url": "https://api.github.com/users/reenhanced/received_events",
32
- "type": "User",
33
- "site_admin": false
34
- },
35
- "head": {
36
- "label": "new-feature",
37
- "ref": "new-feature",
38
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
39
- "user": {
40
- "login": "reenhanced",
41
- "id": 1,
42
- "avatar_url": "https://github.com/images/error/reenhanced_happy.gif",
43
- "gravatar_id": "somehexcode",
44
- "url": "https://api.github.com/users/reenhanced"
45
- },
46
- "repo": {
47
- "url": "https://api.github.com/repos/reenhanced/repo",
48
- "html_url": "https://github.com/reenhanced/repo",
49
- "clone_url": "https://github.com/reenhanced/repo.git",
50
- "git_url": "git://github.com/reenhanced/repo.git",
51
- "ssh_url": "git@github.com:reenhanced/repo.git",
52
- "svn_url": "https://svn.github.com/reenhanced/repo",
53
- "mirror_url": "git://git.example.com/reenhanced/repo",
54
- "id": 1296269,
55
- "owner": {
56
- "login": "reenhanced",
57
- "id": 1,
58
- "avatar_url": "https://github.com/images/error/reenhanced_happy.gif",
59
- "gravatar_id": "somehexcode",
60
- "url": "https://api.github.com/users/reenhanced"
61
- },
62
- "name": "repo",
63
- "description": "This your first repo!",
64
- "homepage": "https://github.com",
65
- "language": null,
66
- "private": false,
67
- "fork": false,
68
- "forks": 9,
69
- "watchers": 80,
70
- "size": 108,
71
- "master_branch": "master",
72
- "open_issues": 0,
73
- "pushed_at": "2011-01-26T19:06:43Z",
74
- "created_at": "2011-01-26T19:01:12Z",
75
- "updated_at": "2011-01-26T19:14:43Z"
76
- }
77
- },
78
- "base": {
79
- "label": "master",
80
- "ref": "master",
81
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
82
- "user": {
83
- "login": "reenhanced",
84
- "id": 1,
85
- "avatar_url": "https://github.com/images/error/reenhanced_happy.gif",
86
- "gravatar_id": "somehexcode",
87
- "url": "https://api.github.com/users/reenhanced"
88
- },
89
- "repo": {
90
- "url": "https://api.github.com/repos/reenhanced/repo",
91
- "html_url": "https://github.com/reenhanced/repo",
92
- "clone_url": "https://github.com/reenhanced/repo.git",
93
- "git_url": "git://github.com/reenhanced/repo.git",
94
- "ssh_url": "git@github.com:reenhanced/repo.git",
95
- "svn_url": "https://svn.github.com/reenhanced/repo",
96
- "mirror_url": "git://git.example.com/reenhanced/repo",
97
- "id": 1296269,
98
- "owner": {
99
- "login": "reenhanced",
100
- "id": 1,
101
- "avatar_url": "https://github.com/images/error/reenhanced_happy.gif",
102
- "gravatar_id": "somehexcode",
103
- "url": "https://api.github.com/users/reenhanced"
104
- },
105
- "name": "repo",
106
- "description": "This your first repo!",
107
- "homepage": "https://github.com",
108
- "language": null,
109
- "private": false,
110
- "fork": false,
111
- "forks": 9,
112
- "watchers": 80,
113
- "size": 108,
114
- "master_branch": "master",
115
- "open_issues": 0,
116
- "pushed_at": "2011-01-26T19:06:43Z",
117
- "created_at": "2011-01-26T19:01:12Z",
118
- "updated_at": "2011-01-26T19:14:43Z"
119
- }
120
- },
121
- "_links": {
122
- "self": {
123
- "href": "https://api.github.com/reenhanced/repo/pulls/1"
124
- },
125
- "html": {
126
- "href": "https://github.com/reenhanced/repo/pull/1"
127
- },
128
- "comments": {
129
- "href": "https://api.github.com/reenhanced/repo/issues/1/comments"
130
- },
131
- "review_comments": {
132
- "href": "https://api.github.com/reenhanced/repo/pulls/1/comments"
133
- }
134
- }
135
- }
136
- ]
1
+ [
2
+ {
3
+ "url": "https://api.github.com/reenhanced/repo/pulls/1",
4
+ "html_url": "https://github.com/reenhanced/repo/pulls/1",
5
+ "diff_url": "https://github.com/reenhanced/repo/pulls/1.diff",
6
+ "patch_url": "https://github.com/reenhanced/repo/pulls/1.patch",
7
+ "issue_url": "https://github.com/reenhanced/repo/issue/1",
8
+ "number": 1,
9
+ "state": "open",
10
+ "title": "new-feature",
11
+ "body": "Please pull these awesome changes",
12
+ "created_at": "2011-01-26T19:01:12Z",
13
+ "updated_at": "2011-01-26T19:01:12Z",
14
+ "closed_at": "2011-01-26T19:01:12Z",
15
+ "merged_at": "2011-01-26T19:01:12Z",
16
+ "user": {
17
+ "login": "reenhanced",
18
+ "id": 1,
19
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
20
+ "gravatar_id": "",
21
+ "url": "https://api.github.com/users/reenhanced",
22
+ "html_url": "https://github.com/reenhanced",
23
+ "followers_url": "https://api.github.com/users/reenhanced/followers",
24
+ "following_url": "https://api.github.com/users/reenhanced/following{/other_user}",
25
+ "gists_url": "https://api.github.com/users/reenhanced/gists{/gist_id}",
26
+ "starred_url": "https://api.github.com/users/reenhanced/starred{/owner}{/repo}",
27
+ "subscriptions_url": "https://api.github.com/users/reenhanced/subscriptions",
28
+ "organizations_url": "https://api.github.com/users/reenhanced/orgs",
29
+ "repos_url": "https://api.github.com/users/reenhanced/repos",
30
+ "events_url": "https://api.github.com/users/reenhanced/events{/privacy}",
31
+ "received_events_url": "https://api.github.com/users/reenhanced/received_events",
32
+ "type": "User",
33
+ "site_admin": false
34
+ },
35
+ "head": {
36
+ "label": "new-feature",
37
+ "ref": "new-feature",
38
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
39
+ "user": {
40
+ "login": "reenhanced",
41
+ "id": 1,
42
+ "avatar_url": "https://github.com/images/error/reenhanced_happy.gif",
43
+ "gravatar_id": "somehexcode",
44
+ "url": "https://api.github.com/users/reenhanced"
45
+ },
46
+ "repo": {
47
+ "url": "https://api.github.com/repos/reenhanced/repo",
48
+ "html_url": "https://github.com/reenhanced/repo",
49
+ "clone_url": "https://github.com/reenhanced/repo.git",
50
+ "git_url": "git://github.com/reenhanced/repo.git",
51
+ "ssh_url": "git@github.com:reenhanced/repo.git",
52
+ "svn_url": "https://svn.github.com/reenhanced/repo",
53
+ "mirror_url": "git://git.example.com/reenhanced/repo",
54
+ "id": 1296269,
55
+ "owner": {
56
+ "login": "reenhanced",
57
+ "id": 1,
58
+ "avatar_url": "https://github.com/images/error/reenhanced_happy.gif",
59
+ "gravatar_id": "somehexcode",
60
+ "url": "https://api.github.com/users/reenhanced"
61
+ },
62
+ "name": "repo",
63
+ "description": "This your first repo!",
64
+ "homepage": "https://github.com",
65
+ "language": null,
66
+ "private": false,
67
+ "fork": false,
68
+ "forks": 9,
69
+ "watchers": 80,
70
+ "size": 108,
71
+ "master_branch": "master",
72
+ "open_issues": 0,
73
+ "pushed_at": "2011-01-26T19:06:43Z",
74
+ "created_at": "2011-01-26T19:01:12Z",
75
+ "updated_at": "2011-01-26T19:14:43Z"
76
+ }
77
+ },
78
+ "base": {
79
+ "label": "master",
80
+ "ref": "master",
81
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
82
+ "user": {
83
+ "login": "reenhanced",
84
+ "id": 1,
85
+ "avatar_url": "https://github.com/images/error/reenhanced_happy.gif",
86
+ "gravatar_id": "somehexcode",
87
+ "url": "https://api.github.com/users/reenhanced"
88
+ },
89
+ "repo": {
90
+ "url": "https://api.github.com/repos/reenhanced/repo",
91
+ "html_url": "https://github.com/reenhanced/repo",
92
+ "clone_url": "https://github.com/reenhanced/repo.git",
93
+ "git_url": "git://github.com/reenhanced/repo.git",
94
+ "ssh_url": "git@github.com:reenhanced/repo.git",
95
+ "svn_url": "https://svn.github.com/reenhanced/repo",
96
+ "mirror_url": "git://git.example.com/reenhanced/repo",
97
+ "id": 1296269,
98
+ "owner": {
99
+ "login": "reenhanced",
100
+ "id": 1,
101
+ "avatar_url": "https://github.com/images/error/reenhanced_happy.gif",
102
+ "gravatar_id": "somehexcode",
103
+ "url": "https://api.github.com/users/reenhanced"
104
+ },
105
+ "name": "repo",
106
+ "description": "This your first repo!",
107
+ "homepage": "https://github.com",
108
+ "language": null,
109
+ "private": false,
110
+ "fork": false,
111
+ "forks": 9,
112
+ "watchers": 80,
113
+ "size": 108,
114
+ "master_branch": "master",
115
+ "open_issues": 0,
116
+ "pushed_at": "2011-01-26T19:06:43Z",
117
+ "created_at": "2011-01-26T19:01:12Z",
118
+ "updated_at": "2011-01-26T19:14:43Z"
119
+ }
120
+ },
121
+ "_links": {
122
+ "self": {
123
+ "href": "https://api.github.com/reenhanced/repo/pulls/1"
124
+ },
125
+ "html": {
126
+ "href": "https://github.com/reenhanced/repo/pull/1"
127
+ },
128
+ "comments": {
129
+ "href": "https://api.github.com/reenhanced/repo/issues/1/comments"
130
+ },
131
+ "review_comments": {
132
+ "href": "https://api.github.com/reenhanced/repo/pulls/1/comments"
133
+ }
134
+ }
135
+ }
136
+ ]