-
Notifications
You must be signed in to change notification settings - Fork 43
Bump failing after commitizen upgrade to 2.21.0 #19
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'm having the same issue. Using the action: id: commitizen
uses: commitizen-tools/[email protected]
with:
github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }} Logs from my failing workflow: Commitizen version:
2.21.0
Running cz: --changelog
[NO_COMMITS_TO_BUMP]
The commits found are not elegible to be bumped
chore(version): 0.6.2 → 0.6.2
tag to create: 0.6.2
increment detected: None |
That's very strange, gonna take a look, thanks for reporting! |
Could you share some samples of the commits that are not being detected? thanks! |
I think I didn't give enough details, sorry about that ! For my part the problem isn't that the commit isn't detected, but rather that now the action fails for a specific case when before it didn't :) I assume it's due to this patch : commitizen-tools/commitizen#473 |
I think we could make the action point to |
I've created a PR to introduce the version, if you could review I'd appreciate |
Great idea to be able to manually enter the version while keeping the original Thanks a lot for the quick fix ! I looked at the PR and added a comment - I'm not very familiar with the codebase but can review if needed ! |
@floredelasteyrie I've proposed another option in #21 that may be useful to your situation as well. |
New changes to revert back the version were introduced already in this action. |
Please review #25 it should solve the issue and bring back functionality |
@datanrd, |
@woile Is this not fixed yet? I am having the same issue on: commitizen: |
What happens if you do |
@Kurt-von-Laven @woile I'm not thinking; I'm sorry. I need |
Yeah, and just to be clear for the sake of anyone following this thread, my understanding is that passing |
@woile @Kurt-von-Laven How can I push without triggering CI? GitHub supports adding a comment to the commit message, like Can I do this somehow with the |
@Kurt-von-Laven @woile I suppose for now, I can add if: "!startsWith(github.event.head_commit.message, 'bump:')" to the beginning of those workflow jobs I don't want to run when this happens. Just wondering if there's another way to do this? |
You could customize the bump commit message to include skip ci and use that condition with skip ci instead of |
@woile How do you customize the message from within a GitHub Actions workflow? |
Do the official Commitizen docs answer your question? |
No because that gives you general information about how to customize all commit messages, but we would need to customize the message to have a comment if the This probably involves some form of a regular expression I'm sure... |
Oh, I see your point. Maybe this is a feature request for commitizen-tools/commitizen in that case? @woile will know better than I though. |
No worries at all. I'm sure I could figure it out if I devoted more time to it, but it's more time than I have to commit at the given moment. It would be nice as an example added to the documentation, so a feature request sounds appropriate. |
@Kurt-von-Laven @woile I need to
I'm trying to figure out how to do this. I'm not able to update a release once it's created, but I'm also not finding a way to pass How can I achieve this? |
@Kurt-von-Laven @woile nvm, I figured it out. I had to use your repo plus |
Any news about the issue? |
@metya, are you already passing @adam-grant-hendry, I recently learned of semantic-release, which may be helpful to you or others in the future with more complex use cases. |
No, it should've been closed. @metya this ticket discusses multiple different problems, please open a new issue with your problem and provide more information. In github actions if you use the If you need to add [tool.commitizen]
bump_message = "release $current_version → $new_version [skip-ci]" Alternatively, you can skip a commit in github actions using:
If you need to make a release, look at commitizen's documentation I'm closing this as it's off-topic, please open new issues for other problems |
When commitizen was upgraded to 2.21.0, my job started to fail with
No tag found to do an incremental changelog
. Here are the logs from the workflow:When running cz bump --yes --changelog locally it completes without error.
The text was updated successfully, but these errors were encountered: