mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 13:15:38 +08: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 = escape_brackets(line)
|
||||
line[0] = '\#' if line[0] == '#'
|
||||
line[0] = line[0].capitalize
|
||||
"- " + line
|
||||
if line[0]
|
||||
line[0] = line[0].capitalize
|
||||
"- " + line
|
||||
else
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
def remove_prefix(line)
|
||||
|
Loading…
x
Reference in New Issue
Block a user