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

Inform parseOpts and writerOpts #31

Closed
rondymesquita opened this issue Aug 17, 2021 · 3 comments · Fixed by #32
Closed

Inform parseOpts and writerOpts #31

rondymesquita opened this issue Aug 17, 2021 · 3 comments · Fixed by #32

Comments

@rondymesquita
Copy link
Contributor

Hi, this is not an issue itself. It is more like a question.

How can I inform both parseOpts and writerOpts.
I see that conventional-changelog-core have an API like conventionalChangelogCore([options, [context, [gitRawCommitsOpts, [parserOpts, [writerOpts]]]]]), and I would like to pass some parameters to writerOpts like:

writerOpts: {
  groupBy: 'scope'
}

so I can group commits by scope instead of type by default.

Thank in advance.

@webpro
Copy link
Contributor

webpro commented Aug 17, 2021

That's currently not possible. It's a bit of a coincidence I guess, but if you look at the last 5 commits of this repo, you'll find context and gitRawCommitsOpts were just added. So feel free to add the options you need in the same way in a PR and I'll be happy to merge.

@rondymesquita
Copy link
Contributor Author

Oh! Good to know! I will prepare the code and push it soon! Thanks for the feedback!

@rondymesquita
Copy link
Contributor Author

Hi @webpro , I have opened a PR for this change.
#32

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