Skip to content

Use conventionalcommits preset with @semantic-release/commit-analyzer #208

@andylolz

Description

@andylolz

release-notes-generator uses conventionalcommits preset, but commit-analyzer doesn’t. This means changelogs and releases can end up out of sync.

For example, the following commit:

git commit -m 'feat!: do a major release'

…will generate a changelog like this:

### ⚠ BREAKING CHANGES

* do a major release

### Features

* do a major release

…but the commit-analyzer output is:

Analyzing commit: feat!: do a major release
The commit should not trigger a release

The expected output is:

Analyzing commit: feat!: do a major release
The release type for the commit is major

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions