Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: option to filter commits by path #252

Open
privatenumber opened this issue Aug 24, 2021 · 2 comments
Open

feature request: option to filter commits by path #252

privatenumber opened this issue Aug 24, 2021 · 2 comments

Comments

@privatenumber
Copy link

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
@bogaertg
Copy link

bogaertg commented Jan 5, 2022

Hi,

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

#2315

@wojtiku
Copy link

wojtiku commented Jan 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants