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

--starting-version not working #164

Closed
feliperaul opened this issue Jun 4, 2020 · 3 comments
Closed

--starting-version not working #164

feliperaul opened this issue Jun 4, 2020 · 3 comments

Comments

@feliperaul
Copy link

I have an old git project with 10 years of commit in it.

I created a tag v5.0.0 and passed --starting-version v5.0.0 so that auto-changelog wouldn't create a huge changelog file with all the commits in it (i'm using --commmit-limit false).

However, no matter how I cut it (create new tags before v.5.0.0, bumping starting-version higher, etc), it always creates a huge 3MB CHANGELOG.md file because it takes the commit specified with --starting-version and puts the entire git history there.

@kasperdun
Copy link

kasperdun commented Jun 23, 2020

@cookpete
starting version is ignored with my config

        "commitLimit": false,
        "unreleased": true,
        "releaseSummary": true,
        "tagPattern": "ui-kit_\\d+\\.\\d+\\.\\d+$",
        "issuePattern": "^PROJ-\\d+",
        "starting-version": "ui-kit_4.0.0",
        "ignoreCommitPattern": "^(Changelog|Merge pull request)",

I got from first to the last tags, but I expect from ui-kit_4.0.0 (or from next) to the last

@cookpete
Copy link
Owner

Options in the package.json need to be camelCase, like all the other options in your example. This is in the readme:

You can set any option in package.json under the auto-changelog key, using camelCase options.

https://github.com/CookPete/auto-changelog#configuration

@kasperdun
Copy link

Oh, yeah, sorry :)

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

No branches or pull requests

3 participants