-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Question/Bug] Incomplete changelog #24
Comments
Also running sv4git cl shows that the correct type is recognized: user@supermachine01:~/projects/sv4git-test$ git sv cl -r hash -s 69c44c0
{"date":"2021-07-26","hash":"f0d9d6c","message":{"type":"chore","description":"Refine sv4git configuration"}}
{"date":"2021-07-26","hash":"1d3b726","message":{"type":"build","description":"add drone ci"}}
{"date":"2021-07-26","hash":"7b7dd31","message":{"type":"fix","description":"Fix heading"}}
{"date":"2021-07-26","hash":"a238066","message":{"type":"feat","description":"Add another line"}}
{"date":"2021-07-26","hash":"2068851","message":{"description":"Add build to headers"}}
{"date":"2021-07-04","hash":"247c5fa","message":{"type":"feat","description":"hm","isBreakingChange":true}}
{"date":"2021-07-04","hash":"480ab83","message":{"type":"feat","scope":"headline","description":"Introduced new headline"}}
{"date":"2021-07-04","hash":"885d53f","message":{"type":"build","description":"Add sv4git"}}
{"date":"2021-07-04","hash":"7c320f0","message":{"type":"docs","scope":"readme","description":"Fix linter error with title"}} 69... is the hash of the first commit |
Hello, thanks for trying to use sv4git 😃 It's not exactly a bug because it's implemented to work like this, but in the future I would like to implement in a way that is possible to choose the sections in changelog and also join them in a section called misc. Any ideas or feedback is more then welcomed! |
The problem right now is that I need to check if go-yaml support any kind of ordered map or custom structure, but I found some open issues related to that. One option would be add another attribute to sort it, but I think it would be error prone. It would be easy to add a new headers and forget to add it in the order array. release-notes:
headers:
breaking-change: Breaking Changes
feat: Features
fix: Bug Fixes
order: [feat, fix, refactor, perf, test, build, ci, chore, docs, style,breaking-change] Another option would be create a new attribute for sections and deprecate the release-notes:
sections:
- name: Features
commit-types: [feat]
- name: Bug Fixes
commit-types: [fix]
- name: Misc
commit-types: [perf, docs]
- name: Breaking Changes
template: breaking-change |
Thanks for your response :) Okay then I misunderstood something. But just to be clear: I don't want to reorder or change existing sections. I want to add an additional one targeting another commit type. If the above case is also would you mean, I think the second option would be the way to go, as it is easier to understand and also easier to handle when upgrading versions (I guess?). Although I'd suggest consolidating template and commit-types into something like content, because in the end all sections are bullet lists, right? |
I know, but right now, the types for sections are hardcoded on the template, it would be easy to loop in the headers for each key/value but the order would be a problem.. Maybe I should just support the other types in a fixed order, and then do the refactor to support group and custom order..
no, |
add sections for the following types: feat, fix, refactor, perf, test, build, ci, chore, docs, style issue: #24
Wow thank you for already opening a PR regarding the functionality! 😝 Well I guess for the order you could take the order of values of the the versioning configuration? Then you would also handle user created types and still have the opt-behaviour through the headline configuration. Breaking changes could be at the top/bottom of each version notes. Grouping would then be another topic to handle. For this I think your second suggestion from above is the way to go. In general, the second suggestion from above would be the superior one. Anyways thank you again for directly addressing the feedback :) |
Feature: support more commit types on release notes sections
That's true, but could break retrocompatibility (current order in types is diferent from release note order).. but I think the second suggestion will be better in a long run.. |
This feature is available in version 2.4.0!:rocket: |
Thank you! |
Hi,
I am currently testing your program. Thanks for coding and providing it. It looks very promising. I encountered a situation where the generated changelog differs from what I expected it to be. I'd rather not call it a bug report, because I am not sure whether I just configured something wrong. Can someone help me with this?
The repository is pushed to a private repository and has three tags on it.
Here I expected the Build section to be included as part of some releases.
Did I misunderstand/misconfigure something?
The text was updated successfully, but these errors were encountered: