Discard commits in commit_preprocessors
or similar extension point
#144
Labels
feature/request
New feature or request
commit_preprocessors
or similar extension point
#144
Is your feature request related to a problem? Please describe.
I want to discard commits after
git-cliff
has extracted the range of commits. Thecommit_preprocessors
exists but I am not sure if that is possible, its probably the wrong place.Describe the solution you'd like
I think a
commit_filter
section similar to thecommit_preprocessors
might be useful, with the ability to run some custom commands. We have some internal tool which can detect if a commit should be included in the changelog, basically for the monorepo usecase. It would be nice to specify{ filter_command: "detect-if-commit-is-included.py" }
which will get
--input input.yaml
which contains all commitsand
myspecialtool.py
outputs the filtered new list toinput.yaml
which then will get taken care of bygit-cliff
.One could also think of the
commit_filter
run after parsing the conventional commits, so we would already have more input, basically handing over the whole template context to the command.Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: