Closed andreacfromtheapp closed 2 months ago
This feature is missing. It's not a bug. https://github.com/MarcoIeni/release-plz/issues/989
It's one of my priorities but I didn't find time to work on it :(
Sorry about the bug report then! Thank you for release-plz. <3
No worries π
one question @MarcoIeni: do you like the template at all? should I PR? (ofc minus the broken stuff, which I am removing as we speak). ref: https://github.com/gacallea/freesound-credits/blob/main/CHANGELOG.md
Sure, the template looks dope! π
Feel free to write your [changelog]
section in the website π
Tip: Instead of the macro remote_url()
you can use remote.link
. π
working on this here: https://github.com/MarcoIeni/release-plz/pull/1606
Yay! will do as soon as I am done fixing stuff :)
To be fair: I based it on git-cliff changelog and fixed/added a few things to make it behave with markdownlint (extra spaces, h1 header) and filtered out some others.
One more thing, before I open another useless bug! I noticed that release-plz needs an extra v
in place here, to match the same behavior in changelog:
({{ remote.link }}/compare/v{{ previous.version }}..v{{ version }})
-- plz({{ remote.link }}/compare/{ previous.version }}..{{ version }})
-- cliffI tried looking at the code but I am a noob. I deduced that release-plz may not be using cliff api tho and some things diverge. Is this extra v a bug I should report?
edit: that v thing is necessary in plz when filtering out like so:
{% if version %}\
{% if previous.version %}\
## [{{ version | trim_start_matches(pat="v") }}]\
({{ remote.link }}/compare/v{{ previous.version }}..v{{ version }})
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}]
{% endif %}\
{% endif %}\
I didn't get the v issue. However, release-plz offers the release_link variable. Check it out in the docs. It does what you are trying to do for you π
We use git cliff api, but we diverge a bit, yes
amazing Marco! works perfectly now :)
I also modified the example PR https://github.com/MarcoIeni/release-plz/pull/1607 to match
FYI commit.author.name should work now :) just wait for CI to finish in https://github.com/MarcoIeni/release-plz/commit/4e33fe15a66714800b84ea177dc4beb350713a18
Bug description
{{ commit.author.name }}
not working in{% macro print_commit(commit) -%}
To Reproduce
Steps to reproduce the behavior:
git cliff -o CHANGELOG.md
to fill the file a first timerelease-plz update
and see that under Unreleased the author is missing (line ending withby
on its own)Expected behavior
each commit should end with an author. e.g:
Adding pre-commit hook for convetional - (924c906) by gacallea
Screenshots
0.2.12 by release-plz GitHub Action 0.2.11 and below generated by
git cliff -o CHANGELOG.md
with the process described in the steps aboveEnvironment
Additional context
Please ignore the quirks of the
cliff.toml
-- namely the broken rewrites and broken links -- as they are irrelevant here.