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
feat: add pathFilter option #2315
Conversation
@travi 🙏 |
limit commit analysis to a specific path
57a12b4
to
df26dc6
Compare
semantic-release does not support monorepos and adding support is not on our short term roadmap. see #193 |
I understand why you dont want to support monorepository by default.
for information, here is my usecase : In a github repository, i have a spring boot app at top level and one folder `terraform' with some terraform code associated to my app (ex: kafka topic, BDD, ...) Regards |
i understand that those sound like good trade-offs from your perspective. however, there are other considerations that we need to keep in mind as maintainers.
this is a big part of why we have to be careful about accepting additional functionality or increased flexibility of existing functionality. we see support for monorepos as a very complex problem and an opportunity to add highly increased complexity and lots of additional workflows that are not supported today. if/when we ever add such support, we want to add it in a way that satisfies the specific workflows that are intended to be supported properly and that we can have confidence it them working well. adding only partial support that leaves lots of opportunities for our users to shoot themselves in the foot is not the way we want to approach this type of a problem. |
For the people looking for a solution to this problem like I was. I was able to filter out irrelevant commits by using this shareable configuration: https://github.com/folke/semantic-release-commit-filter |
I need to exclude specific path in commit analysis.
Example:
I want to use specific configuration for
folder1
, another forfolder2
and one formy root folder
excludingfolder1
andfolder2
.With pathFilter option, i can run multiple times semantic release with specific configuration to trigger release for
folder1
,folder2
androot folder
.