Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ _None_

### Bug Fixes

_None_
- Fix error in `extract_release_notes_for_version`, avoiding modifying a frozen string. [#644]

### Internal Changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def self.run(params)
release_notes_file_path = params[:release_notes_file_path]
extracted_notes_file_path = params[:extracted_notes_file_path]

extracted_notes = ''
extracted_lines = []
extract_notes(release_notes_file_path, version) do |line|
extracted_notes += line
extracted_lines << line
end
extracted_notes.chomp!('') # Remove any extra empty line(s) at the end
extracted_notes = extracted_lines.join.chomp('') # Combine lines and remove any extra empty line(s) at the end

unless extracted_notes_file_path.nil? || extracted_notes_file_path.empty?
File.write(extracted_notes_file_path, extracted_notes)
Expand Down