Skip to content

Use soft and hard limits for subject (50/72) #6

@mschirmer1301

Description

@mschirmer1301

As committer I want get an warning when the subject length increases 50 Characters with the option to continue. In case of subject length exceeds 72 Characters I would expect an immediate abort. Special case are commit messages that starts with an ID prefix. Following table tries to explain:

msg warn abort
I'm a subject with less than 50 chars
#ID - At the point starts the subject with exact 50 chars
I'm a subject with less than 72 chars x
#ID - At the point starts the subject with exact 72 chars x

construction of warning:

$ [WARN] - Your subject exceeds the soft limit of 50 chars by [NUM OF EXCEEDED CHARS] do you still want to proceed? (n/Y): n

The option n is preselected.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions