Skip to content

A platform for community discussion. Free, open, simple.

DEV: Ignore duplicate prefixes when generating release notes

Gerhard Schlager874985db7165
diff --git a/lib/tasks/release_note.rake b/lib/tasks/release_note.rake
index 0920be79a59..ba5cc882472 100644
--- a/lib/tasks/release_note.rake
+++ b/lib/tasks/release_note.rake
@@ -66,6 +66,7 @@ def split_comments(text)
text = normalize_terms(text)
terms = ["FIX:", "FEATURE:", "UX:", "SECURITY:" , "PERF:"]
terms.each do |term|
+ text = text.gsub(/(#{term})+/i, term)
text = newlines_at_term(text, term)
end
text.split("\n")