Class: Stratify::GitHub::Event::CommitCommentEvent

Inherits:
Stratify::GitHub::Event show all
Defined in:
lib/stratify-github/events.rb

Class Method Summary collapse

Methods inherited from Stratify::GitHub::Event

repo_url, trunc

Class Method Details

.make(activity, api_hash) ⇒ Object



16
17
18
19
# File 'lib/stratify-github/events.rb', line 16

def self.make(activity, api_hash)
  activity.repository = repo_url(api_hash['url'])
  activity
end

.text(activity) ⇒ Object



20
21
22
# File 'lib/stratify-github/events.rb', line 20

def self.text(activity)
  "#{activity.actor} commented on a commit to #{activity.repository}"
end