mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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)
|
text = normalize_terms(text)
|
||||||
terms = ["FIX:", "FEATURE:", "UX:", "SECURITY:" , "PERF:"]
|
terms = ["FIX:", "FEATURE:", "UX:", "SECURITY:" , "PERF:"]
|
||||||
terms.each do |term|
|
terms.each do |term|
|
||||||
|
text = text.gsub(/(#{term})+/i, term)
|
||||||
text = newlines_at_term(text, term)
|
text = newlines_at_term(text, term)
|
||||||
end
|
end
|
||||||
text.split("\n")
|
text.split("\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user