-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Include the folder in the templating context #981
Comments
Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️ |
Hello 👋🏼 There is a
|
Hello! I think |
Sorry, I wasn’t able to get the body = """
[repository: {{ repository }}]
""" ↓ [repository: ] |
Hmm that's weird. I am unable to reproduce that locally. Do you also not see in the JSON context? (run it with
But yes, you probably need the current folder instead of the root of the repository so that wouldn't work. I'm not sure if I understood your reasoning for that fully - do you mind giving a bit more explanation about your setup and desired changelog format so that maybe we can find a way to handle that without additional implementation? |
In this case, I’m using I tried to find a combination of flags to produce the same result as git-cliff --output crates/some-crate/CHANGELOG.md some-crate-v0.1.0..HEAD --include-path crates/some-crate But I wasn’t able to get the same output. For some reason, the commits affecting the Let me give you more context on what I’m trying to achieve. I configured release-plz to run in our CI at IronRDP, and it now opens this kind of PRs. I experimented locally with various commits and a pain point I noticed is that we are getting changelog entries that are not always relevant because of the monorepo nature associated to the not-rocket-science rule of keeping each commit as a compilable state:
Ideally, we should bump the patch number of crate B and the changelog should simply mention that crate A dependency was updated. I’m still investigating ways of improving all of this and thought that some filtering at the template level could help automate some of this in a better way. The scope of our commit is the name of the crate that is modified (e.g.: |
Is there an existing issue or pull request for this?
Feature description
I would like the current folder to be included into the templating context. This is mostly for filtering purposes.
Desired solution
Include the folder in the context.
Alternatives considered
None.
Additional context
In a workspace, I’m using scopes to specify the crate affected by a change. It may happen that I need to change code in other crates to accommodate this change, however for these crates it’s only an internal modification that is not visible in the public API. Since the commit is affecting these crates too, the generated changelog unfortunately reflects that too and I need to remove the unwanted entries manually.
The text was updated successfully, but these errors were encountered: