Class: GithubDailyUpdate::Reporter::OpenPulls

Inherits:
Base
  • Object
show all
Defined in:
lib/github_daily_update/reporters/open_pulls.rb

Overview

This reporter generates a list of all the open pull-requests for an Org

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from GithubDailyUpdate::Reporter::Base

Instance Method Details

#generateObject



3
4
5
6
7
# File 'lib/github_daily_update/reporters/open_pulls.rb', line 3

def generate
  output = "## Open Pulls\n\n"
  output += open_pull_requests.map { |pull| template % pull }.join("\n")
  output
end