Class: Worklog::Github::PushEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/github/push_event.rb

Overview

Event representing a push event

Instance Method Summary collapse

Instance Method Details

#to_log_entryObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/github/push_event.rb', line 9

def to_log_entry(*)
  WorkLogger.debug('Converting PushEvent to LogEntry')
  LogEntry.new(
    key: 'github-push-event',
    source: 'github',
    time: Time.now, # TODO: Fix this
    message: 'Push event occurred',
    url: nil
  )
end