-
-
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
History of hotfix gets combined with unreleased section #38
Comments
Hello! When I look at the git history, changelog makes sense. First,
Then, you committed So
In this case, $ git tag --contains $(git log --pretty=format:"%h" --all --grep='start work on v1.1.0')
v1.0.1
I can't really see a problem about the changelog here :/ That's why I can't answer your question. I used the following script to reproduce the git history, let me know if I missed something: git init
git checkout -b develop
git commit --allow-empty -m "feat: v1.0.0"
git tag v1.0.0
git checkout -b master
git commit --allow-empty -m "chore: start work on v1.1.0"
git checkout -b hotfix/1.0.1
git commit --allow-empty -m "fix: v1.0.1"
git tag v1.0.1
git checkout master
git merge hotfix/1.0.1
git checkout develop
git merge --no-ff hotfix/1.0.1 Results in:
|
Hello! I've found the same problem using one-flow in my company. To be more clear this is the actual tree (without the commit message)
The changelogs created internally in the hotfix branches (that are tagged from 0.1.1 and 0.1.2) were built correctly with only 53facfc6 for 0.1.2 and 1b73f166...bcd19c61 for the 0.1.1. That sounds like the problem described by @Pyth0ff |
#415 addresses this. |
First of all I really like the simplicty of
git-cliff
, but I encountered an issue where I don't know, if we are using it correct or not. It sounds like a little bit like #29, but I'm not sure.Description
In the project I'm working on we have a
git-flow
like branching model at the moment. We created from develop the version v1.0.0 and merged these changes to master. Afterwards we continued our work on v1.1.0 on develop in the meanwhile, but later an urgent issue for v1.0.0 occured and we had to create an hotfix v1.0.1.We created an branch hotfix/1.0.1 from master and merged these changes back to master and develop, but on develop the work continued and after the merge of hotfix/1.0.1 into develop the changelog now combines the changes from the hotfix with the unreleased changes on develop.
Actual Output
The corresponding changelog looks like this:
Expected Output
Question
How can we prevent that the hotfix changes an the unreleased changes are combined by their commit date?
The text was updated successfully, but these errors were encountered: