changelog --subdirectory
See original GitHub issueDescription
Allow to filter commits affecting only a subdirectory.
Possible Solution
cz changelog --subdirectory my_module --file-name my_module/CHANGELOG.md
Additional context
I’m considering proposing this for @OCA. There, repositories mostly are split into modules, where each one of them has its own readme and (maybe) changelog.
So, when autogenerating changelogs, only commits affecting the module should be taken into account. AFAICS that wouldn’t be possible currently.
git format-patch
allows such filtering (example recipe – for other purposes). It would be nice if commitizen could leverage that and make this a reality.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:15 (10 by maintainers)
Top Results From Across the Web
Finding wrong changelog for crate in subdirectory · Issue #4544 ...
Package ecosystem cargo Package manager version N/A Language version N/A Manifest location and content prior to update N/A dependabot.yml content N/A ...
Read more >Showing the latest changes of each subdirectory in git
In github if you open a repository you will see a page showing the latest commit and time of each subdirectory and file....
Read more >Change to the last modified subdirectory of the current directory
I have an application which generates a couple of files in different directories at a regular interval and I need to check the...
Read more >Visual Studio is not detecting changes in files in subfolders
I created a new folder and moved two classes into the folder. After doing this, Visual Studio stopped detecting changes to those files...
Read more >includeAll | Liquibase Docs
It is used within your root changelog file to call on the directory and ... If you use includeAll to specify a directory...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s a possibility, but I don’t think
semver
andpep-0440
would be able to parse a tag like that.I get:
From my understanding the way is to add the metadata at the end with a
+
sign. This way, users would be able to choose to also publish those tags as a valid semver or pep-0440. This, I think is important, because even something as a helm chart requires a valid semver for example (even pep-0440 breaks when adding a rc).I foresee some issues with the changelog generation in this situations, as we do use tags to generate the changelog itself.
This seems like a contradiction to me. Instead of having one
cz.toml
per project or 1 cz.toml, you have 1 topcz.toml
+ 1 metadatafile. And I really don’t want users to have 2 different files. A minimal.cz.toml
would look like:I don’t think it’s such a heavy burden vs a metadata file like:
I think eventually, support for the
members
could be introduced, and thencz bump
could navigate the members. But having a.cz.toml
per package enables also some extra benefits, like disabling changelog for specific package, using a different changelog file, different conventions per package, and all of this by just keeping the settings.