mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix release notes rake task
It breaks when a commit message is "FIX:"
This commit is contained in:
parent
50b98a47ac
commit
891b71bdf5
@ -47,8 +47,12 @@ def better(line)
|
|||||||
line = remove_prefix(line)
|
line = remove_prefix(line)
|
||||||
line = escape_brackets(line)
|
line = escape_brackets(line)
|
||||||
line[0] = '\#' if line[0] == '#'
|
line[0] = '\#' if line[0] == '#'
|
||||||
line[0] = line[0].capitalize
|
if line[0]
|
||||||
"- " + line
|
line[0] = line[0].capitalize
|
||||||
|
"- " + line
|
||||||
|
else
|
||||||
|
nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_prefix(line)
|
def remove_prefix(line)
|
||||||
|
Loading…
Reference in New Issue
Block a user