Skip to content

Commit 3262f88

Browse files
committed
wip
1 parent 0ceb7c8 commit 3262f88

File tree

12 files changed

+171
-151
lines changed

12 files changed

+171
-151
lines changed

docs/customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ cookiecutter gh:commitizen-tools/commitizen_cz_template
207207

208208
See [commitizen_cz_template](https://github.com/commitizen-tools/commitizen_cz_template) for details.
209209

210-
Once you publish your rules, you can send us a PR to the [Third-party section](./third-party-rules.md).
210+
Once you publish your rules, you can send us a PR to the [Third-party section](./third-party-plugins/about.md).
211211

212212
### Custom commit rules
213213

docs/third-party-plugins/about.md

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,60 @@
11
# What are third-party plugins?
22

3-
Third-party plugins are a way to extend Commitizen with additional commit message rules.
3+
Third-party plugins are a way to extend Commitizen with additional customized features.
44

5-
They are available as PyPI packages (installable with `pip`).
5+
These plugins are available as PyPI packages (installable with `pip`).
66

77
!!! note
88
New plugins are welcome! Once you published your plugins, please send us a PR to update this page.
99

10+
!!! note "Historical notes"
11+
This section was originally called "Third-Party Commitizen Templates", but has been renamed to "Third-Party Commitizen Rules" to better reflect the content.
1012

11-
<!-- TODO: explain what are the different types of plugins -->
13+
## Plugin features
1214

13-
## New plugin documentation template
15+
<!-- TODO: provide more details about the features -->
16+
17+
### Commit message convention
18+
19+
Includes the rules to validate and generate commit messages.
20+
21+
### Version scheme
22+
23+
Includes the rules to generate version numbers.
24+
25+
### Version provider
26+
27+
Read and write version from data sources.
28+
29+
### Changelog format
30+
31+
Generate changelog in customized formats.
1432

15-
Please document what do they provide:
33+
## How do I create a new plugin?
34+
35+
<!-- TODO -->
36+
37+
## How to help us update the list of plugins?
38+
39+
Please document what features the plugin provides:
1640

1741
- a convention
1842
- a scheme
1943
- a provider
2044
- a `changelog_format`
2145

22-
Of course, you can provide multiple features. `commitizen` itself is a plugin that provides all the features.
46+
Of course, a plugin can provide multiple features.
47+
You may have noticed that `commitizen` itself can be viewed as a plugin that provides all the above features.
48+
49+
Please see [cz-path](./cz-path.md) for a detailed example.
50+
51+
## New plugin documentation template
2352

2453
# [Package name](https://github.com/author/package-name)
2554

26-
Description of the plugin.
55+
<!-- Description of the plugin. -->
56+
57+
<!-- What features does the plugin provide? -->
2758

2859
## Installation
2960

@@ -36,3 +67,7 @@ Of course, you can provide multiple features. `commitizen` itself is a plugin th
3667
```sh
3768
cz --name package-name commit
3869
```
70+
71+
## Example
72+
73+
<!-- Example usage of the plugin. -->
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# [commitizen-deno-provider](https://pypi.org/project/commitizen-deno-provider/)
2+
3+
A provider for **Deno** projects. The provider updates the version in deno.json and jsr.json files.
4+
5+
## Installation
6+
7+
```sh
8+
pip install commitizen-deno-provider
9+
```
10+
11+
## Usage
12+
13+
Add `deno-provider` to your configuration file.
14+
15+
Example for `.cz.yaml`:
16+
17+
```yaml
18+
---
19+
commitizen:
20+
major_version_zero: true
21+
name: cz_conventional_commits
22+
tag_format: $version
23+
update_changelog_on_bump: true
24+
version_provider: deno-provider
25+
version_scheme: semver
26+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# [Commitizen emoji](https://pypi.org/project/commitizen-emoji/) (Unmaintained)
2+
3+
Just like *conventional commit* format, but with emojis and optionally time spent and related tasks.
4+
5+
## Installation
6+
7+
```sh
8+
pip install commitizen-emoji
9+
```
10+
11+
## Usage
12+
13+
```sh
14+
cz --name cz_commitizen_emoji commit
15+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# [Conventional JIRA](https://pypi.org/project/conventional-JIRA/)
2+
3+
Just like _conventional commit_ format, but the scope has been restricted to a
4+
JIRA issue format, i.e. `project-issueNumber`. This standardises scopes in a
5+
meaningful way.
6+
7+
## Installation
8+
9+
```sh
10+
pip install conventional-JIRA
11+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# [cz-conventional-gitmoji](https://github.com/ljnsn/cz-conventional-gitmoji)
2+
3+
*conventional commit*s, but with [gitmojis](https://gitmoji.dev).
4+
5+
Includes a pre-commit hook that automatically adds the correct gitmoji to the commit message based on the conventional type.
6+
7+
## Installation
8+
9+
```sh
10+
pip install cz-conventional-gitmoji
11+
```
12+
13+
## Usage
14+
15+
```sh
16+
cz --name cz_gitmoji commit
17+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# [cz-emoji](https://github.com/adam-grant-hendry/cz-emoji)
2+
3+
_conventional commit_ format, but with emojis.
4+
5+
## Installation
6+
7+
```sh
8+
pip install cz-emoji
9+
```
10+
11+
## Usage
12+
13+
```sh
14+
cz --name cz_emoji commit
15+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# [Conventional Legacy (cz_legacy)][cz_legacy]
2+
3+
An extension of the *conventional commit* format to include user-specified
4+
legacy change types in the `CHANGELOG` while preventing the legacy change types
5+
from being used in new commit messages.
6+
7+
## Installation
8+
9+
```sh
10+
pip install cz_legacy
11+
```
12+
13+
## Usage
14+
15+
See the [Conventional Legacy README][cz_legacy] for instructions on configuration.
16+
17+
[cz_legacy]: https://pypi.org/project/cz_legacy

docs/third-party-providers.md renamed to docs/third-party-plugins/cz-path.md

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,18 @@
1-
Commitizen can read and write version from different sources. In addition to the native providers, some alternative version sources are available as PyPI packages (installable with `pip`).
2-
3-
## [commitizen-deno-provider](https://pypi.org/project/commitizen-deno-provider/)
4-
5-
A provider for **Deno** projects. The provider updates the version in deno.json and jsr.json files.
6-
7-
### Installation
8-
9-
```sh
10-
pip install commitizen-deno-provider
11-
```
12-
13-
### Usage
14-
15-
Add `deno-provider` to your configuration file.
16-
17-
Example for `.cz.yaml`:
18-
19-
```yaml
20-
---
21-
commitizen:
22-
major_version_zero: true
23-
name: cz_conventional_commits
24-
tag_format: $version
25-
update_changelog_on_bump: true
26-
version_provider: deno-provider
27-
version_scheme: semver
28-
```
29-
30-
## [cz-path](https://pypi.org/project/cz-path/)
1+
# [cz-path](https://pypi.org/project/cz-path/)
312

323
Provides prefix choices for commit messages based on staged files (Git only).
334
For example, if the staged files are `component/z/a.ts` and `component/z/b.ts`,
345
the path prefix option will be `component/z` and commit message might look like:
356
`component/z/: description of changes`. If only one file is staged, the extension
367
is removed in the prefix.
378

38-
### Installation
9+
## Installation
3910

4011
```sh
4112
pip install cz-path
4213
```
4314

44-
### Usage
15+
## Usage
4516

4617
Add `cz-path` to your configuration file.
4718

@@ -59,7 +30,7 @@ Example for `.cz.json`:
5930
The default value for `remove_path_prefixes` is `["src"]`. Adding `/` to the
6031
prefixes is not required.
6132

62-
### Example session
33+
## Example session
6334

6435
```plain
6536
$ git add .vscode/
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# [GitHub JIRA Conventional](https://pypi.org/project/cz-github-jira-conventional/)
2+
3+
This plugin extends the Commitizen tools by:
4+
5+
- requiring a JIRA issue ID in the commit message
6+
- creating links to GitHub commits in `CHANGELOG.md`
7+
- creating links to JIRA issues in `CHANGELOG.md`
8+
9+
## Installation
10+
11+
```sh
12+
pip install cz-github-jira-conventional
13+
```
14+
15+
For installation instructions (configuration and pre-commit), please visit the [GitHub repository](https://github.com/apheris/cz-github-jira-conventional).

0 commit comments

Comments
 (0)