DEV: Ignore duplicate prefixes when generating release notes

This commit is contained in:
Gerhard Schlager 2019-09-04 15:45:48 +02:00
parent 213117b84c
commit 874985db71

View File

@ -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")