-
-
Notifications
You must be signed in to change notification settings - Fork 278
Add Choice [ chore, revert ] to question "Select the type of change you are committing" #36
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
thx for your amazing work about this project! |
I'm glad you like it :) I don't want to bloat a lot the current conventional commits. It's using the latest version of conventional commits with elements from angular. And they don't include I recommend creating a custom Something along the lines: from commitizen.cz.conventional_commits import ConventionalCommitsCz
class CustomCC(ConventionalCommitsCz):
def questions(self):
questions = super().questions()
questions[0]["choices"] = [
{
"value": "fix",
"name": "fix: A bug fix. Correlates with PATCH in SemVer",
},
{
"value": "feat",
"name": "feat: A new feature. Correlates with MINOR in SemVer",
},
{"value": "docs", "name": "docs: Documentation only changes"},
{
"value": "style",
"name": (
"style: Changes that do not affect the "
"meaning of the code (white-space, formatting,"
" missing semi-colons, etc)"
),
},
{
"value": "refactor",
"name": (
"refactor: A code change that neither fixes "
"a bug nor adds a feature"
),
},
{
"value": "perf",
"name": "perf: A code change that improves performance",
},
{
"value": "test",
"name": (
"test: Adding missing or correcting " "existing tests"
),
},
{
"value": "build",
"name": (
"build: Changes that affect the build system or "
"external dependencies (example scopes: pip, docker, npm)"
),
},
{
"value": "ci",
"name": (
"ci: Changes to our CI configuration files and "
"scripts (example scopes: GitLabCI)"
),
},
{
"value": "chore",
"name": "Other changes that don't modify src or test files"
},
{
"value": "revert",
"name": "Reverts a previous commit"
},
],
return questions
discover_this = CustomCC |
Received, I think what you said makes sense. |
chore: Other changes that don't modify src or test files
revert: Reverts a previous commit
The text was updated successfully, but these errors were encountered: