commit-analyzer
commit-analyzer copied to clipboard
feature request: option to filter commits by path
Feature request
I'd like the option to be able to pass in a directory path or glob to filter commits by. For example, if I pass in ./src/, it should only read commits that touch the ./src/ directory.
Why?
- Primarily, I think this would bring us one step closer to monorepo support. By running semantic-release in each sub-package with a commit-filter for its own directory, it would be able to determine whether to make a release for the subpackage.
- Secondarily, setting a filter to source files can add an extra layer of protection in a large codebase.
- Seems trivial to do
Hi,
I add the possibility to filter commit by path. I'm waiting for review from semantic-release team
I was able to achieve this result with this shareable configuration: https://github.com/folke/semantic-release-commit-filter