commitizen / cz-conventional-changelog

A commitizen adapter for the angular preset of https://github.com/conventional-changelog/conventional-changelog
MIT License
767 stars 442 forks source link

the adapter does not respect the commit types defined in .versionrc #209

Open ErfanMirzapour opened 1 year ago

ErfanMirzapour commented 1 year ago

We're using standard version and CZ together with this adapter.

We already have a .versionrc with our customized types defined inside of it.

I just wish the adapter could respect that if there's any at the root of the project, so we don't have to maintain and sync both over time.

I can add the functionality if it is desired.

cz-conventional-changelog types field example:

"types": {
    "feat": {
        "description": "Features"
    },
    "fix": {
        "description": "Bug Fixes"
    },
    "style": {
        "description": "UI Changes"
    }
}

standard-version types field example:

"types": [
    {
        "type": "feat",
        "section": "Features"
    },
    {
        "type": "fix",
        "section": "Bug Fixes"
    },
    {
        "type": "style",
        "section": "UI Changes"
    }
]

We just need to check for the file and add a simple transformer.