standard-version icon indicating copy to clipboard operation
standard-version copied to clipboard

Can i use customize parserOpts and writerOpts in conventionalChangelogCore

Open fortress-fight opened this issue 5 years ago • 3 comments

I want use conventionalChangelog deal my commit message like 🚀 feat(*): something change.

Can i set customize parserOpts ?

example:

module.exports = {
  "types": [
    {"type":"🚀  feat","section":"🚀  feat"},
    {"type":"fix","section":"Bug Fixes"},
    {"type":"test","section":"Tests", "hidden": true},
    {"type":"build","section":"Build System", "hidden": true},
    {"type":"ci","hidden":true}
  ],
  "parserOpts": {
    headerPattern: "/^(.*\s{2}\w+)\((.+)\).*:\s*(.*)\s*$/",
    headerCorrespondence: [
      `type`,
      `scope`,
      `subject`
    ]
  }
}

Thanks

fortress-fight avatar May 17 '19 14:05 fortress-fight

Any update on this? I too would like to customise the parserOpts

jheaff1 avatar Jul 28 '20 16:07 jheaff1

Any update on this ?? need customise options for writerOpts

gauravmalik1011 avatar Nov 23 '21 16:11 gauravmalik1011

For anyone that has found this and is wanting, check out https://github.com/absolute-version/commit-and-tag-version

mholttech avatar Jun 12 '23 17:06 mholttech