generate-changelog icon indicating copy to clipboard operation
generate-changelog copied to clipboard

Add option for filtering commits by category

Open gamichalski opened this issue 7 years ago • 5 comments

Its amazing!!

It would be awesome if I could filter and exclude them by category

Would you accept a PR?

gamichalski avatar Feb 01 '18 13:02 gamichalski

Hey @gamichalski,

Just to clarify, do you mean to have a flag similar to --exclude but instead of excluding types during generation, excluding categories as well?

robinjoseph08 avatar Feb 02 '18 22:02 robinjoseph08

Yes that's right. Is it my need, is it good for everyone?

gamichalski avatar Feb 02 '18 23:02 gamichalski

Gotcha. I'm not sure if I understand the use-case just yet. Can you give an example of your workflow that requires the filtering of a category? Is it possible to just group those under chore and then exclude that type?

robinjoseph08 avatar Feb 03 '18 01:02 robinjoseph08

Yes, I would like to make a separation from what is related to a product, and what is technology related

gamichalski avatar Feb 09 '18 12:02 gamichalski

I'm using lerna for my monorepos which is another use case for this feature (built-in changelog generation of lerna sucks for non-feat/fix commits).

The package name is being used as the category (e.g feat(kitsu-core): message). Exclusion by category would allow ignoring commits for package A in package B's changelog.

wopian avatar Feb 15 '18 04:02 wopian