mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-10 00:07:08 +02:00
Follow ChangeLog format
This commit is contained in:
parent
5c1ee9b350
commit
e6efa55c79
@ -21,15 +21,16 @@ namespace :release do
|
|||||||
new_version = old_version.gsub(/\.#{old_revision}\z/, ".#{old_revision.to_i + 1}")
|
new_version = old_version.gsub(/\.#{old_revision}\z/, ".#{old_revision.to_i + 1}")
|
||||||
|
|
||||||
# Update ChangeLog
|
# Update ChangeLog
|
||||||
changelog_filename = Rails.root.join('ChangeLog')
|
changelog_filename = Rails.root.join('ChangeLog.md')
|
||||||
changelog = File.read(changelog_filename)
|
changelog = File.read(changelog_filename)
|
||||||
|
|
||||||
pr_descriptions = pr_numbers.map do |number|
|
pr_descriptions = pr_numbers.map do |number|
|
||||||
"* [] #{number} https://github.com/fluent/fluentd-ui/pull/#{number.gsub('#', '')}"
|
"* [] [#{number}](https://github.com/fluent/fluentd-ui/pull/#{number.gsub('#', '')}) "
|
||||||
end.join("\n")
|
end.join("\n")
|
||||||
|
|
||||||
new_changelog = <<-HEADER
|
new_changelog = <<-HEADER
|
||||||
Release #{new_version} - #{Time.now.strftime("%Y/%m/%d")}
|
## Release #{new_version} - #{Time.now.strftime("%Y/%m/%d")}
|
||||||
|
|
||||||
#{pr_descriptions}
|
#{pr_descriptions}
|
||||||
|
|
||||||
#{changelog.chomp}
|
#{changelog.chomp}
|
||||||
|
Loading…
Reference in New Issue
Block a user