Class: Lita::Extensions::GitHubWebHooksCore::Hooks::CommitComment
- Inherits:
-
Hook
- Object
- Hook
- Lita::Extensions::GitHubWebHooksCore::Hooks::CommitComment
show all
- Includes:
- RepoHooks
- Defined in:
- lib/lita/extensions/github_web_hooks_core/hooks/commit_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
39
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/commit_comment.rb', line 39
def attributes
{
commenter: ,
commit_id: commit_id,
url: url,
body: body,
comment: ,
repository: repository,
repo: repo
}
end
|
#body ⇒ Object
27
28
29
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/commit_comment.rb', line 27
def body
["body"]
end
|
31
32
33
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/commit_comment.rb', line 31
def
payload["comment"]
end
|
19
20
21
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/commit_comment.rb', line 19
def
payload["sender"]
end
|
#commit_id ⇒ Object
35
36
37
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/commit_comment.rb', line 35
def commit_id
["commit_id"]
end
|
#url ⇒ Object
23
24
25
|
# File 'lib/lita/extensions/github_web_hooks_core/hooks/commit_comment.rb', line 23
def url
["html_url"]
end
|