DEV: remove PR numbers from release_note:generate output

This commit is contained in:
Neil Lalonde 2020-11-30 17:11:02 -05:00
parent c60084a8f1
commit aa09d83453
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,7 @@ end
def better(line)
line = remove_prefix(line)
line = escape_brackets(line)
line = remove_pull_request(line)
line[0] = '\#' if line[0] == '#'
if line[0]
line[0] = line[0].capitalize
@ -66,6 +67,10 @@ def escape_brackets(line)
.gsub("]", "]`")
end
def remove_pull_request(line)
line.gsub(/ \(\#\d+\)$/, "")
end
def split_comments(text)
text = normalize_terms(text)
terms = ["FIX:", "FEATURE:", "UX:", "SECURITY:" , "PERF:"]