MILESTONE = 36
ACCESS_TOKEN = "your github access token"

require 'octokit'
o = Octokit::Client.new(:access_token => ACCESS_TOKEN)

results = []
page = 1

loop do
  response = o.issues("ManageIQ/manageiq", :milestone => MILESTONE, :state => "closed", :page => page)
  break if response == []
  results += response
  page += 1
end

# Reject issues that are not Pull Requests
results.reject { |i| !i.pull_request? }

puts "Milestone Statistics for: #{results.first.milestone.title}"
puts "NUMBER,AUTHOR,ASSIGNEE,LABELS"
puts "--------------------------------------------------"
results.each do |i|
  puts "#{i.number},#{i.user.login},#{i.assignee && i.assignee.login},#{i.labels.collect(&:name).join(" ")}"
end

MILESTONE = 36
ACCESS_TOKEN = "your github access token"

require 'octokit'
o = Octokit::Client.new(:access_token => ACCESS_TOKEN)

results = []
page = 1

loop do
  response = o.issues("ManageIQ/manageiq", :milestone => MILESTONE, :state => "closed", :page => page)
  break if response == []
  results += response
  page += 1
end

# Reject issues that are not Pull Requests
results.reject { |i| !i.pull_request? }

puts "Milestone Statistics for: #{results.first.milestone.title}"
puts "NUMBER,TITLE,AUTHOR,ASSIGNEE,LABELS"
puts "--------------------------------------------------"
results.each do |i|
  puts "#{i.number},#{i.title},#{i.user.login},#{i.assignee && i.assignee.login},#{i.labels.collect(&:name).join(" ")}"
end

Add Title of PR to output
Add Title of PR to output

Need the Title of the PR to figure out what might be able to go in the changelog.
