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

Changelog header is not working #955

Open
nqdrizzt opened this issue Jan 13, 2023 · 5 comments
Open

Changelog header is not working #955

nqdrizzt opened this issue Jan 13, 2023 · 5 comments

Comments

@nqdrizzt
Copy link

I am trying to generate a conventional changelog via cli.
I use the following config file and call the command via cli on linuux:

root@c9b3263bdfd0:/build# cat .conventional-changelog.json

{
    "options": {
        "preset": {
            "name": "conventionalcommits",
            "header": "Awesome Changelog",
            "types": [
                {"type": "feat", "section": "Features"},
                {"type": "fix", "section": "Bug Fixes"},
                {"type": "chore", "section": "Chore"},
                {"type": "docs", "section": "Documentation"},
                {"type": "style", "hidden": true},
                {"type": "refactor", "section": "Refactoring"},
                {"type": "perf", "hidden": true},
                {"type": "test", "hidden": true}
            ]
        }
    }
}

root@c9b3263bdfd0:/build# conventional-changelog --config .conventional-changelog.json -i CHANGELOG.md -s -r 0 -u

The resulting changelog looks like this:
As you can see here, the Level 1 heading "Awesome Changelog" sepcified in the config above is missing. Am I doing something wrong here or is this a bug ?
The setting is documented here

1.3.0 (2023-01-13)

⚠ BREAKING CHANGES

  • CICD: not compatible

Features

  • CICD: automatic changelog generation [skip ci] (d710ee1)

Bug Fixes

  • CICD: missing package.json for version handling [skip ci] (a14ac19)

Chore

  • CICD: added changelog file [skip ci] (caf7b64)

1.2.0 (2023-01-13)

Features

@davidwallis3101
Copy link

did you ever resolve this, I'm seeing the same issue

@rickh18
Copy link

rickh18 commented Apr 15, 2024

I had te same issue when using release-it. I moved the header setting in the json one level up, so under options instead off preset :

{
    "options": {
        "header": "Awesome Changelog",
        "preset": {
            "name": "conventionalcommits",
            "types": [
                {"type": "feat", "section": "Features"},
                {"type": "fix", "section": "Bug Fixes"},
                {"type": "chore", "section": "Chore"},
                {"type": "docs", "section": "Documentation"},
                {"type": "style", "hidden": true},
                {"type": "refactor", "section": "Refactoring"},
                {"type": "perf", "hidden": true},
                {"type": "test", "hidden": true}
            ]
        }
    }
}

This worked in my case. Docs are not very clear on this part.

@nqdrizzt
Copy link
Author

I am using git-cliff now to generate my changelogs. it works just flawless and its also highly customizable

@davidwallis3101
Copy link

davidwallis3101 commented Apr 17, 2024 via email

@davidwallis3101
Copy link

davidwallis3101 commented Apr 23, 2024 via email

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

No branches or pull requests

3 participants