Not sure what is the best way to use git-cliff when bump version after merge request (python CI with poetry) #365
Replies: 1 comment 2 replies
-
Hello 👋🏼 First of all, can you share your Secondly, I'm guessing you can do something like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My current Python CI is that way:
Every repo starts with 0.0.0, once you create a branch, your version will be
0.0.0-ShortCommitHash
, and for each commit a new tag for a new pipeline.Once you create an MR (my instance is GitLab), and the MR is now merged, a new pipeline starts which are MR event, and in this pipeline, I'm bumping the version of the
pyproject.toml
, and getting a new version, the bump is based on the MR title, if it includesfix
or anything else, it'll bepatch
, if it wasfeat:
then bumpminor
, andBREAKING CHANGES:
will bumpmajor
.Now, during this script, I'm running git-cliff into CHANGELOG.md, but it takes all my recent commits and puts them in the current version.
I've missed the configuration to follow up, so I've added the cliff.toml into
pyproject.toml
and used flag--config
to point to the relevant file, but still.What will be the right method to use git-cliff in my case?
Beta Was this translation helpful? Give feedback.
All reactions