DEV: remove PR numbers from release_note:generate output
This commit is contained in:
parent
c60084a8f1
commit
aa09d83453
|
@ -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:"]
|
||||
|
|
Loading…
Reference in New Issue