-
-
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
feat(changelog): make changelog.header
a template
#698
feat(changelog): make changelog.header
a template
#698
Conversation
9f53d67
to
a50d1c9
Compare
Hi @orhun, |
2af1749
to
1363703
Compare
I am not quite sure what to do about the allegedly wrong formatting in
|
2aff152
to
c98f85c
Compare
And this is another problem: https://github.com/orhun/git-cliff/actions/runs/9518517603/job/26239610418?pr=698#step:3:842 I have no idea why the template behaves differently in test-header-template compared to test-footer-template. They are identical, but in test-header-template there is indentation, in test-footer-template there is not. I am done for today, maybe someone else could take a look into this. |
c98f85c
to
4033895
Compare
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #698 +/- ##
==========================================
+ Coverage 36.29% 36.42% +0.13%
==========================================
Files 19 19
Lines 1455 1461 +6
==========================================
+ Hits 528 532 +4
- Misses 927 929 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
2abd2a8
to
35c185c
Compare
Can you resolve the conflicts? 😊 |
c32e7eb
to
b819e84
Compare
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.
LGTM! Can you update the tests and documentation?
408a4e2
to
66ba023
Compare
I've fixed the tests and added the minimalist documentation update. How do we deal with the formatting? I cannot get my local rustfmt to format the code the way the pipeline wants it to be. |
Thanks! The formatting is already fixed in I can also handle it before merging the PR, no biggie. |
66ba023
to
ea9841e
Compare
I've tried improving the documentation by specifying the context of each template. Is this okay? |
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.
LGTM, thank you!
One thing that crossed my mind is that --prepend
won't work as expected now when there are template variables in the header
. It used to work like:
1- Read the contents from existing changelog file.
2- Replace the header
in the file with the new changelog entries.
Now that the header
is not a raw string & is not rendered, we won't be able to perform the replace properly.
Are you interested in fixing this as well? I think we only need to render header
before replacing it in the file. I would really appreciate if you can test this case and create an issue!
Congrats on merging your first pull request! ⛰️ |
I was not aware of this feature. I created a bug issue to deal with that: #712 |
Made changelog.header into a template like changelog.body and changelog.footer. Added test test-header-template.
Description
Implement #697.
Motivation and Context
Create parity between
changelog.header
,changelog.body
andchangelog.footer
.How Has This Been Tested?
Types of Changes
Checklist: