Skip to content

relizy / splitCommitMessage

Function: splitCommitMessage() ​

splitCommitMessage(message): CommitMessageParts

Defined in: src/core/commitlint/message.ts:42

Split a message into header, body and footer. The footer is the last paragraph when it starts with a Token: value line: as in Conventional Commits, a footer value can continue on the next lines.

Parameters ​

message ​

string

Returns ​

CommitMessageParts

Released under the MIT License.