Skip to content

Using a colon (":") in the commit message. #3

@loskost

Description

@loskost

Hi!

When using a colon in a commit message twice, a part of the message is lost.
Apparently, the error is in this place:

commitPostfix = ss.split(':')[1]

Example of a message:

fix: bla-bla

A very important commit

ref: https://task.domain.com

After executing the hook:

fix: bla-bla

A very important commit

ref

Suggestion: specify the number of splits in .split():

commitPostfix = ss.split(':', 1)[1] 

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