aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2019-01-18 16:35:09 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2019-01-18 16:35:09 -0500
commit3c6cfdf7adf4848976b7f425b1811d447b130f6a (patch)
tree48e0555b7e2aca9337528ad888a1a93671b955b4
parent5a0230c67f852fb21173f99647e76336897446c1 (diff)
downloadrails-3c6cfdf7adf4848976b7f425b1811d447b130f6a.tar.gz
rails-3c6cfdf7adf4848976b7f425b1811d447b130f6a.tar.bz2
rails-3c6cfdf7adf4848976b7f425b1811d447b130f6a.zip
Change release_sumary task to work in first releases of the series
-rw-r--r--tasks/release.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/tasks/release.rb b/tasks/release.rb
index ddf491d858..6784330fd6 100644
--- a/tasks/release.rb
+++ b/tasks/release.rb
@@ -136,16 +136,20 @@ namespace :changelog do
end
end
- task :release_summary, [:base_release] do |_, args|
+ task :release_summary, [:base_release, :release] do |_, args|
release_regexp = args[:base_release] ? Regexp.escape(args[:base_release]) : /\d+\.\d+\.\d+/
+ puts release
+
FRAMEWORKS.each do |fw|
puts "## #{FRAMEWORK_NAMES[fw]}"
fname = File.join fw, "CHANGELOG.md"
contents = File.readlines fname
contents.shift
changes = []
- until contents.first =~ /^## Rails #{release_regexp}.*$/
+ until contents.first =~ /^## Rails #{release_regexp}.*$/ ||
+ contents.first =~ /^Please check.*for previous changes\.$/ ||
+ contents.empty?
changes << contents.shift
end