ljnsn / cz-conventional-gitmoji Goto Github PK
View Code? Open in Web Editor NEWA commitizen plugin that combines gitmoji and conventional commits.
A commitizen plugin that combines gitmoji and conventional commits.
I am trying to use cz-conventional-gitmoji
in a Github Action, to bump my package version automatically.
I am met with this error: 'cz_gitmoji' rule does not support bump
Even if I run the command on the CLI with cz --name cz_gitmoji bump
, I get the same error... 'cz_gitmoji' rule does not support bump
Hi! Is there any place where to look at the expanded list of types that will be recognized and converted to emojis? Is it an official list of gitmoji?
Also, what will happen when that expanded list is used for bumping packages with commitizen? Are the different categories assigned to default minor and/or partches?
Thanks.
Seems like tests on Windows always pass at the moment, because the test script is not executed correctly.
While chore is not a type in cz, it seems to be used and recommended by conventional commits.
Would it be possible to add it in the mojis that you use? The pre-commit doesn't work for me with chore type commit.
When merging changes from a main branch into feature branch as follows:
git checkout feature-branch
git merge main
> Auto-merging CHANGELOG.md
> CONFLICT (content): Merge conflict in CHANGELOG.md
> Automatic merge failed; fix conflicts and then commit the result.
git add .
git commit
< close text editor with default "Merge branch 'main' into feature-branch" >
This error occurs:
gitmojify................................................................Failed
- hook id: conventional-gitmoji
- exit code: 1
Traceback (most recent call last):
File "/home/vscode/.cache/pre-commit/repo75cf19di/py_env-python3/bin/gitmojify", line 8, in <module>
sys.exit(run())
^^^^^
File "/home/vscode/.cache/pre-commit/repo75cf19di/py_env-python3/lib/python3.11/site-packages/gitmojify/mojify.py", line 57, in run
f.write(gitmojify(msg))
^^^^^^^^^^^^^^
File "/home/vscode/.cache/pre-commit/repo75cf19di/py_env-python3/lib/python3.11/site-packages/gitmojify/mojify.py", line 42, in gitmojify
raise ValueError("invalid commit message")
ValueError: invalid commit message
This behavior is different from commitizen which includes "Merge" commits in its list of ignored commits. See docs.
One possible solution would be fetching the set of allowed commits messages from the commitizen configuration and allowing them. That seems pretty complicated though.
The approach that seems both a bit easier to implement and potentially more on theme with gitmojify
would be automatically correct these non-conventional commits into gitmojified commits. The one downside to that approach is that would potentially mean that these low-information commits might get added to the changelog when previously they weren't.
I am looking to use the commit hook to append emojis onto my commit messages, although it doesn't seem to be working?
# pyproject.toml
[tool.commitizen]
name = "cz_gitmoji"
version = "0.0.0"
tag_format = "v$version"
update_changelog_on_bump = true
annotated_tag = true
major_version_zero = true
version_files = [
"pyproject.toml:^version",
]
path = ".cz-config.js"
==================================
#.pre-commit-config.yaml
repos:
- repo: https://github.com/ljnsn/cz-conventional-gitmoji
rev: main
hooks:
- id: conventional-gitmoji
The Gitmoji CLI should be able to filter down the choices of the commit by using the keyboard, so typing f
, would bring all of the f
types available to commit! This would make usability much better :D
I want to add gitmoji commits to my cookiecutter template. I have noticed in the past that the package doesn't bump at all using github actions when there is an emoji in the commit change type, only in the message?
Is it possible to have gitmoji commits with commitizen, and also have cz recognize the commits to bump the package version?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.