Class: PrLog::Formatter

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

Overview

Format new pull requests from github search response

Instance Method Summary collapse

Instance Method Details

#entriesObject



6
7
8
9
10
11
12
# File 'lib/pr_log/formatter.rb', line 6

def entries
  return '' if pull_requests.empty?

  pull_requests.map { |pull_request|
    apply_template(entry_template, entry_template_data(pull_request))
  }.join.prepend("\n")
end