mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 04:19:01 +08:00
Fix release notes rake task
It breaks when a commit message is "FIX:"
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user