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

@release-it/conventional-changelog - Option for no change log #48

Closed
Zamiell opened this issue May 30, 2022 · 6 comments
Closed

@release-it/conventional-changelog - Option for no change log #48

Zamiell opened this issue May 30, 2022 · 6 comments

Comments

@Zamiell
Copy link

Zamiell commented May 30, 2022

Hello and thanks for the tool.

I am trying out release-it. In my monorepo, I use conventional commits, so I therefore want release-it to auto-increment the version based on the commit history. Thus, it seems like I need to use the @release-it/conventional-changelog plugin to do this. However, I don't want to generate a changelog. And it seems like this plugin always generates a changelog.

Will you accept a PR for a new option that disables the changelog?

@webpro
Copy link
Contributor

webpro commented Jun 6, 2022

Yes, that would be a good option to have. There's already ignoreRecommendedBump.

@pedrosodre
Copy link

Is that already possible? Also, can we ignore the changelog for a specific execution with a cli option (like --no-changelog)?

@fsmaia
Copy link

fsmaia commented Oct 6, 2022

Is that already possible? Also, can we ignore the changelog for a specific execution with a cli option (like --no-changelog)?

This would be amazing!

@webpro
Copy link
Contributor

webpro commented Oct 8, 2022

Could somebody using this plugin please try to set "infile": false?

I just added a test for and seems to work as intended (40869a1).

@fsmaia
Copy link

fsmaia commented Oct 18, 2022

It indeed works.

In my use case scenario, I want to skip the changelog for pre-releases. To achieve that, I would have to run a bash script that modifies the config file dynamically within my CI and then ignores this file in git so the working directory would be clean before triggering release-it, which seems to be hacky.

That's why a CLI flag would be handy!

I can help with coding if you will.

@fsmaia
Copy link

fsmaia commented Oct 18, 2022

I figured out that the release-it's CLI-to-config behavior covers it:

npx release-it --plugins.'@release-it/conventional-changelog'.infile=''

@webpro webpro closed this as completed in 6166bd8 Feb 15, 2023
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

4 participants