Closed krupis closed 5 months ago
Hey thanks for writing up this issue! - I've seen trailers on Github PRs like "Co-Authored by X" but had no idea they were their own flag on git commit, pretty cool!
Yeah I think this makes sense and is easy to add to the project.
:tada: This issue has been resolved in version 1.9.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Hello. I use Gitlab built-in feature (
glab
) to generate Changelogs for my projects based on Commit trailer messages as described here: https://docs.gitlab.com/ee/user/project/changelogs.htmlIn order for
glab
to detect commits, each commit needs to have a commit trailer. My commit example:git commit -m "fixed voltage measurement issue" --trailer "Changelog: fixed"
The following commit with a trailer will then show up in the Gitlab as shown below:![image](https://github.com/Everduin94/better-commits/assets/22237034/1ec9bec0-16fa-4da2-9e3e-b7e6a16579aa)
And when I generate the changelog, it will look something like:
Since I am making all commit messages and commit trailers by hand, this method is very sensitive to human error. For example if I make typo when writing a commit trailer, the
glab
will not detect the commits.I was hoping to use
better-commits
to automate this process and ensure each commit is tagged with appropriate commit trailer based on selected commit type.For example, I have a list of commit types:
Is there a possibility to append a trailer to commit message based on selected commit type? For example, if I select
feat
, I want to automatically appendChangelog: added
as my Commit trailer.If I select
fix
, I want to appendChangelog: fixed
and etc...Thanks in advance!