lita-github_pr_list 0.0.6 → 0.0.7
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 +35 -0
- data/lib/lita/github_pr_list/version.rb +1 -1
- data/lib/lita/github_pr_list/web_hook.rb +5 -4
- data/lib/lita/github_pr_list.rb +2 -1
- data/lib/lita/handlers/github_pr_list.rb +16 -10
- data/spec/fixtures/edit_comment.json +49 -0
- data/spec/fixtures/pull_request_review_comment.json +442 -0
- data/spec/lita/handlers/check_list_spec.rb +29 -0
- metadata +32 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebc0fc19185a5ac330656f0b67999f58c0e5e988
|
4
|
+
data.tar.gz: 82b3c03c6f58dbcc0480283bb3b03c10fc1c12fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 127fb68e93ed3eb11befa20e04bc1307114b96798871333c2fa047c8d3d18bc4df7993e2afc0e6797ce104e63c14cb0b6237e953f157784443803486e6937ba8
|
7
|
+
data.tar.gz: 9532d705c109b36883605803d067bc9422528bea89bed55d53a43a8a0bf5af7b7e0a6397bc0304e22d68297a94521068a6fc58d760d3d5c28081c32e258adab7
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Lita
|
2
|
+
module GithubPrList
|
3
|
+
class CheckList
|
4
|
+
attr_accessor :request, :response, :payload, :redis, :comment_body, :comment_id, :issue_owner,
|
5
|
+
:issue_title, :issue_html_url, :repo_name, :github_token, :github_client
|
6
|
+
|
7
|
+
def initialize(params = {})
|
8
|
+
self.github_token = params.fetch(:github_token, nil)
|
9
|
+
self.response = params.fetch(:response, nil)
|
10
|
+
self.request = params.fetch(:request, nil)
|
11
|
+
self.redis = params.fetch(:redis, nil)
|
12
|
+
|
13
|
+
raise "invalid params in #{self.class.name}" if response.nil? || request.nil? || redis.nil?
|
14
|
+
|
15
|
+
self.github_client = Octokit::Client.new(access_token: github_token, auto_paginate: true)
|
16
|
+
|
17
|
+
list = "- [ ] Change log
|
18
|
+
- [ ] Demo page
|
19
|
+
- [ ] Product owner signoff
|
20
|
+
- [ ] Merge into master
|
21
|
+
- [ ] Deploy to production "
|
22
|
+
|
23
|
+
self.payload = JSON.parse(request.body.read)
|
24
|
+
self.comment_body = "#{payload["comment"]["body"]} #{list}"
|
25
|
+
self.comment_id = payload["comment"]["id"]
|
26
|
+
self.issue_owner = payload["pull_request"]["user"]["login"]
|
27
|
+
self.issue_title = payload["pull_request"]["title"]
|
28
|
+
self.issue_html_url = payload["pull_request"]["html_url"]
|
29
|
+
self.repo_name = payload["pull_request"]["head"]["full_name"]
|
30
|
+
|
31
|
+
github_client.update_comment("octokit/octokit.rb", comment_id.to_i, comment_body)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -3,15 +3,16 @@ require "octokit"
|
|
3
3
|
module Lita
|
4
4
|
module GithubPrList
|
5
5
|
class WebHook
|
6
|
-
attr_accessor :web_hook, :github_client, :github_organization, :github_pull_requests, :response
|
6
|
+
attr_accessor :web_hook, :github_client, :github_organization, :github_pull_requests, :response, :event_type
|
7
7
|
|
8
8
|
def initialize(params = {})
|
9
9
|
github_token = params.fetch(:github_token, nil)
|
10
10
|
self.github_organization = params.fetch(:github_organization, nil)
|
11
11
|
self.web_hook = params.fetch(:web_hook, nil)
|
12
12
|
self.response = params.fetch(:response, nil)
|
13
|
+
self.event_type = params.fetch(:event_type, nil)
|
13
14
|
|
14
|
-
if github_token.nil? || github_organization.nil? || web_hook.nil? || response.nil?
|
15
|
+
if github_token.nil? || github_organization.nil? || web_hook.nil? || response.nil? || event_type.nil?
|
15
16
|
raise "invalid params in #{self.class.name}"
|
16
17
|
end
|
17
18
|
|
@@ -36,7 +37,7 @@ module Lita
|
|
36
37
|
def remove_hooks
|
37
38
|
response.reply "Removing #{web_hook} webhooks from #{github_organization}, this may take awhile..."
|
38
39
|
|
39
|
-
github_client.organization_repositories(github_organization,
|
40
|
+
github_client.organization_repositories(github_organization, type: 'all').each do |repo|
|
40
41
|
github_client.hooks(repo.full_name).each do |hook|
|
41
42
|
if hook.config.url == web_hook
|
42
43
|
github_client.remove_hook(repo.full_name, hook.id)
|
@@ -51,7 +52,7 @@ module Lita
|
|
51
52
|
|
52
53
|
def create_hook(repo_full_name)
|
53
54
|
config = { url: "#{web_hook}", content_type: "json" }
|
54
|
-
events = { events: [
|
55
|
+
events = { events: [event_type] }
|
55
56
|
|
56
57
|
github_client.create_hook(repo_full_name, "web", config, events)
|
57
58
|
end
|
data/lib/lita/github_pr_list.rb
CHANGED
@@ -2,6 +2,7 @@ require "lita/github_pr_list/version"
|
|
2
2
|
require "lita/github_pr_list/status"
|
3
3
|
require "lita/github_pr_list/comment_hook"
|
4
4
|
require "lita/github_pr_list/pull_request"
|
5
|
-
require "lita/github_pr_list/alias_user"
|
6
5
|
require "lita/github_pr_list/web_hook"
|
6
|
+
require "lita/github_pr_list/alias_user"
|
7
|
+
require "lita/github_pr_list/check_list"
|
7
8
|
require "lita/handlers/github_pr_list"
|
@@ -32,10 +32,10 @@ module Lita
|
|
32
32
|
)
|
33
33
|
|
34
34
|
http.post "/comment_hook", :comment_hook
|
35
|
+
http.post "/check_list", :check_list
|
35
36
|
|
36
37
|
def list_org_pr(response)
|
37
|
-
Lita::GithubPrList::PullRequest.new({ github_organization: github_organization,
|
38
|
-
github_token: github_access_token,
|
38
|
+
Lita::GithubPrList::PullRequest.new({ github_organization: github_organization, github_token: github_access_token,
|
39
39
|
response: response, redis: redis }).list
|
40
40
|
end
|
41
41
|
|
@@ -45,7 +45,15 @@ module Lita
|
|
45
45
|
|
46
46
|
def comment_hook(request, response)
|
47
47
|
message = Lita::GithubPrList::CommentHook.new({ request: request, response: response, redis: redis }).message
|
48
|
+
message_rooms(message, response)
|
49
|
+
end
|
50
|
+
|
51
|
+
def check_list(request, response)
|
52
|
+
check_list_params = { request: request, response: response, redis: redis, github_token: github_access_token }
|
53
|
+
Lita::GithubPrList::CheckList.new(check_list_params)
|
54
|
+
end
|
48
55
|
|
56
|
+
def message_rooms(message, response)
|
49
57
|
rooms = Lita.config.adapter.rooms
|
50
58
|
rooms ||= [:all]
|
51
59
|
rooms.each do |room|
|
@@ -57,17 +65,15 @@ module Lita
|
|
57
65
|
end
|
58
66
|
|
59
67
|
def add_pr_hooks(response)
|
60
|
-
Lita::GithubPrList::WebHook.new(github_organization: github_organization,
|
61
|
-
|
62
|
-
|
63
|
-
response: response).add_hooks
|
68
|
+
Lita::GithubPrList::WebHook.new(github_organization: github_organization, github_token: github_access_token,
|
69
|
+
web_hook: web_hook, response: response,
|
70
|
+
event_type: "pull_request_review_comment").add_hooks
|
64
71
|
end
|
65
72
|
|
66
73
|
def remove_pr_hooks(response)
|
67
|
-
Lita::GithubPrList::WebHook.new(github_organization: github_organization,
|
68
|
-
|
69
|
-
|
70
|
-
response: response).remove_hooks
|
74
|
+
Lita::GithubPrList::WebHook.new(github_organization: github_organization, github_token: github_access_token,
|
75
|
+
web_hook: web_hook, response: response,
|
76
|
+
event_type: "pull_request_review_comment").remove_hooks
|
71
77
|
end
|
72
78
|
|
73
79
|
private
|
@@ -0,0 +1,49 @@
|
|
1
|
+
{
|
2
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
|
3
|
+
"id": 1,
|
4
|
+
"diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
|
5
|
+
"path": "file1.txt",
|
6
|
+
"position": 1,
|
7
|
+
"original_position": 4,
|
8
|
+
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
9
|
+
"original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
|
10
|
+
"user": {
|
11
|
+
"login": "octocat",
|
12
|
+
"id": 1,
|
13
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
14
|
+
"gravatar_id": "somehexcode",
|
15
|
+
"url": "https://api.github.com/users/octocat",
|
16
|
+
"html_url": "https://github.com/octocat",
|
17
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
18
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
19
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
20
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
21
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
22
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
23
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
24
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
25
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
26
|
+
"type": "User",
|
27
|
+
"site_admin": false
|
28
|
+
},
|
29
|
+
"body": "Great stuff - [ ] Change log
|
30
|
+
- [ ] Demo page
|
31
|
+
- [ ] Product owner signoff
|
32
|
+
- [ ] Merge into master
|
33
|
+
- [ ] Deploy to production",
|
34
|
+
"created_at": "2011-04-14T16:00:49Z",
|
35
|
+
"updated_at": "2011-04-14T16:00:49Z",
|
36
|
+
"html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
|
37
|
+
"pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
|
38
|
+
"_links": {
|
39
|
+
"self": {
|
40
|
+
"href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
|
41
|
+
},
|
42
|
+
"html": {
|
43
|
+
"href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
|
44
|
+
},
|
45
|
+
"pull_request": {
|
46
|
+
"href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,442 @@
|
|
1
|
+
{
|
2
|
+
"action": "created",
|
3
|
+
"comment": {
|
4
|
+
"url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments/15410670",
|
5
|
+
"id": 15410670,
|
6
|
+
"diff_hunk": "@@ -1,2 +1,4 @@\n public-repo",
|
7
|
+
"path": "README.md",
|
8
|
+
"position": 1,
|
9
|
+
"original_position": 1,
|
10
|
+
"commit_id": "05c588ba8cd510ecbe112d020f215facb17817a6",
|
11
|
+
"original_commit_id": "05c588ba8cd510ecbe112d020f215facb17817a6",
|
12
|
+
"user": {
|
13
|
+
"login": "baxterthehacker",
|
14
|
+
"id": 6752317,
|
15
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
16
|
+
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
17
|
+
"url": "https://api.github.com/users/baxterthehacker",
|
18
|
+
"html_url": "https://github.com/baxterthehacker",
|
19
|
+
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
20
|
+
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
21
|
+
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
22
|
+
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
23
|
+
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
24
|
+
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
25
|
+
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
26
|
+
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
27
|
+
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
28
|
+
"type": "User",
|
29
|
+
"site_admin": false
|
30
|
+
},
|
31
|
+
"body": "Maybe you should use more emojji on this line.",
|
32
|
+
"created_at": "2014-07-25T16:37:42Z",
|
33
|
+
"updated_at": "2014-07-25T16:37:42Z",
|
34
|
+
"html_url": "https://github.com/baxterthehacker/public-repo/pull/48#discussion_r15410670",
|
35
|
+
"pull_request_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48",
|
36
|
+
"_links": {
|
37
|
+
"self": {
|
38
|
+
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments/15410670"
|
39
|
+
},
|
40
|
+
"html": {
|
41
|
+
"href": "https://github.com/baxterthehacker/public-repo/pull/48#discussion_r15410670"
|
42
|
+
},
|
43
|
+
"pull_request": {
|
44
|
+
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48"
|
45
|
+
}
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"pull_request": {
|
49
|
+
"url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48",
|
50
|
+
"id": 18905849,
|
51
|
+
"html_url": "https://github.com/baxterthehacker/public-repo/pull/48",
|
52
|
+
"diff_url": "https://github.com/baxterthehacker/public-repo/pull/48.diff",
|
53
|
+
"patch_url": "https://github.com/baxterthehacker/public-repo/pull/48.patch",
|
54
|
+
"issue_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/48",
|
55
|
+
"number": 48,
|
56
|
+
"state": "open",
|
57
|
+
"title": "Update the README with new information",
|
58
|
+
"user": {
|
59
|
+
"login": "baxterthehacker",
|
60
|
+
"id": 6752317,
|
61
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
62
|
+
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
63
|
+
"url": "https://api.github.com/users/baxterthehacker",
|
64
|
+
"html_url": "https://github.com/baxterthehacker",
|
65
|
+
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
66
|
+
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
67
|
+
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
68
|
+
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
69
|
+
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
70
|
+
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
71
|
+
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
72
|
+
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
73
|
+
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
74
|
+
"type": "User",
|
75
|
+
"site_admin": false
|
76
|
+
},
|
77
|
+
"body": "This is a pretty simple change that we need to pull into master.",
|
78
|
+
"created_at": "2014-07-25T16:37:42Z",
|
79
|
+
"updated_at": "2014-07-25T16:37:42Z",
|
80
|
+
"closed_at": null,
|
81
|
+
"merged_at": null,
|
82
|
+
"merge_commit_sha": "854a8c117c8ed88ef1e87f33051720615956cad6",
|
83
|
+
"assignee": null,
|
84
|
+
"milestone": null,
|
85
|
+
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48/commits",
|
86
|
+
"review_comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48/comments",
|
87
|
+
"review_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments/{number}",
|
88
|
+
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/48/comments",
|
89
|
+
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/05c588ba8cd510ecbe112d020f215facb17817a6",
|
90
|
+
"head": {
|
91
|
+
"label": "baxterthehacker:changes",
|
92
|
+
"ref": "changes",
|
93
|
+
"sha": "05c588ba8cd510ecbe112d020f215facb17817a6",
|
94
|
+
"user": {
|
95
|
+
"login": "baxterthehacker",
|
96
|
+
"id": 6752317,
|
97
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
98
|
+
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
99
|
+
"url": "https://api.github.com/users/baxterthehacker",
|
100
|
+
"html_url": "https://github.com/baxterthehacker",
|
101
|
+
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
102
|
+
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
103
|
+
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
104
|
+
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
105
|
+
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
106
|
+
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
107
|
+
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
108
|
+
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
109
|
+
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
110
|
+
"type": "User",
|
111
|
+
"site_admin": false
|
112
|
+
},
|
113
|
+
"repo": {
|
114
|
+
"id": 20000106,
|
115
|
+
"name": "public-repo",
|
116
|
+
"full_name": "baxterthehacker/public-repo",
|
117
|
+
"owner": {
|
118
|
+
"login": "baxterthehacker",
|
119
|
+
"id": 6752317,
|
120
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
121
|
+
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
122
|
+
"url": "https://api.github.com/users/baxterthehacker",
|
123
|
+
"html_url": "https://github.com/baxterthehacker",
|
124
|
+
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
125
|
+
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
126
|
+
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
127
|
+
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
128
|
+
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
129
|
+
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
130
|
+
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
131
|
+
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
132
|
+
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
133
|
+
"type": "User",
|
134
|
+
"site_admin": false
|
135
|
+
},
|
136
|
+
"private": false,
|
137
|
+
"html_url": "https://github.com/baxterthehacker/public-repo",
|
138
|
+
"description": "",
|
139
|
+
"fork": false,
|
140
|
+
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
141
|
+
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
142
|
+
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
143
|
+
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
144
|
+
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
145
|
+
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
146
|
+
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
147
|
+
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
148
|
+
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
149
|
+
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
150
|
+
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
151
|
+
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
152
|
+
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
153
|
+
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
154
|
+
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
155
|
+
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
156
|
+
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
157
|
+
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
158
|
+
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
159
|
+
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
160
|
+
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
161
|
+
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
162
|
+
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
163
|
+
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
164
|
+
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments/{number}",
|
165
|
+
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
166
|
+
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
167
|
+
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
168
|
+
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
169
|
+
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
170
|
+
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
171
|
+
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
172
|
+
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
173
|
+
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
174
|
+
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
175
|
+
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
176
|
+
"created_at": "2014-05-20T22:39:43Z",
|
177
|
+
"updated_at": "2014-07-25T16:37:43Z",
|
178
|
+
"pushed_at": "2014-07-25T16:37:42Z",
|
179
|
+
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
180
|
+
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
181
|
+
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
182
|
+
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
183
|
+
"homepage": null,
|
184
|
+
"size": 612,
|
185
|
+
"stargazers_count": 1,
|
186
|
+
"watchers_count": 1,
|
187
|
+
"language": null,
|
188
|
+
"has_issues": true,
|
189
|
+
"has_downloads": true,
|
190
|
+
"has_wiki": true,
|
191
|
+
"forks_count": 0,
|
192
|
+
"mirror_url": null,
|
193
|
+
"open_issues_count": 25,
|
194
|
+
"forks": 0,
|
195
|
+
"open_issues": 25,
|
196
|
+
"watchers": 1,
|
197
|
+
"default_branch": "master"
|
198
|
+
}
|
199
|
+
},
|
200
|
+
"base": {
|
201
|
+
"label": "baxterthehacker:master",
|
202
|
+
"ref": "master",
|
203
|
+
"sha": "69a8b72e2d3d955075d47f03d902929dcaf74033",
|
204
|
+
"user": {
|
205
|
+
"login": "baxterthehacker",
|
206
|
+
"id": 6752317,
|
207
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
208
|
+
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
209
|
+
"url": "https://api.github.com/users/baxterthehacker",
|
210
|
+
"html_url": "https://github.com/baxterthehacker",
|
211
|
+
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
212
|
+
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
213
|
+
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
214
|
+
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
215
|
+
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
216
|
+
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
217
|
+
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
218
|
+
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
219
|
+
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
220
|
+
"type": "User",
|
221
|
+
"site_admin": false
|
222
|
+
},
|
223
|
+
"repo": {
|
224
|
+
"id": 20000106,
|
225
|
+
"name": "public-repo",
|
226
|
+
"full_name": "baxterthehacker/public-repo",
|
227
|
+
"owner": {
|
228
|
+
"login": "baxterthehacker",
|
229
|
+
"id": 6752317,
|
230
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
231
|
+
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
232
|
+
"url": "https://api.github.com/users/baxterthehacker",
|
233
|
+
"html_url": "https://github.com/baxterthehacker",
|
234
|
+
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
235
|
+
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
236
|
+
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
237
|
+
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
238
|
+
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
239
|
+
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
240
|
+
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
241
|
+
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
242
|
+
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
243
|
+
"type": "User",
|
244
|
+
"site_admin": false
|
245
|
+
},
|
246
|
+
"private": false,
|
247
|
+
"html_url": "https://github.com/baxterthehacker/public-repo",
|
248
|
+
"description": "",
|
249
|
+
"fork": false,
|
250
|
+
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
251
|
+
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
252
|
+
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
253
|
+
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
254
|
+
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
255
|
+
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
256
|
+
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
257
|
+
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
258
|
+
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
259
|
+
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
260
|
+
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
261
|
+
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
262
|
+
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
263
|
+
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
264
|
+
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
265
|
+
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
266
|
+
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
267
|
+
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
268
|
+
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
269
|
+
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
270
|
+
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
271
|
+
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
272
|
+
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
273
|
+
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
274
|
+
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments/{number}",
|
275
|
+
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
276
|
+
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
277
|
+
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
278
|
+
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
279
|
+
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
280
|
+
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
281
|
+
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
282
|
+
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
283
|
+
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
284
|
+
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
285
|
+
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
286
|
+
"created_at": "2014-05-20T22:39:43Z",
|
287
|
+
"updated_at": "2014-07-25T16:37:43Z",
|
288
|
+
"pushed_at": "2014-07-25T16:37:42Z",
|
289
|
+
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
290
|
+
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
291
|
+
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
292
|
+
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
293
|
+
"homepage": null,
|
294
|
+
"size": 612,
|
295
|
+
"stargazers_count": 1,
|
296
|
+
"watchers_count": 1,
|
297
|
+
"language": null,
|
298
|
+
"has_issues": true,
|
299
|
+
"has_downloads": true,
|
300
|
+
"has_wiki": true,
|
301
|
+
"forks_count": 0,
|
302
|
+
"mirror_url": null,
|
303
|
+
"open_issues_count": 25,
|
304
|
+
"forks": 0,
|
305
|
+
"open_issues": 25,
|
306
|
+
"watchers": 1,
|
307
|
+
"default_branch": "master"
|
308
|
+
}
|
309
|
+
},
|
310
|
+
"_links": {
|
311
|
+
"self": {
|
312
|
+
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48"
|
313
|
+
},
|
314
|
+
"html": {
|
315
|
+
"href": "https://github.com/baxterthehacker/public-repo/pull/48"
|
316
|
+
},
|
317
|
+
"issue": {
|
318
|
+
"href": "https://api.github.com/repos/baxterthehacker/public-repo/issues/48"
|
319
|
+
},
|
320
|
+
"comments": {
|
321
|
+
"href": "https://api.github.com/repos/baxterthehacker/public-repo/issues/48/comments"
|
322
|
+
},
|
323
|
+
"review_comments": {
|
324
|
+
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48/comments"
|
325
|
+
},
|
326
|
+
"review_comment": {
|
327
|
+
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments/{number}"
|
328
|
+
},
|
329
|
+
"commits": {
|
330
|
+
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/48/commits"
|
331
|
+
},
|
332
|
+
"statuses": {
|
333
|
+
"href": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/05c588ba8cd510ecbe112d020f215facb17817a6"
|
334
|
+
}
|
335
|
+
}
|
336
|
+
},
|
337
|
+
"repository": {
|
338
|
+
"id": 20000106,
|
339
|
+
"name": "public-repo",
|
340
|
+
"full_name": "baxterthehacker/public-repo",
|
341
|
+
"owner": {
|
342
|
+
"login": "baxterthehacker",
|
343
|
+
"id": 6752317,
|
344
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
345
|
+
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
346
|
+
"url": "https://api.github.com/users/baxterthehacker",
|
347
|
+
"html_url": "https://github.com/baxterthehacker",
|
348
|
+
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
349
|
+
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
350
|
+
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
351
|
+
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
352
|
+
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
353
|
+
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
354
|
+
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
355
|
+
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
356
|
+
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
357
|
+
"type": "User",
|
358
|
+
"site_admin": false
|
359
|
+
},
|
360
|
+
"private": false,
|
361
|
+
"html_url": "https://github.com/baxterthehacker/public-repo",
|
362
|
+
"description": "",
|
363
|
+
"fork": false,
|
364
|
+
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
365
|
+
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
366
|
+
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
367
|
+
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
368
|
+
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
369
|
+
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
370
|
+
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
371
|
+
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
372
|
+
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
373
|
+
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
374
|
+
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
375
|
+
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
376
|
+
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
377
|
+
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
378
|
+
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
379
|
+
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
380
|
+
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
381
|
+
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
382
|
+
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
383
|
+
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
384
|
+
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
385
|
+
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
386
|
+
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
387
|
+
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
388
|
+
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments/{number}",
|
389
|
+
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
390
|
+
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
391
|
+
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
392
|
+
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
393
|
+
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
394
|
+
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
395
|
+
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
396
|
+
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
397
|
+
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
398
|
+
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
399
|
+
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
400
|
+
"created_at": "2014-05-20T22:39:43Z",
|
401
|
+
"updated_at": "2014-07-25T16:37:43Z",
|
402
|
+
"pushed_at": "2014-07-25T16:37:42Z",
|
403
|
+
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
404
|
+
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
405
|
+
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
406
|
+
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
407
|
+
"homepage": null,
|
408
|
+
"size": 612,
|
409
|
+
"stargazers_count": 0,
|
410
|
+
"watchers_count": 0,
|
411
|
+
"language": null,
|
412
|
+
"has_issues": true,
|
413
|
+
"has_downloads": true,
|
414
|
+
"has_wiki": true,
|
415
|
+
"forks_count": 1,
|
416
|
+
"mirror_url": null,
|
417
|
+
"open_issues_count": 25,
|
418
|
+
"forks": 1,
|
419
|
+
"open_issues": 25,
|
420
|
+
"watchers": 0,
|
421
|
+
"default_branch": "master"
|
422
|
+
},
|
423
|
+
"sender": {
|
424
|
+
"login": "baxterthehacker",
|
425
|
+
"id": 6752317,
|
426
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?",
|
427
|
+
"gravatar_id": "258ae60b5512c8402b93673b7478d9c6",
|
428
|
+
"url": "https://api.github.com/users/baxterthehacker",
|
429
|
+
"html_url": "https://github.com/baxterthehacker",
|
430
|
+
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
431
|
+
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
432
|
+
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
433
|
+
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
434
|
+
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
435
|
+
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
436
|
+
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
437
|
+
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
438
|
+
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
439
|
+
"type": "User",
|
440
|
+
"site_admin": false
|
441
|
+
}
|
442
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
describe Lita::Handlers::GithubPrList, lita_handler: true do
|
2
|
+
before :each do
|
3
|
+
Lita.config.handlers.github_pr_list.github_organization = 'aaaaaabbbbbbcccccc'
|
4
|
+
Lita.config.handlers.github_pr_list.github_access_token = 'wafflesausages111111'
|
5
|
+
end
|
6
|
+
|
7
|
+
let(:pull_request_review_comment) { File.read("spec/fixtures/pull_request_review_comment.json") }
|
8
|
+
let(:edit_comment_response_content) { [File.read("spec/fixtures/edit_comment.json")] }
|
9
|
+
let(:edit_comment_response) { Rack::Response.new(edit_comment_response_content, 200, { 'Content-Type' => 'json' }) }
|
10
|
+
let(:check_list) do
|
11
|
+
"- [ ] Change log
|
12
|
+
- [ ] Demo page
|
13
|
+
- [ ] Product owner signoff
|
14
|
+
- [ ] Merge into master
|
15
|
+
- [ ] Deploy to production"
|
16
|
+
end
|
17
|
+
|
18
|
+
it { routes_http(:post, "/check_list").to(:check_list) }
|
19
|
+
|
20
|
+
it "mentions the github user in the room and tell them the check list was added to the pull request" do
|
21
|
+
allow_any_instance_of(Octokit::Client).to receive(:update_comment).and_return(edit_comment_response)
|
22
|
+
request = Rack::Request.new("rack.input" => StringIO.new(pull_request_review_comment))
|
23
|
+
response = Rack::Response.new(['Hello'], 200, {'Content-Type' => 'text/plain'})
|
24
|
+
|
25
|
+
github_handler = Lita::Handlers::GithubPrList.new
|
26
|
+
github_handler.check_list(request, response)
|
27
|
+
expect(edit_comment_response.body.first).to include(check_list)
|
28
|
+
end
|
29
|
+
end
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van den Beuken
|
@@ -13,118 +13,118 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-
|
16
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: lita
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
21
21
|
requirements:
|
22
|
-
- -
|
22
|
+
- - '>='
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: '0'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
|
-
- -
|
29
|
+
- - '>='
|
30
30
|
- !ruby/object:Gem::Version
|
31
31
|
version: '0'
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: octokit
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ~>
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '3.0'
|
39
39
|
type: :runtime
|
40
40
|
prerelease: false
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '3.0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: bundler
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- -
|
50
|
+
- - ~>
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '1.6'
|
53
53
|
type: :development
|
54
54
|
prerelease: false
|
55
55
|
version_requirements: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- -
|
57
|
+
- - ~>
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '1.6'
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: rake
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - '>='
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
69
|
version_requirements: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- -
|
71
|
+
- - '>='
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
75
|
name: pry
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- -
|
78
|
+
- - '>='
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
type: :development
|
82
82
|
prerelease: false
|
83
83
|
version_requirements: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- -
|
85
|
+
- - '>='
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
- !ruby/object:Gem::Dependency
|
89
89
|
name: rspec
|
90
90
|
requirement: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- -
|
92
|
+
- - '>='
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
type: :development
|
96
96
|
prerelease: false
|
97
97
|
version_requirements: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
|
-
- -
|
99
|
+
- - '>='
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: '0'
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: rspec-instafail
|
104
104
|
requirement: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
|
-
- -
|
106
|
+
- - '>='
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
109
|
type: :development
|
110
110
|
prerelease: false
|
111
111
|
version_requirements: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- -
|
113
|
+
- - '>='
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
- !ruby/object:Gem::Dependency
|
117
117
|
name: simplecov
|
118
118
|
requirement: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- -
|
120
|
+
- - '>='
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
type: :development
|
124
124
|
prerelease: false
|
125
125
|
version_requirements: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- -
|
127
|
+
- - '>='
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
description: List open pull requests for an organization.
|
@@ -141,10 +141,10 @@ executables:
|
|
141
141
|
extensions: []
|
142
142
|
extra_rdoc_files: []
|
143
143
|
files:
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
144
|
+
- .gitignore
|
145
|
+
- .hound.yml
|
146
|
+
- .rspec
|
147
|
+
- .travis.yml
|
148
148
|
- Gemfile
|
149
149
|
- LICENSE
|
150
150
|
- README.md
|
@@ -153,6 +153,7 @@ files:
|
|
153
153
|
- bin/rspec
|
154
154
|
- lib/lita/github_pr_list.rb
|
155
155
|
- lib/lita/github_pr_list/alias_user.rb
|
156
|
+
- lib/lita/github_pr_list/check_list.rb
|
156
157
|
- lib/lita/github_pr_list/comment_hook.rb
|
157
158
|
- lib/lita/github_pr_list/pull_request.rb
|
158
159
|
- lib/lita/github_pr_list/status.rb
|
@@ -160,6 +161,7 @@ files:
|
|
160
161
|
- lib/lita/github_pr_list/web_hook.rb
|
161
162
|
- lib/lita/handlers/github_pr_list.rb
|
162
163
|
- lita-github_pr_list.gemspec
|
164
|
+
- spec/fixtures/edit_comment.json
|
163
165
|
- spec/fixtures/issue_comment_event_failed.json
|
164
166
|
- spec/fixtures/issue_comment_event_fixed.json
|
165
167
|
- spec/fixtures/issue_comment_event_in_review.json
|
@@ -170,10 +172,12 @@ files:
|
|
170
172
|
- spec/fixtures/issue_comments_new.json
|
171
173
|
- spec/fixtures/issue_comments_passed.json
|
172
174
|
- spec/fixtures/one_org_issue_list.json
|
175
|
+
- spec/fixtures/pull_request_review_comment.json
|
173
176
|
- spec/fixtures/repository_hooks.json
|
174
177
|
- spec/fixtures/repository_list.json
|
175
178
|
- spec/fixtures/two_org_issue_list.json
|
176
179
|
- spec/lita/handlers/alias_spec.rb
|
180
|
+
- spec/lita/handlers/check_list_spec.rb
|
177
181
|
- spec/lita/handlers/comment_hook_spec.rb
|
178
182
|
- spec/lita/handlers/pull_request_spec.rb
|
179
183
|
- spec/lita/handlers/web_hook_spec.rb
|
@@ -189,21 +193,22 @@ require_paths:
|
|
189
193
|
- lib
|
190
194
|
required_ruby_version: !ruby/object:Gem::Requirement
|
191
195
|
requirements:
|
192
|
-
- -
|
196
|
+
- - '>='
|
193
197
|
- !ruby/object:Gem::Version
|
194
198
|
version: '0'
|
195
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
200
|
requirements:
|
197
|
-
- -
|
201
|
+
- - '>='
|
198
202
|
- !ruby/object:Gem::Version
|
199
203
|
version: '0'
|
200
204
|
requirements: []
|
201
205
|
rubyforge_project:
|
202
|
-
rubygems_version: 2.
|
206
|
+
rubygems_version: 2.0.0
|
203
207
|
signing_key:
|
204
208
|
specification_version: 4
|
205
209
|
summary: List open pull requests for an organization.
|
206
210
|
test_files:
|
211
|
+
- spec/fixtures/edit_comment.json
|
207
212
|
- spec/fixtures/issue_comment_event_failed.json
|
208
213
|
- spec/fixtures/issue_comment_event_fixed.json
|
209
214
|
- spec/fixtures/issue_comment_event_in_review.json
|
@@ -214,10 +219,12 @@ test_files:
|
|
214
219
|
- spec/fixtures/issue_comments_new.json
|
215
220
|
- spec/fixtures/issue_comments_passed.json
|
216
221
|
- spec/fixtures/one_org_issue_list.json
|
222
|
+
- spec/fixtures/pull_request_review_comment.json
|
217
223
|
- spec/fixtures/repository_hooks.json
|
218
224
|
- spec/fixtures/repository_list.json
|
219
225
|
- spec/fixtures/two_org_issue_list.json
|
220
226
|
- spec/lita/handlers/alias_spec.rb
|
227
|
+
- spec/lita/handlers/check_list_spec.rb
|
221
228
|
- spec/lita/handlers/comment_hook_spec.rb
|
222
229
|
- spec/lita/handlers/pull_request_spec.rb
|
223
230
|
- spec/lita/handlers/web_hook_spec.rb
|