diff --git a/README.md b/README.md index 00e88bb..1d1be8e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # commitizen cz template -cz template for [commitizen](https://github.com/Woile/commitizen) +cz template for [commitizen](https://github.com/Woile/commitizen) v3 ## Prerequiste * Python 3.x @@ -12,7 +12,7 @@ cz template for [commitizen](https://github.com/Woile/commitizen) 1. Initialize project through cookiecutter ```sh - cookiecutter gh:Lee-W/commitizen_cz_template + cookiecutter gh:commitizen-tools/commitizen_cz_template ``` Note that you don't need to add cz prefix in your project name and package name. @@ -22,7 +22,9 @@ cz template for [commitizen](https://github.com/Woile/commitizen) 4. Test through `cz --name cz_[cz_name] [command]` ## Lisence + [MIT](https://opensource.org/licenses/MIT) ## Author + [Lee-W](https://github.com/Lee-W/) (weilee.rx@gmail.com) diff --git a/pyproject.toml b/pyproject.toml index 489dfd8..d416278 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,3 +17,5 @@ version = "0.1.0" requires = ["poetry>=0.12"] build-backend = "poetry.masonry.api" +[tool.poetry.plugins."commitizen.plugin"] +cz_{{cookiecutter.cz_name}} = "{{cookiecutter.cz_name}}.cz_{{cookiecutter.cz_name}}:{{cookiecutter.cz_name | capitalize}}Cz" \ No newline at end of file diff --git a/{{cookiecutter.cz_name}}/README.md b/{{cookiecutter.cz_name}}/README.md index 6ddc515..dd1ddbc 100644 --- a/{{cookiecutter.cz_name}}/README.md +++ b/{{cookiecutter.cz_name}}/README.md @@ -3,4 +3,5 @@ ## Usage ## Author + {{cookiecutter.author_name}} ({{cookiecutter.email}}) diff --git a/{{cookiecutter.cz_name}}/cz_{{cookiecutter.cz_name}}.py b/{{cookiecutter.cz_name}}/cz_{{cookiecutter.cz_name}}.py index 1ccf1f7..c8fd223 100644 --- a/{{cookiecutter.cz_name}}/cz_{{cookiecutter.cz_name}}.py +++ b/{{cookiecutter.cz_name}}/cz_{{cookiecutter.cz_name}}.py @@ -7,6 +7,3 @@ def questions(self) -> list: def message(self, answers: dict) -> str: raise NotImplementedError("Not Implemented yet") - - -discover_this = {{cookiecutter.cz_name | capitalize}}Cz \ No newline at end of file