github-changelog-generator/changelog_generator.rb

16 lines
332 B
Ruby
Raw Normal View History

2014-11-03 11:57:10 +00:00
#!/usr/bin/env ruby
# encoding: UTF-8
2014-11-04 16:42:13 +00:00
require_relative 'log_generator'
2014-11-03 11:57:10 +00:00
2014-11-04 16:42:13 +00:00
generator = LogGenerator.new
2014-11-03 11:57:10 +00:00
2014-11-04 16:42:13 +00:00
tag_time = generator.findPrevTagDate
pull_requests = generator.getAllClosedPullRequests
2014-11-03 11:57:10 +00:00
pull_requests.delete_if { |req|
t = Time.parse(req[:closed_at]).utc
t < tag_time
}
2014-11-04 16:42:13 +00:00
generator.compund_changelog(tag_time, pull_requests)