Everduin94 / better-commits

A CLI for creating better commits following the conventional commits specification
MIT License
1.96k stars 69 forks source link

feat(main): #72 customize ticket #77

Closed Everduin94 closed 8 months ago

Everduin94 commented 8 months ago

Added surround prop to add brackets, parens, curly braces, around ticket. Added new ticket position 'before-colon'.

Closes: #72

Everduin94 commented 8 months ago

I decided to just directly address the existing discussions / issues using existing concepts in the code. Instead of implementing a new custom template property. - These properties together will suffice most common/useful situations with less potential complexity.

@shiw-yang - You can now wrap the ticket number with brackets in the title. Just add this to your config.

"check_ticket": {
  "surround": "[]"
}

@schophil - You can now use ticket as scope like this

"check_ticket": {
  "surround": "()",
  "title_position": "before-colon"
},
"commit_scope": {
  "enable": false
}
github-actions[bot] commented 8 months ago

:tada: This PR is included in version 1.10.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

schophil commented 8 months ago

@Everduin94 Great, thanks, already using it!

shiw-yang commented 8 months ago

@Everduin94 Thanks for getting it done so quickly and well. I've already started using it, and I'm going to share it with my team members next!