-
-
Notifications
You must be signed in to change notification settings - Fork 281
No tag found to do an incremental changelog #463
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
Comments
I cloned your repo, and I think your main issue is the - tag_format: v$major.$minor.$patch$prerelease
+ tag_format: $major.$minor.$patch$prerelease And then created the missing tag (0.12.9). Let me know if this helps, because in your examples there are tags that are not available in the repo you linked. |
ok now I wrapped my head around it. I was (naively) thinking that tags were pushed to distant repo but nope. So these tags are only existing on my local creating all sort of isssues (actions not triggered), previous tag not existing etc... Now that the workflow is clearer to me, it works like a charm. thanks for the guidance ! |
Great news! |
I'm waiting for this issue to be solved as I'm using a |
I'm reopening the issue because it's the exact same problem in another repository. I thought I had understand but it seems I didn't... So in this repository: https://github.com/12rambau/sepal_ui I wanted to do the exact same thing: create the changelog on bump. currently I'm not. I tried to add to folowing in my changelog_incremental: true
update_changelog_on_bump: true But I'm getting the exact same error:
This time I checked my tags and they should all be here with a |
It works fine on my side. I cloned, run My conf:
on ubuntu |
I think that's because I had manually updated the changelog file. I deleted it on the 2.6.2 release and everything came back to normal |
- as suggested here: commitizen-tools/commitizen#463 (comment) Signed-off-by: Ingerid Dale <ingerid.dale@nb.no>
Sorry to reopen it again but I fail to get it every time I want to use the So still the same old problem, I changed stuff in my repository sepal_ui and on a fresh clone and I run
which is again not working. looking at the tags: |
I digged a bit in the lib and it seems the problem for me is coming from the way commitizen is recognizing tags in the tag list.
I printed the partial result of the evaluation from my side:
That's the latest but as .83 < .89 I get an error. Would it be possible to reduce the value to let's say .8 ? and add my example to the tests ? |
think that would be possible, do you think you could add some extra examples? |
I'll look at the test structure to see if I can generate more exotic version convention (vers_, version., v- etc) and check how they behave with the current value |
@woile if such error could happen, do you think we should make that values configurable 🤔 |
that would be super difficult for users to guess what is the appropriate value. plus if you decrease the value to much you'll may end up with a result that is not the expected one. IMO that is safer to build the test with exotic version conventions and add one if somebody have a weird idea (like "v_" in my case). It ensures that the value is as high as possible. |
Sounds great! maybe we could list what we have tested, so the next time we want to change the value we'll have a better idea on why we decide to use that value from the very begining |
Hi I was trying to run
Also, I'm not setting any git tags, just trying to use cz directly as a PoC for our CI/CD process. |
@souravjamwal77 May I know what was the commit types (e.g., feat, fix)? If there's only commitizen/commitizen/defaults.py Line 73 in 85d9939
|
@Lee-W, I will have the time to work on this in the next 2 weeks, where would you like me to write the tests and is there already an example where you create a fake changelog with a normal version tree (to get some inspiration) ? |
@12rambau Is this something you're looking for? https://github.com/commitizen-tools/commitizen/blob/master/tests/test_changelog.py#L516 |
I'm having the same issue, but only on Github actions.. Doing CZ bump locally seems to work, but using the github actions setup always seems to yield:
Can someone take a look at my repo and settings to see why this might be? link I've tried setting the tag format both with and without a v, but nothing seems to fix it. -- EDIT |
I've updated the docs for github actions. I think this issue shouldn't be happening anymore. Try using latest |
I had changed from body.md to CHANGELOG.md, and I am still getting this error using the Github action. Settings:
Github Action:
Everything works fine if I comment out |
switching to |
I was also having similar problem. `vscode ➜ /workspaces/Project (proj_branch) $ cz bump No tag found to do an incremental changelog` Deleted the CHANGELOG.md file and committed changes using `Commit successful! [proj_branch c7f4000] bump: version 0.0.1 → 0.1.0 Done!` |
I am facing the same issue when perfoming the first bump with commitizen version: 3.30.0
Or this
|
the same here and somehow irritating... i have invested quite a lot of time to end up here... can the issue please be reopened? |
yep, we could open it. I'm kinda out of bandwidth recently. would appreciate if we could have detailed reproducing steps so that I can get into it quicker when I have time |
Description
I want to use commitizen in my repository and automatically bump vresion to pipy (and maybe someday conda-forge). Looking at the documentation I started with github actions that are still not compatible with my repository structure (I have a
main
branch and I'm working directly on it).So I wanted to go with the CLI that looks exactly like what i needed:
I created a
.cz.yaml
file:and did little modifications
Steps to reproduce
When I run
cz bump
I get the following error message:If I clean the changelog.md file, it works but I then only have the latest tag and not the previous one.
So I changed the
.cz.yaml
file to bump the changelog in a second step:Then the tag is created but running
cz changelog
end up with the same error message.When I print my tags they are all here even some that I don't want to use:
It looks like a chicken & egg problem, what did I miss in my configuration?
Environment
Commitizen Version: 2.20.2
Python Version: 3.8.3 (default, Oct 14 2020, 12:53:46)
[Clang 11.0.3 (clang-1103.0.32.29)]
Operating System: Darwin
The text was updated successfully, but these errors were encountered: