ap0llo/changelog

Monorepo Support: Filtering by Conventional Commit Scope

Cpcrook opened this issue · 1 comments

Given I am creating a release for a project within a monorepo
When I generate a changelog
Then I expect to be able to optionally specify a scope
And I expect only commits to that scope be included in my generated change log
And for that changelog to be written to a particular output path


This is primarily to have this tool be more useful in a monorepo where there are multiple libraries being independently versioned with nbgv (separate version.json files in different subfolders).

I'll elaborate on this a bit more (with respect to expected project structure that is driving this request). It may also be something I plan on contributing myself (life-willing).

There is support for filtering the change log entries (see https://github.com/ap0llo/changelog/blob/master/docs/configuration/settings/filter.md) which may work for your use case.

You'd have to use multiple configuration files and configure the filters accordingly - in the config you could also set different output paths for the various components.

Would the filtering support cover your use case or do you have something else/additional in mind?