Class: GitHub::Payload::Formatter::IssueCommentEvent

Inherits:
Event
  • Object
show all
Includes:
Helpers::Issues, Helpers::Push
Defined in:
lib/github/payload/formatter/issue_comment_event.rb

Instance Attribute Summary

Attributes inherited from Event

#payload

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

#issue, sample_payload

Methods included from Helpers::Meta

#repo, sample_payload, #sender

Methods included from Helpers::Actions

#action, #opened?

Methods inherited from Event

#initialize, objectify

Constructor Details

This class inherits a constructor from GitHub::Payload::Formatter::Event

Instance Method Details

#sender_nameObject



7
8
9
# File 'lib/github/payload/formatter/issue_comment_event.rb', line 7

def sender_name
  payload['comment']['user']['login']
end

#summary_messageObject



15
16
17
# File 'lib/github/payload/formatter/issue_comment_event.rb', line 15

def summary_message
  "[#{repo_name}] #{sender_name} just commented."
end

#summary_urlObject



11
12
13
# File 'lib/github/payload/formatter/issue_comment_event.rb', line 11

def summary_url
  payload['comment']['url']
end