Skip to content

[Feature Request] Add a callback like formatMessageCB for every stepΒ #208

@SuiKaSan

Description

@SuiKaSan

πŸ’­ Describe the feature

Add a callback like formatMessageCB for every step.
Like if I selected a scope, then triggers a callback to customize the type or the following subject.

In my case, I need to write a commit meesage for every version release with a scope called version.
So I have to type "release version xxx" every time I wirte a version related commit.
It's annoying but I can't just left it empty.

defaultSubject will fix the problem but everyone write a commit would see the default subject, that's not good.

πŸ’‘ Proposed Solution

A callback to every step would be nice, so the subject can be altered.
Like if I know the coming scope is version, then change the defaultSubject to "release version ", if not, then leave it empty.

It's just a feature nice to have.
And thank you very much for developing this library, it's crazy good!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions