You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Here is an example of changelog generated by Cocogitto after a cog bump --auto for my personal project:
However, I encounter two problems with this result:
The ascending order implemented in the changelogs templates are not relevant when customizing titles with emojis as prefixes (this is like having a "random" one more or less)
I would like to bring to the fore features and fixs included in the new release, and only after presenting the rest (build, test, doc, etc).
Here is an example custom predefined ordering I would like in my changelogs:
feat
fix
perf
revert
docs
test
build
ci
refactor
chore
style
But the ordering is personal to each developer, and can be subject to changes over time.
Describe the solution you'd like
A way to specify a custom predefined order of sections in changelog based on personal developer preferences.
The idea I have in mind is the following one:
Add a new changelog_order attribute for commit_types (or anything else as name that communicate clearly the intent):
Then adjust the tera templates for changelogs. More specifically, modifying the call to the sort function seems to be a good way to achive the desired goal.
Describe alternatives you've considered
Creating my own custom template thanks to the following documentation pages: link & link... But that's clearly not ideal since it implies hardcoding the sorting order in the template directly with lots of duplication.
Furthermore, I guess some people in the community around Cocogitto would benefit as well from this new feature without having to create their own template.
Additional context
The complete changelog generated in my personal project can be found here.
Some changelogs examples from the OSS community having a specific sort order for sections:
Is your feature request related to a problem? Please describe.
Here is an example of changelog generated by Cocogitto after a
cog bump --auto
for my personal project:However, I encounter two problems with this result:
Here is an example custom predefined ordering I would like in my changelogs:
But the ordering is personal to each developer, and can be subject to changes over time.
Describe the solution you'd like
A way to specify a custom predefined order of sections in changelog based on personal developer preferences.
The idea I have in mind is the following one:
Add a new
changelog_order
attribute forcommit_types
(or anything else as name that communicate clearly the intent):Then adjust the tera templates for changelogs. More specifically, modifying the call to the sort function seems to be a good way to achive the desired goal.
Describe alternatives you've considered
Creating my own custom template thanks to the following documentation pages: link & link... But that's clearly not ideal since it implies hardcoding the sorting order in the template directly with lots of duplication.
Furthermore, I guess some people in the community around Cocogitto would benefit as well from this new feature without having to create their own template.
Additional context
The complete changelog generated in my personal project can be found here.
Some changelogs examples from the OSS community having a specific sort order for sections:
The text was updated successfully, but these errors were encountered: