lita-github_pr_list 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/github_pr_list/check_list.rb +2 -1
- data/lib/lita/github_pr_list/version.rb +1 -1
- data/lib/lita/handlers/github_pr_list.rb +34 -7
- data/spec/fixtures/{pull_request_edit_comment.json → open_pull_request_response.json} +0 -0
- data/spec/fixtures/update_pull_request_response.json +219 -0
- data/spec/lita/handlers/check_list_spec.rb +7 -13
- data/spec/lita/handlers/web_hook_spec.rb +11 -8
- metadata +6 -6
- data/spec/fixtures/edit_pull_request.json +0 -413
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2795f5b5e0c0730fb55e25d57f003e381afba4a1
|
4
|
+
data.tar.gz: 726020281fc71178010f3768ec7c2555f71e31ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32ba8f27ddc7ea1fab1f467500a257b861fdbc745a7c5db6564b9e1623f5967b1193b047966e3783a50a07660f9ed4c21d3887566be629f4eb6869d14e385018
|
7
|
+
data.tar.gz: 53ee5ffcb19137a9e78a1d488ce9d24384831dba84051bb32b44d898c83d2eceb2ef149c13d5c1d17bb446bb54bd2a86129c272e0c8df996b3786d23108eefe7
|
@@ -26,7 +26,8 @@ module Lita
|
|
26
26
|
self.title = payload["pull_request"]["title"]
|
27
27
|
self.id = payload["number"]
|
28
28
|
|
29
|
-
|
29
|
+
options = { title: title, body: comment_body, state: 'open' }
|
30
|
+
github_client.update_pull_request(repo_name, id, options) if payload["action"] == "opened"
|
30
31
|
end
|
31
32
|
end
|
32
33
|
end
|
@@ -11,7 +11,10 @@ module Lita
|
|
11
11
|
def self.default_config(config)
|
12
12
|
config.github_organization = nil
|
13
13
|
config.github_access_token = nil
|
14
|
-
config.
|
14
|
+
config.comment_hook_url = nil
|
15
|
+
config.comment_hook_event_type = nil
|
16
|
+
config.check_list_hook_url = nil
|
17
|
+
config.check_list_event_type = nil
|
15
18
|
end
|
16
19
|
|
17
20
|
route(/pr list/i, :list_org_pr, command: true,
|
@@ -65,13 +68,17 @@ module Lita
|
|
65
68
|
end
|
66
69
|
|
67
70
|
def add_pr_hooks(response)
|
68
|
-
|
69
|
-
|
71
|
+
hook_info.each_pair do |key, val|
|
72
|
+
Lita::GithubPrList::WebHook.new(github_organization: github_organization, github_token: github_access_token,
|
73
|
+
web_hook: val[:hook_url], response: response, event_type: val[:event_type]).add_hooks
|
74
|
+
end
|
70
75
|
end
|
71
76
|
|
72
77
|
def remove_pr_hooks(response)
|
73
|
-
|
74
|
-
|
78
|
+
hook_info.each_pair do |key, val|
|
79
|
+
Lita::GithubPrList::WebHook.new(github_organization: github_organization, github_token: github_access_token,
|
80
|
+
web_hook: val[:hook_url], response: response, event_type: val[:event_type]).remove_hooks
|
81
|
+
end
|
75
82
|
end
|
76
83
|
|
77
84
|
private
|
@@ -79,14 +86,34 @@ module Lita
|
|
79
86
|
def github_organization
|
80
87
|
Lita.config.handlers.github_pr_list.github_organization
|
81
88
|
end
|
89
|
+
|
82
90
|
def github_access_token
|
83
91
|
Lita.config.handlers.github_pr_list.github_access_token
|
84
92
|
end
|
85
|
-
|
86
|
-
|
93
|
+
|
94
|
+
def hook_info
|
95
|
+
{ comment_hook: { hook_url: comment_hook_url, event_type: comment_hook_event_type },
|
96
|
+
check_list_hook: { hook_url: check_list_hook_url, event_type: check_list_event_type } }
|
97
|
+
end
|
98
|
+
|
99
|
+
def comment_hook_url
|
100
|
+
Lita.config.handlers.github_pr_list.comment_hook_url
|
101
|
+
end
|
102
|
+
|
103
|
+
def comment_hook_event_type
|
104
|
+
Lita.config.handlers.github_pr_list.comment_hook_event_type
|
105
|
+
end
|
106
|
+
|
107
|
+
def check_list_hook_url
|
108
|
+
Lita.config.handlers.github_pr_list.check_list_hook_url
|
109
|
+
end
|
110
|
+
|
111
|
+
def check_list_event_type
|
112
|
+
Lita.config.handlers.github_pr_list.check_list_event_type
|
87
113
|
end
|
88
114
|
end
|
89
115
|
|
90
116
|
Lita.register_handler(GithubPrList)
|
117
|
+
|
91
118
|
end
|
92
119
|
end
|
File without changes
|
@@ -0,0 +1,219 @@
|
|
1
|
+
{
|
2
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
|
3
|
+
"html_url": "https://github.com/octocat/Hello-World/pull/1",
|
4
|
+
"diff_url": "https://github.com/octocat/Hello-World/pulls/1.diff",
|
5
|
+
"patch_url": "https://github.com/octocat/Hello-World/pulls/1.patch",
|
6
|
+
"issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1",
|
7
|
+
"commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1/commits",
|
8
|
+
"review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1/comments",
|
9
|
+
"review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/{number}",
|
10
|
+
"comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1/comments",
|
11
|
+
"statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
12
|
+
"number": 1,
|
13
|
+
"state": "open",
|
14
|
+
"title": "new-feature",
|
15
|
+
"body": "Please pull these awesome changes - [ ] Change log - [ ] Demo page - [ ] Product owner signoff - [ ] Merge into master - [ ] Deploy to production",
|
16
|
+
"created_at": "2011-01-26T19:01:12Z",
|
17
|
+
"updated_at": "2011-01-26T19:01:12Z",
|
18
|
+
"closed_at": "2011-01-26T19:01:12Z",
|
19
|
+
"merged_at": "2011-01-26T19:01:12Z",
|
20
|
+
"head": {
|
21
|
+
"label": "new-topic",
|
22
|
+
"ref": "new-topic",
|
23
|
+
"sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
24
|
+
"user": {
|
25
|
+
"login": "octocat",
|
26
|
+
"id": 1,
|
27
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
28
|
+
"gravatar_id": "somehexcode",
|
29
|
+
"url": "https://api.github.com/users/octocat",
|
30
|
+
"html_url": "https://github.com/octocat",
|
31
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
32
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
33
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
34
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
35
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
36
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
37
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
38
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
39
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
40
|
+
"type": "User",
|
41
|
+
"site_admin": false
|
42
|
+
},
|
43
|
+
"repo": {
|
44
|
+
"id": 1296269,
|
45
|
+
"owner": {
|
46
|
+
"login": "octocat",
|
47
|
+
"id": 1,
|
48
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
49
|
+
"gravatar_id": "somehexcode",
|
50
|
+
"url": "https://api.github.com/users/octocat",
|
51
|
+
"html_url": "https://github.com/octocat",
|
52
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
53
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
54
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
55
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
56
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
57
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
58
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
59
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
60
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
61
|
+
"type": "User",
|
62
|
+
"site_admin": false
|
63
|
+
},
|
64
|
+
"name": "Hello-World",
|
65
|
+
"full_name": "octocat/Hello-World",
|
66
|
+
"description": "This your first repo!",
|
67
|
+
"private": false,
|
68
|
+
"fork": true,
|
69
|
+
"url": "https://api.github.com/repos/octocat/Hello-World",
|
70
|
+
"html_url": "https://github.com/octocat/Hello-World",
|
71
|
+
"clone_url": "https://github.com/octocat/Hello-World.git",
|
72
|
+
"git_url": "git://github.com/octocat/Hello-World.git",
|
73
|
+
"ssh_url": "git@github.com:octocat/Hello-World.git",
|
74
|
+
"svn_url": "https://svn.github.com/octocat/Hello-World",
|
75
|
+
"mirror_url": "git://git.example.com/octocat/Hello-World",
|
76
|
+
"homepage": "https://github.com",
|
77
|
+
"language": null,
|
78
|
+
"forks_count": 9,
|
79
|
+
"stargazers_count": 80,
|
80
|
+
"watchers_count": 80,
|
81
|
+
"size": 108,
|
82
|
+
"default_branch": "master",
|
83
|
+
"open_issues_count": 0,
|
84
|
+
"has_issues": true,
|
85
|
+
"has_wiki": true,
|
86
|
+
"has_downloads": true,
|
87
|
+
"pushed_at": "2011-01-26T19:06:43Z",
|
88
|
+
"created_at": "2011-01-26T19:01:12Z",
|
89
|
+
"updated_at": "2011-01-26T19:14:43Z",
|
90
|
+
"permissions": {
|
91
|
+
"admin": false,
|
92
|
+
"push": false,
|
93
|
+
"pull": true
|
94
|
+
}
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"base": {
|
98
|
+
"label": "master",
|
99
|
+
"ref": "master",
|
100
|
+
"sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
101
|
+
"user": {
|
102
|
+
"login": "octocat",
|
103
|
+
"id": 1,
|
104
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
105
|
+
"gravatar_id": "somehexcode",
|
106
|
+
"url": "https://api.github.com/users/octocat",
|
107
|
+
"html_url": "https://github.com/octocat",
|
108
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
109
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
110
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
111
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
112
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
113
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
114
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
115
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
116
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
117
|
+
"type": "User",
|
118
|
+
"site_admin": false
|
119
|
+
},
|
120
|
+
"repo": {
|
121
|
+
"id": 1296269,
|
122
|
+
"owner": {
|
123
|
+
"login": "octocat",
|
124
|
+
"id": 1,
|
125
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
126
|
+
"gravatar_id": "somehexcode",
|
127
|
+
"url": "https://api.github.com/users/octocat",
|
128
|
+
"html_url": "https://github.com/octocat",
|
129
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
130
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
131
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
132
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
133
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
134
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
135
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
136
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
137
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
138
|
+
"type": "User",
|
139
|
+
"site_admin": false
|
140
|
+
},
|
141
|
+
"name": "Hello-World",
|
142
|
+
"full_name": "octocat/Hello-World",
|
143
|
+
"description": "This your first repo!",
|
144
|
+
"private": false,
|
145
|
+
"fork": true,
|
146
|
+
"url": "https://api.github.com/repos/octocat/Hello-World",
|
147
|
+
"html_url": "https://github.com/octocat/Hello-World",
|
148
|
+
"clone_url": "https://github.com/octocat/Hello-World.git",
|
149
|
+
"git_url": "git://github.com/octocat/Hello-World.git",
|
150
|
+
"ssh_url": "git@github.com:octocat/Hello-World.git",
|
151
|
+
"svn_url": "https://svn.github.com/octocat/Hello-World",
|
152
|
+
"mirror_url": "git://git.example.com/octocat/Hello-World",
|
153
|
+
"homepage": "https://github.com",
|
154
|
+
"language": null,
|
155
|
+
"forks_count": 9,
|
156
|
+
"stargazers_count": 80,
|
157
|
+
"watchers_count": 80,
|
158
|
+
"size": 108,
|
159
|
+
"default_branch": "master",
|
160
|
+
"open_issues_count": 0,
|
161
|
+
"has_issues": true,
|
162
|
+
"has_wiki": true,
|
163
|
+
"has_downloads": true,
|
164
|
+
"pushed_at": "2011-01-26T19:06:43Z",
|
165
|
+
"created_at": "2011-01-26T19:01:12Z",
|
166
|
+
"updated_at": "2011-01-26T19:14:43Z",
|
167
|
+
"permissions": {
|
168
|
+
"admin": false,
|
169
|
+
"push": false,
|
170
|
+
"pull": true
|
171
|
+
}
|
172
|
+
}
|
173
|
+
},
|
174
|
+
"_links": {
|
175
|
+
"self": {
|
176
|
+
"href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
|
177
|
+
},
|
178
|
+
"html": {
|
179
|
+
"href": "https://github.com/octocat/Hello-World/pull/1"
|
180
|
+
},
|
181
|
+
"issue": {
|
182
|
+
"href": "https://api.github.com/repos/octocat/Hello-World/issues/1"
|
183
|
+
},
|
184
|
+
"comments": {
|
185
|
+
"href": "https://api.github.com/repos/octocat/Hello-World/issues/1/comments"
|
186
|
+
},
|
187
|
+
"review_comments": {
|
188
|
+
"href": "https://api.github.com/repos/octocat/Hello-World/pulls/1/comments"
|
189
|
+
},
|
190
|
+
"review_comment": {
|
191
|
+
"href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/{number}"
|
192
|
+
},
|
193
|
+
"commits": {
|
194
|
+
"href": "https://api.github.com/repos/octocat/Hello-World/pulls/1/commits"
|
195
|
+
},
|
196
|
+
"statuses": {
|
197
|
+
"href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
|
198
|
+
}
|
199
|
+
},
|
200
|
+
"user": {
|
201
|
+
"login": "octocat",
|
202
|
+
"id": 1,
|
203
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
204
|
+
"gravatar_id": "somehexcode",
|
205
|
+
"url": "https://api.github.com/users/octocat",
|
206
|
+
"html_url": "https://github.com/octocat",
|
207
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
208
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
209
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
210
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
211
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
212
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
213
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
214
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
215
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
216
|
+
"type": "User",
|
217
|
+
"site_admin": false
|
218
|
+
}
|
219
|
+
}
|
@@ -4,26 +4,20 @@ describe Lita::Handlers::GithubPrList, lita_handler: true do
|
|
4
4
|
Lita.config.handlers.github_pr_list.github_access_token = 'wafflesausages111111'
|
5
5
|
end
|
6
6
|
|
7
|
-
let(:
|
8
|
-
let(:
|
9
|
-
let(:edit_pull_request_response) { Rack::Response.new(pull_request_response, 200, { 'Content-Type' => 'json' }) }
|
7
|
+
let(:update_pull_request_response) { File.read("spec/fixtures/update_pull_request_response.json") }
|
8
|
+
let(:open_pull_request_response) { [File.read("spec/fixtures/open_pull_request_response.json")] }
|
10
9
|
let(:check_list) do
|
11
|
-
"- [ ] Change log
|
12
|
-
- [ ] Demo page
|
13
|
-
- [ ] Product owner signoff
|
14
|
-
- [ ] Merge into master
|
15
|
-
- [ ] Deploy to production"
|
10
|
+
"- [ ] Change log - [ ] Demo page - [ ] Product owner signoff - [ ] Merge into master - [ ] Deploy to production"
|
16
11
|
end
|
17
12
|
|
18
13
|
it { routes_http(:post, "/check_list").to(:check_list) }
|
19
14
|
|
20
|
-
it "
|
21
|
-
allow_any_instance_of(Octokit::Client).to receive(:update_pull_request).and_return(
|
22
|
-
request = Rack::Request.new("rack.input" => StringIO.new(
|
15
|
+
it "adds the check list to the body of the pull request" do
|
16
|
+
allow_any_instance_of(Octokit::Client).to receive(:update_pull_request).and_return(update_pull_request_response)
|
17
|
+
request = Rack::Request.new("rack.input" => StringIO.new(open_pull_request_response.first))
|
23
18
|
response = Rack::Response.new(['Hello'], 200, {'Content-Type' => 'text/plain'})
|
24
|
-
|
25
19
|
github_handler = Lita::Handlers::GithubPrList.new
|
26
20
|
github_handler.check_list(request, response)
|
27
|
-
expect(
|
21
|
+
expect(update_pull_request_response).to include(check_list)
|
28
22
|
end
|
29
23
|
end
|
@@ -4,7 +4,10 @@ describe Lita::Handlers::GithubPrList, lita_handler: true do
|
|
4
4
|
before :each do
|
5
5
|
Lita.config.handlers.github_pr_list.github_organization = 'aaaaaabbbbbbcccccc'
|
6
6
|
Lita.config.handlers.github_pr_list.github_access_token = 'wafflesausages111111'
|
7
|
-
Lita.config.handlers.github_pr_list.
|
7
|
+
Lita.config.handlers.github_pr_list.comment_hook_url = 'https://example.com/hook'
|
8
|
+
Lita.config.handlers.github_pr_list.comment_hook_event_type = 'comment_event_type'
|
9
|
+
Lita.config.handlers.github_pr_list.check_list_hook_url = 'https://example.com/hook'
|
10
|
+
Lita.config.handlers.github_pr_list.check_list_event_type = 'check_list_event_type'
|
8
11
|
end
|
9
12
|
|
10
13
|
let(:agent) do
|
@@ -30,8 +33,8 @@ describe Lita::Handlers::GithubPrList, lita_handler: true do
|
|
30
33
|
it { routes_command("pr remove hooks").to(:remove_pr_hooks) }
|
31
34
|
|
32
35
|
it "adds web hooks to an org's repos" do
|
33
|
-
|
34
|
-
|
36
|
+
allow_any_instance_of(Octokit::Client).to receive(:organization_repositories).and_return(repos)
|
37
|
+
allow_any_instance_of(Octokit::Client).to receive(:create_hook).and_return(nil)
|
35
38
|
|
36
39
|
send_command("pr add hooks")
|
37
40
|
|
@@ -40,9 +43,9 @@ describe Lita::Handlers::GithubPrList, lita_handler: true do
|
|
40
43
|
end
|
41
44
|
|
42
45
|
it "removes web hooks from an org's repos" do
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
+
allow_any_instance_of(Octokit::Client).to receive(:organization_repositories).and_return(repos)
|
47
|
+
allow_any_instance_of(Octokit::Client).to receive(:hooks).and_return(hooks)
|
48
|
+
allow_any_instance_of(Octokit::Client).to receive(:remove_hook).and_return(nil)
|
46
49
|
|
47
50
|
send_command("pr remove hooks")
|
48
51
|
|
@@ -51,8 +54,8 @@ describe Lita::Handlers::GithubPrList, lita_handler: true do
|
|
51
54
|
end
|
52
55
|
|
53
56
|
it "catches exceptions when the hook already exists and continues" do
|
54
|
-
|
55
|
-
|
57
|
+
allow_any_instance_of(Octokit::Client).to receive(:organization_repositories).and_return(repos)
|
58
|
+
allow_any_instance_of(Octokit::Client).to receive(:create_hook).and_return(nil)
|
56
59
|
exception = Octokit::UnprocessableEntity.new
|
57
60
|
allow(exception).to receive(:errors).and_return([OpenStruct.new(message: "Hook already exists on this repository")])
|
58
61
|
allow(Lita::GithubPrList::WebHook).to receive(:create_hook).and_raise(exception)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-github_pr_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van den Beuken
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-
|
16
|
+
date: 2014-09-11 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: lita
|
@@ -161,7 +161,6 @@ files:
|
|
161
161
|
- lib/lita/github_pr_list/web_hook.rb
|
162
162
|
- lib/lita/handlers/github_pr_list.rb
|
163
163
|
- lita-github_pr_list.gemspec
|
164
|
-
- spec/fixtures/edit_pull_request.json
|
165
164
|
- spec/fixtures/issue_comment_event_failed.json
|
166
165
|
- spec/fixtures/issue_comment_event_fixed.json
|
167
166
|
- spec/fixtures/issue_comment_event_in_review.json
|
@@ -172,10 +171,11 @@ files:
|
|
172
171
|
- spec/fixtures/issue_comments_new.json
|
173
172
|
- spec/fixtures/issue_comments_passed.json
|
174
173
|
- spec/fixtures/one_org_issue_list.json
|
175
|
-
- spec/fixtures/
|
174
|
+
- spec/fixtures/open_pull_request_response.json
|
176
175
|
- spec/fixtures/repository_hooks.json
|
177
176
|
- spec/fixtures/repository_list.json
|
178
177
|
- spec/fixtures/two_org_issue_list.json
|
178
|
+
- spec/fixtures/update_pull_request_response.json
|
179
179
|
- spec/lita/handlers/alias_spec.rb
|
180
180
|
- spec/lita/handlers/check_list_spec.rb
|
181
181
|
- spec/lita/handlers/comment_hook_spec.rb
|
@@ -208,7 +208,6 @@ signing_key:
|
|
208
208
|
specification_version: 4
|
209
209
|
summary: List open pull requests for an organization.
|
210
210
|
test_files:
|
211
|
-
- spec/fixtures/edit_pull_request.json
|
212
211
|
- spec/fixtures/issue_comment_event_failed.json
|
213
212
|
- spec/fixtures/issue_comment_event_fixed.json
|
214
213
|
- spec/fixtures/issue_comment_event_in_review.json
|
@@ -219,10 +218,11 @@ test_files:
|
|
219
218
|
- spec/fixtures/issue_comments_new.json
|
220
219
|
- spec/fixtures/issue_comments_passed.json
|
221
220
|
- spec/fixtures/one_org_issue_list.json
|
222
|
-
- spec/fixtures/
|
221
|
+
- spec/fixtures/open_pull_request_response.json
|
223
222
|
- spec/fixtures/repository_hooks.json
|
224
223
|
- spec/fixtures/repository_list.json
|
225
224
|
- spec/fixtures/two_org_issue_list.json
|
225
|
+
- spec/fixtures/update_pull_request_response.json
|
226
226
|
- spec/lita/handlers/alias_spec.rb
|
227
227
|
- spec/lita/handlers/check_list_spec.rb
|
228
228
|
- spec/lita/handlers/comment_hook_spec.rb
|
@@ -1,413 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"action": "opened",
|
3
|
-
"number": 48,
|
4
|
-
"pull_request": {
|
5
|
-
"url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48",
|
6
|
-
"id": 18905849,
|
7
|
-
"html_url": "https://github.com/baxterthehacker/public-repo/pull/48",
|
8
|
-
"diff_url": "https://github.com/baxterthehacker/public-repo/pull/48.diff",
|
9
|
-
"patch_url": "https://github.com/baxterthehacker/public-repo/pull/48.patch",
|
10
|
-
"issue_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/48",
|
11
|
-
"number": 48,
|
12
|
-
"state": "open",
|
13
|
-
"title": "Update the README with new information",
|
14
|
-
"user": {
|
15
|
-
"login": "baxterthehacker",
|
16
|
-
"id": 6752317,
|
17
|
-
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
18
|
-
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
19
|
-
"url": "https://api.github.com/users/baxterthehacker",
|
20
|
-
"html_url": "https://github.com/baxterthehacker",
|
21
|
-
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
22
|
-
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
23
|
-
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
24
|
-
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
25
|
-
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
26
|
-
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
27
|
-
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
28
|
-
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
29
|
-
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
30
|
-
"type": "User",
|
31
|
-
"site_admin": false
|
32
|
-
},
|
33
|
-
"body": "This is a pretty simple change that we need to pull into master.
|
34
|
-
- [ ] Change log
|
35
|
-
- [ ] Demo page
|
36
|
-
- [ ] Product owner signoff
|
37
|
-
- [ ] Merge into master
|
38
|
-
- [ ] Deploy to production",
|
39
|
-
"created_at": "2014-07-25T16:37:42Z",
|
40
|
-
"updated_at": "2014-07-25T16:37:42Z",
|
41
|
-
"closed_at": null,
|
42
|
-
"merged_at": null,
|
43
|
-
"merge_commit_sha": null,
|
44
|
-
"assignee": null,
|
45
|
-
"milestone": null,
|
46
|
-
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48/commits",
|
47
|
-
"review_comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48/comments",
|
48
|
-
"review_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments/{number}",
|
49
|
-
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/48/comments",
|
50
|
-
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/05c588ba8cd510ecbe112d020f215facb17817a6",
|
51
|
-
"head": {
|
52
|
-
"label": "baxterthehacker:changes",
|
53
|
-
"ref": "changes",
|
54
|
-
"sha": "05c588ba8cd510ecbe112d020f215facb17817a6",
|
55
|
-
"user": {
|
56
|
-
"login": "baxterthehacker",
|
57
|
-
"id": 6752317,
|
58
|
-
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
59
|
-
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
60
|
-
"url": "https://api.github.com/users/baxterthehacker",
|
61
|
-
"html_url": "https://github.com/baxterthehacker",
|
62
|
-
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
63
|
-
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
64
|
-
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
65
|
-
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
66
|
-
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
67
|
-
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
68
|
-
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
69
|
-
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
70
|
-
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
71
|
-
"type": "User",
|
72
|
-
"site_admin": false
|
73
|
-
},
|
74
|
-
"repo": {
|
75
|
-
"id": 20000106,
|
76
|
-
"name": "public-repo",
|
77
|
-
"full_name": "baxterthehacker/public-repo",
|
78
|
-
"owner": {
|
79
|
-
"login": "baxterthehacker",
|
80
|
-
"id": 6752317,
|
81
|
-
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
82
|
-
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
83
|
-
"url": "https://api.github.com/users/baxterthehacker",
|
84
|
-
"html_url": "https://github.com/baxterthehacker",
|
85
|
-
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
86
|
-
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
87
|
-
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
88
|
-
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
89
|
-
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
90
|
-
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
91
|
-
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
92
|
-
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
93
|
-
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
94
|
-
"type": "User",
|
95
|
-
"site_admin": false
|
96
|
-
},
|
97
|
-
"private": false,
|
98
|
-
"html_url": "https://github.com/baxterthehacker/public-repo",
|
99
|
-
"description": "",
|
100
|
-
"fork": false,
|
101
|
-
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
102
|
-
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
103
|
-
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
104
|
-
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
105
|
-
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
106
|
-
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
107
|
-
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
108
|
-
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
109
|
-
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
110
|
-
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
111
|
-
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
112
|
-
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
113
|
-
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
114
|
-
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
115
|
-
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
116
|
-
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
117
|
-
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
118
|
-
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
119
|
-
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
120
|
-
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
121
|
-
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
122
|
-
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
123
|
-
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
124
|
-
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
125
|
-
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments/{number}",
|
126
|
-
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
127
|
-
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
128
|
-
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
129
|
-
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
130
|
-
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
131
|
-
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
132
|
-
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
133
|
-
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
134
|
-
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
135
|
-
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
136
|
-
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
137
|
-
"created_at": "2014-05-20T22:39:43Z",
|
138
|
-
"updated_at": "2014-07-01T17:21:25Z",
|
139
|
-
"pushed_at": "2014-07-25T16:37:42Z",
|
140
|
-
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
141
|
-
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
142
|
-
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
143
|
-
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
144
|
-
"homepage": null,
|
145
|
-
"size": 612,
|
146
|
-
"stargazers_count": 0,
|
147
|
-
"watchers_count": 0,
|
148
|
-
"language": null,
|
149
|
-
"has_issues": true,
|
150
|
-
"has_downloads": true,
|
151
|
-
"has_wiki": true,
|
152
|
-
"forks_count": 0,
|
153
|
-
"mirror_url": null,
|
154
|
-
"open_issues_count": 25,
|
155
|
-
"forks": 0,
|
156
|
-
"open_issues": 25,
|
157
|
-
"watchers": 0,
|
158
|
-
"default_branch": "master"
|
159
|
-
}
|
160
|
-
},
|
161
|
-
"base": {
|
162
|
-
"label": "baxterthehacker:master",
|
163
|
-
"ref": "master",
|
164
|
-
"sha": "69a8b72e2d3d955075d47f03d902929dcaf74033",
|
165
|
-
"user": {
|
166
|
-
"login": "baxterthehacker",
|
167
|
-
"id": 6752317,
|
168
|
-
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
169
|
-
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
170
|
-
"url": "https://api.github.com/users/baxterthehacker",
|
171
|
-
"html_url": "https://github.com/baxterthehacker",
|
172
|
-
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
173
|
-
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
174
|
-
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
175
|
-
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
176
|
-
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
177
|
-
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
178
|
-
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
179
|
-
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
180
|
-
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
181
|
-
"type": "User",
|
182
|
-
"site_admin": false
|
183
|
-
},
|
184
|
-
"repo": {
|
185
|
-
"id": 20000106,
|
186
|
-
"name": "public-repo",
|
187
|
-
"full_name": "baxterthehacker/public-repo",
|
188
|
-
"owner": {
|
189
|
-
"login": "baxterthehacker",
|
190
|
-
"id": 6752317,
|
191
|
-
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
192
|
-
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
193
|
-
"url": "https://api.github.com/users/baxterthehacker",
|
194
|
-
"html_url": "https://github.com/baxterthehacker",
|
195
|
-
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
196
|
-
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
197
|
-
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
198
|
-
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
199
|
-
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
200
|
-
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
201
|
-
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
202
|
-
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
203
|
-
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
204
|
-
"type": "User",
|
205
|
-
"site_admin": false
|
206
|
-
},
|
207
|
-
"private": false,
|
208
|
-
"html_url": "https://github.com/baxterthehacker/public-repo",
|
209
|
-
"description": "",
|
210
|
-
"fork": false,
|
211
|
-
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
212
|
-
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
213
|
-
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
214
|
-
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
215
|
-
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
216
|
-
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
217
|
-
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
218
|
-
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
219
|
-
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
220
|
-
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
221
|
-
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
222
|
-
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
223
|
-
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
224
|
-
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
225
|
-
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
226
|
-
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
227
|
-
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
228
|
-
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
229
|
-
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
230
|
-
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
231
|
-
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
232
|
-
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
233
|
-
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
234
|
-
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
235
|
-
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments/{number}",
|
236
|
-
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
237
|
-
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
238
|
-
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
239
|
-
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
240
|
-
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
241
|
-
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
242
|
-
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
243
|
-
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
244
|
-
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
245
|
-
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
246
|
-
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
247
|
-
"created_at": "2014-05-20T22:39:43Z",
|
248
|
-
"updated_at": "2014-07-01T17:21:25Z",
|
249
|
-
"pushed_at": "2014-07-25T16:37:42Z",
|
250
|
-
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
251
|
-
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
252
|
-
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
253
|
-
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
254
|
-
"homepage": null,
|
255
|
-
"size": 612,
|
256
|
-
"stargazers_count": 0,
|
257
|
-
"watchers_count": 0,
|
258
|
-
"language": null,
|
259
|
-
"has_issues": true,
|
260
|
-
"has_downloads": true,
|
261
|
-
"has_wiki": true,
|
262
|
-
"forks_count": 0,
|
263
|
-
"mirror_url": null,
|
264
|
-
"open_issues_count": 25,
|
265
|
-
"forks": 0,
|
266
|
-
"open_issues": 25,
|
267
|
-
"watchers": 0,
|
268
|
-
"default_branch": "master"
|
269
|
-
}
|
270
|
-
},
|
271
|
-
"_links": {
|
272
|
-
"self": {
|
273
|
-
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48"
|
274
|
-
},
|
275
|
-
"html": {
|
276
|
-
"href": "https://github.com/baxterthehacker/public-repo/pull/48"
|
277
|
-
},
|
278
|
-
"issue": {
|
279
|
-
"href": "https://api.github.com/repos/baxterthehacker/public-repo/issues/48"
|
280
|
-
},
|
281
|
-
"comments": {
|
282
|
-
"href": "https://api.github.com/repos/baxterthehacker/public-repo/issues/48/comments"
|
283
|
-
},
|
284
|
-
"review_comments": {
|
285
|
-
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48/comments"
|
286
|
-
},
|
287
|
-
"review_comment": {
|
288
|
-
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments/{number}"
|
289
|
-
},
|
290
|
-
"commits": {
|
291
|
-
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48/commits"
|
292
|
-
},
|
293
|
-
"statuses": {
|
294
|
-
"href": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/05c588ba8cd510ecbe112d020f215facb17817a6"
|
295
|
-
}
|
296
|
-
},
|
297
|
-
"merged": false,
|
298
|
-
"mergeable": null,
|
299
|
-
"mergeable_state": "unknown",
|
300
|
-
"merged_by": null,
|
301
|
-
"comments": 0,
|
302
|
-
"review_comments": 1,
|
303
|
-
"commits": 1,
|
304
|
-
"additions": 2,
|
305
|
-
"deletions": 0,
|
306
|
-
"changed_files": 1
|
307
|
-
},
|
308
|
-
"repository": {
|
309
|
-
"id": 20000106,
|
310
|
-
"name": "public-repo",
|
311
|
-
"full_name": "baxterthehacker/public-repo",
|
312
|
-
"owner": {
|
313
|
-
"login": "baxterthehacker",
|
314
|
-
"id": 6752317,
|
315
|
-
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
316
|
-
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
317
|
-
"url": "https://api.github.com/users/baxterthehacker",
|
318
|
-
"html_url": "https://github.com/baxterthehacker",
|
319
|
-
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
320
|
-
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
321
|
-
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
322
|
-
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
323
|
-
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
324
|
-
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
325
|
-
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
326
|
-
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
327
|
-
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
328
|
-
"type": "User",
|
329
|
-
"site_admin": false
|
330
|
-
},
|
331
|
-
"private": false,
|
332
|
-
"html_url": "https://github.com/baxterthehacker/public-repo",
|
333
|
-
"description": "",
|
334
|
-
"fork": false,
|
335
|
-
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
336
|
-
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
337
|
-
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
338
|
-
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
339
|
-
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
340
|
-
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
341
|
-
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
342
|
-
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
343
|
-
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
344
|
-
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
345
|
-
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
346
|
-
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
347
|
-
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
348
|
-
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
349
|
-
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
350
|
-
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
351
|
-
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
352
|
-
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
353
|
-
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
354
|
-
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
355
|
-
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
356
|
-
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
357
|
-
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
358
|
-
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
359
|
-
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments/{number}",
|
360
|
-
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
361
|
-
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
362
|
-
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
363
|
-
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
364
|
-
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
365
|
-
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
366
|
-
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
367
|
-
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
368
|
-
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
369
|
-
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
370
|
-
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
371
|
-
"created_at": "2014-05-20T22:39:43Z",
|
372
|
-
"updated_at": "2014-07-25T16:37:43Z",
|
373
|
-
"pushed_at": "2014-07-25T16:37:42Z",
|
374
|
-
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
375
|
-
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
376
|
-
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
377
|
-
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
378
|
-
"homepage": null,
|
379
|
-
"size": 612,
|
380
|
-
"stargazers_count": 0,
|
381
|
-
"watchers_count": 0,
|
382
|
-
"language": null,
|
383
|
-
"has_issues": true,
|
384
|
-
"has_downloads": true,
|
385
|
-
"has_wiki": true,
|
386
|
-
"forks_count": 1,
|
387
|
-
"mirror_url": null,
|
388
|
-
"open_issues_count": 25,
|
389
|
-
"forks": 1,
|
390
|
-
"open_issues": 25,
|
391
|
-
"watchers": 0,
|
392
|
-
"default_branch": "master"
|
393
|
-
},
|
394
|
-
"sender": {
|
395
|
-
"login": "baxterthehacker",
|
396
|
-
"id": 6752317,
|
397
|
-
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
398
|
-
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
399
|
-
"url": "https://api.github.com/users/baxterthehacker",
|
400
|
-
"html_url": "https://github.com/baxterthehacker",
|
401
|
-
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
402
|
-
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
403
|
-
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
404
|
-
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
405
|
-
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
406
|
-
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
407
|
-
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
408
|
-
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
409
|
-
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
410
|
-
"type": "User",
|
411
|
-
"site_admin": false
|
412
|
-
}
|
413
|
-
}
|