Class: Lita::Extensions::GitHubWebHooksCore::Hooks::PullRequestReviewComment
- Inherits:
-
Hook
- Object
- Hook
- Lita::Extensions::GitHubWebHooksCore::Hooks::PullRequestReviewComment
show all
- Includes:
- RepoHooks
- Defined in:
- lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb
Instance Attribute Summary
Attributes inherited from Hook
#payload
Instance Method Summary
collapse
Methods included from RepoHooks
#access_token, #client, #repo, #repository
Methods inherited from Hook
#initialize
Instance Method Details
#attributes ⇒ Object
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 63
def attributes
{
requester: requester,
pr: pr,
repo: repo,
ref: ref,
path: path,
number: number,
target_branch: target_branch,
candidate_branch: candidate_branch,
url: url,
body: body,
comment: ,
commenter:
}
end
|
#body ⇒ Object
39
40
41
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 39
def body
["body"]
end
|
#candidate_branch ⇒ Object
31
32
33
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 31
def candidate_branch
pr["head"]["label"]
end
|
43
44
45
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 43
def
payload["comment"]
end
|
47
48
49
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 47
def
payload["sender"]["login"]
end
|
#number ⇒ Object
55
56
57
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 55
def number
pr["number"]
end
|
#path ⇒ Object
51
52
53
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 51
def path
["path"]
end
|
#pr ⇒ Object
23
24
25
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 23
def pr
payload["pull_request"]
end
|
#ref ⇒ Object
59
60
61
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 59
def ref
pr["ref"]
end
|
#requester ⇒ Object
19
20
21
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 19
def requester
payload["sender"]
end
|
#target_branch ⇒ Object
27
28
29
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 27
def target_branch
pr["base"]["label"]
end
|
#url ⇒ Object
35
36
37
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/pull_request_review_comment.rb', line 35
def url
pr["html_url"]
end
|