Skip to content

[Proposal] Change default template to avoid blank trailing spaces/lines #4

@tad3j

Description

@tad3j

I've noticed that the current template inserts empty lines which is kind of annoying, so I came up with a new one (doesn't add blank lines at the end of commit messages) and I wanted to share it:

#if($type)${type}#end#if($scope)(${scope})#end: #if($subject)${subject}#end
#if($body)${newline}${newline}${body}#end
#if($changes)${newline}${newline}BREAKING CHANGE: ${changes}#end
#if($closes)${newline}${newline}Closes ${closes}#end

Mostly I wrapped ${newline} inside if statements, so they only get appended there is content following.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions