Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to define a custom pattern? #227

Open
mikelgo opened this issue Aug 17, 2023 · 2 comments
Open

Question: How to define a custom pattern? #227

mikelgo opened this issue Aug 17, 2023 · 2 comments

Comments

@mikelgo
Copy link

mikelgo commented Aug 17, 2023

Hi there,

sorry if it is mentioned somewhere but I didn't find it.

In the docs it is mentioned:

Note that you can create any commit message pattern

How to do this?
I would like to have a pattern like: [TicketNo] [BE/FE] [type] ([opitional scope]): [description]
and so on.

I would love to hear from you. Thanks a lot

@chienweiluo
Copy link

chienweiluo commented Aug 25, 2023

same question here.

Update: just use the git-cz and add changelog.config.js to customize message format.

npm init 

git init

git cz

// some change
npm version patch

// interaction with git cz
git cz

the new commit message is new format.

For me this works.

module.exports = {
  ...,
  format: '[{type}] {subject}',
}

git-cz
https://github.com/streamich/git-cz

@mikelgo
Copy link
Author

mikelgo commented Aug 28, 2023

Will try this. Thanks for pointing this out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants