fix(changelog): ignore lines containing whitespace in breaking change commits

parent 1ad167df
...@@ -106,6 +106,9 @@ function parse-commit { ...@@ -106,6 +106,9 @@ function parse-commit {
message="${match[1]}" message="${match[1]}"
# remove CR characters (might be inserted in GitHub UI commit description form) # remove CR characters (might be inserted in GitHub UI commit description form)
message="${message//$'\r'/}" message="${message//$'\r'/}"
# remove lines containing only whitespace
local nlnl=$'\n\n'
message="${message//$'\n'[[:space:]]##$'\n'/$nlnl}"
# skip next paragraphs (separated by two newlines or more) # skip next paragraphs (separated by two newlines or more)
message="${message%%$'\n\n'*}" message="${message%%$'\n\n'*}"
# ... and replace newlines with spaces # ... and replace newlines with spaces
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment