Skip to content

Commit 696c9bc

Browse files
committed
Include elasticsearch-xpack changes in CHANGELOG as part of update_verson rake task
1 parent fb7df53 commit 696c9bc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Rakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ task :update_version, :old, :new do |task, args|
141141
log_entries[:api] = log.select { |l| l =~ /\[API\]/ }
142142
log_entries[:dsl] = log.select { |l| l =~ /\[DSL\]/ }
143143
log_entries[:ext] = log.select { |l| l =~ /\[EXT\]/ }
144+
log_entries[:xpack] = log.select { |l| l =~ /\[XPACK\]/ }
144145

145146
changelog = File.read(File.open('CHANGELOG.md', 'r'))
146147

@@ -186,6 +187,15 @@ task :update_version, :old, :new do |task, args|
186187
changelog_update << "\n\n"
187188
end
188189

190+
unless log_entries[:xpack].empty?
191+
changelog_update << "## XPACK:#{args[:new]}\n\n"
192+
changelog_update << log_entries[:xpack]
193+
.map { |l| l.gsub /\[XPACK\] /, '' }
194+
.map { |l| "#{l}" }
195+
.join("\n")
196+
changelog_update << "\n\n"
197+
end
198+
189199
File.open('CHANGELOG.md', 'w+') { |f| f.write changelog_update and f.write changelog }
190200

191201
puts "\n\n", "= DIFF ".ansi(:faint) + ('='*93).ansi(:faint)

0 commit comments

Comments
 (0)