Class: GitHub::Payload::Formatter::IssueCommentEvent
- Includes:
- Helpers::Issues, Helpers::Push
- Defined in:
- lib/github/payload/formatter/issue_comment_event.rb
Instance Attribute Summary
Attributes inherited from Event
Instance Method Summary collapse
Methods included from Helpers::Push
#after_sha, #after_sha_url, #base_ref, #base_ref_name, #before_sha, #before_sha_url, #branch_url, #commit_messages, #commits, #compare_url, #created?, #deleted?, #distinct_commits, #forced?, #format_commit_message, #name_with_owner, #owner_name, #pusher_name, #ref, #ref_name, #repo_name, #repo_url, sample_payload, #tag?
Methods included from Helpers::Issues
Methods included from Helpers::Meta
#repo, sample_payload, #sender
Methods included from Helpers::Actions
Methods inherited from Event
Constructor Details
This class inherits a constructor from GitHub::Payload::Formatter::Event
Instance Method Details
#sender_name ⇒ Object
7 8 9 |
# File 'lib/github/payload/formatter/issue_comment_event.rb', line 7 def sender_name payload['comment']['user']['login'] end |
#summary_message ⇒ Object
15 16 17 |
# File 'lib/github/payload/formatter/issue_comment_event.rb', line 15 def "[#{repo_name}] #{sender_name} just commented." end |
#summary_url ⇒ Object
11 12 13 |
# File 'lib/github/payload/formatter/issue_comment_event.rb', line 11 def summary_url payload['comment']['url'] end |