mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 07:42:45 +08: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…
Reference in New Issue
Block a user