Skip to content

message ​

Get the full message of a commit.

The returned message will be slightly prettified by removing any potential leading newlines.

Throws error if the message is not valid utf-8.

Signature ​

ts
class Commit {
  message(): string;
}

Returns ​

  • string

    Full message of this commit.

Errors ​

  • Error

    If the message is not valid utf-8.

Released under the MIT License.