commit-analyzer icon indicating copy to clipboard operation
commit-analyzer copied to clipboard

feature request: option to filter commits by path

Open privatenumber opened this issue 4 years ago • 3 comments

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

privatenumber avatar Aug 24 '21 01:08 privatenumber

Hi,

I add the possibility to filter commit by path. I'm waiting for review from semantic-release team

#2315

bogaertg avatar Jan 05 '22 09:01 bogaertg

I was able to achieve this result with this shareable configuration: https://github.com/folke/semantic-release-commit-filter

wojtiku avatar Jan 04 '23 22:01 wojtiku