-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Add Template for handling commits with Conventional Commits format #217
Conversation
@IllusionVK I've copied the template to one of my repos. the result is here: https://github.com/weiran-zsd/dts-cli/blob/82c351cb0062f4d5faa644f98bd87eeb39dac55d/CHANGELOG.md the only problem is the user cannot be clicked to github profile. is there a way to use github id(not name)? |
I just tried to use this in a project, but it didn't detect the breaking changes properly, Could it make sense to simplify the regular expressions by applying them case insensitive? Oh and for some reason I still had brackets around the scopes inside the changelog, is that intended? |
@IllusionVK Any thoughts on the comments here? |
Hi @cookpete thanks for the tag. So @aladdin-add about your comment. I have looked in the readme for this repo and the open issues and i haven't been able to find anywhere that helps to add in the URL for the author.. so maybe this is not supported for now, but perhaps @cookpete can confirm, in case I missed it. I also just added the {{author}} tag to the readme to help users know it is there (because its only mentioned on 1x closed issue before this PR). And I just added commented out hash links in case that is any help as well. and @karfau you are welcome to download the template and edit it to support how you enter things in to your commits, Cheers. |
@IllusionVK thx for the clarifications. If I remember correctly in hindsight it was my error that the breaking changes were not detected: |
This feature would be useful to me! Is there something I can do to help move this forward? |
Hey @simonecorsi you can actually just download the template and use it on your computer right now... it doesn't need to be merged. I'm sure that Pete will get to it when he has time, but until then just download the file and use it like all other templates 👍 |
Can we rename the template to just |
Oh my bad, I missed that --template flag could also resolve urls/files 🤦 |
Hi @cookpete, template has been renamed as requested. |
@IllusionVK nice feature!! I hope it will be soon merged |
Hi |
templates/conventional.hbs
Outdated
--}} | ||
|
||
|
||
{{!-- In package.json need to add this to remove label text from the change log output (becuase the markdown headers are now used to group them). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{!-- In package.json need to add this to remove label text from the change log output (becuase the markdown headers are now used to group them). | |
{{!-- In package.json need to add this to remove label text from the change log output (because the markdown headers are now used to group them). |
@adrien-berchet I guess anything is possible. I think you would need to identify how each merge/pr can be recognised. ie what is the pattern etc that regex would need to use to organise things. Because I assume that your objective is to get merges and PRs to also be listed under the headings like 'feature', 'fix' etc ? |
Yes and same for me
Den tis 22 mars 2022 14:40Charlie Blundell ***@***.***> skrev:
… @adrien-berchet <https://github.com/adrien-berchet> I guess anything is
possible. I think you would need to identify how each merge/pr can be
recognised. ie what is the pattern etc that regex would need to use to
organise things. Because I assume that your objective is to get merges and
PRs to also be listed under the headings like 'feature', 'fix' etc ?
—
Reply to this email directly, view it on GitHub
<#217 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL4BEZN7SIYDC45IEJD663VBHET5ANCNFSM5DG6G5OA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yes @IllusionVK that's exactly my objective. Unfortunately, as far as I know, it is not possible to get the ID of the PR from the commits listed by |
@adrien-berchet yeah so for me a merge looks like this
I'm probably not going to be able to spend the time on this to add that functionality, but using something like https://regexr.com/ could help you to get it all working in 2-3 hours I reckon. the original work I undertook probably took 5-6 hours of fiddling around, looping over and over to get everything working well. It would be cool if you can spend the time and then you can commit a PR on this also to help improve it 👍 |
Hi @IllusionVK , thanks for your tips and sorry for the late answer.
(note the merges instead of commits after
|
Hey @adrien-berchet did you notice that in |
Hey @cookpete I think this one is good to merge in now, if you are happy with it ? |
Three years late but… here we are. |
This template will organise commits into their own headings for each version using the Conventional Commits/Angular format as explained here https://www.conventionalcommits.org/en/v1.0.0/
Comments have been deliberately left in the template to