mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 04:07:27 +00:00
DEV: Ignore duplicate prefixes when generating release notes
This commit is contained in:
parent
213117b84c
commit
874985db71
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user