Class: Gil

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Gil

Returns a new instance of Gil.



81
82
83
# File 'lib/gil.rb', line 81

def initialize(options)
  @lighthouse = LighthouseProject.new(options)
end

Instance Method Details

#summarise_commits(rev) ⇒ Object



85
86
87
88
89
# File 'lib/gil.rb', line 85

def summarise_commits(rev)
  logentries = Git.get_log_entries(rev)
  ticketnumbers = logentries.map { |entry| find_ticket_number(entry) }.compact.uniq
  @lighthouse.get_tickets(ticketnumbers)
end