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

Add option for filtering commits by path

Open iloire opened this issue 8 years ago • 4 comments

I have three components in the same repository. It would be awesome if I could filter them by path (git log -- <path>), so I can generate three different CHANGELOG files (one for each component)

Any plans to add this? Would you accept a PR?

iloire avatar Jan 23 '17 07:01 iloire

Yeah, that's a good idea! We'd absolutely be willing to accept PRs.

robinjoseph08 avatar Apr 19 '17 20:04 robinjoseph08

I think I feel comfortable enough to encounter that, and will give it a try. One question though, what should we do if there is a conflict between this new subpath option and the output file option? e.g. if there is also an output file specified in a different than the current folder. I thought to address that this way:

  • If there is an explicit output file specified in a different path than the current directory --> I will use it as is
  • If the output file left defaulted, or is designated to be in the current directory and there is subpath option set --> I will place/work on a file in that provided subpath

@iloire @robinjoseph08 Thoughts?

altJake avatar Nov 23 '17 16:11 altJake

@iloire @robinjoseph08

Feel free to give a look / try / test / comment / suggest

altJake avatar Dec 07 '17 01:12 altJake

This tool is unusable in a monorepo without this feature.

solarmosaic-kflorence avatar Dec 02 '21 23:12 solarmosaic-kflorence