Skip to content

Commit 536d0ad

Browse files
committed
docs: fix typos, markdown table format, and grammar mistakes
1 parent be02801 commit 536d0ad

14 files changed

+88
-93
lines changed

docs/commands/changelog.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ These are the variables used by the changelog generator.
5656
It will create a full block like above per version found in the tags.
5757
And it will create a list of the commits found.
5858
The `change_type` and the `scope` are optional, they don't need to be provided,
59-
but if your regex does they will be rendered.
59+
but if your regex does, they will be rendered.
6060

6161
The format followed by the changelog is the one from [keep a changelog][keepachangelog]
6262
and the following variables are expected:
@@ -108,7 +108,7 @@ cz bump --changelog
108108

109109
This value can be updated in the `toml` file with the key `changelog_file` under `tools.commitizen`
110110

111-
Specify the name of the output file, remember that changelog only works with markdown.
111+
Specify the name of the output file, remember that changelog only works with Markdown.
112112

113113
```bash
114114
cz changelog --file-name="CHANGES.md"
@@ -120,7 +120,7 @@ This flag can be set in the `toml` file with the key `changelog_incremental` und
120120

121121
Benefits:
122122

123-
- Build from latest version found in changelog, this is useful if you have a different changelog and want to use commitizen
123+
- Build from the latest version found in changelog, this is useful if you have a different changelog and want to use commitizen
124124
- Update unreleased area
125125
- Allows users to manually touch the changelog without being rewritten.
126126

@@ -185,8 +185,8 @@ See [the template customization section](../customization.md#customizing-the-cha
185185

186186
Supported hook methods:
187187

188-
- per parsed message: useful to add links
189-
- end of changelog generation: useful to send slack or chat message, or notify another department
188+
- Per parsed message: Useful to add links
189+
- End of changelog generation: Useful to send Slack or chat messages, or notify another department
190190

191191
Read more about hooks in the [customization page][customization]
192192

docs/commands/check.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## About
44

5-
This feature checks whether the commit message follows the given committing rules. And comment in git message will be ignored.
5+
This feature checks whether the commit message follows the given committing rules. Comments in git messages will be ignored.
66

7-
If you want to setup an automatic check before every git commit, please refer to
7+
If you want to set up an automatic check before every git commit, please refer to
88
[Automatically check message before commit](../tutorials/auto_check.md).
99

1010
## Usage
@@ -27,7 +27,7 @@ $ cz check --rev-range REV_RANGE
2727

2828
For example, if you'd like to check all commits on a branch, you can use `--rev-range master..HEAD`. Or, if you'd like to check all commits starting from when you first implemented commit message linting, you can use `--rev-range <first_commit_sha>..HEAD`.
2929

30-
For more info on how git commit ranges work, you can check the [git documentation](https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection#_commit_ranges).
30+
For more information on how git commit ranges work, you can check the [git documentation](https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection#_commit_ranges).
3131

3232
### Commit Message
3333

@@ -47,16 +47,16 @@ In this option, MESSAGE is the commit message to be checked.
4747
$ echo MESSAGE | cz check
4848
```
4949

50-
In this option, MESSAGE is piped to cz check and would be checked.
50+
In this option, MESSAGE is piped to cz check and will be checked.
5151

5252
### Commit Message File
5353

5454
```bash
5555
$ cz check --commit-msg-file COMMIT_MSG_FILE
5656
```
5757

58-
In this option, COMMIT_MSG_FILE is the path of the temporal file that contains the commit message.
59-
This argument can be useful when cooperating with git hook, please check [Automatically check message before commit](../tutorials/auto_check.md) for more information about how to use this argument with git hook.
58+
In this option, COMMIT_MSG_FILE is the path of the temporary file that contains the commit message.
59+
This argument can be useful when cooperating with git hooks. Please check [Automatically check message before commit](../tutorials/auto_check.md) for more information about how to use this argument with git hooks.
6060

6161
### Allow Abort
6262

@@ -69,19 +69,19 @@ permit them. Since `git commit` accepts an `--allow-empty-message` flag (primari
6969

7070
### Allowed Prefixes
7171

72-
If the commit message starts by some specific prefixes, `cz check` returns `True` without checkign the regex.
73-
By default, the the following prefixes are allowed: `Merge`, `Revert`, `Pull request`, `fixup!` and `squash!`.
72+
If the commit message starts with some specific prefixes, `cz check` returns `True` without checking the regex.
73+
By default, the following prefixes are allowed: `Merge`, `Revert`, `Pull request`, `fixup!` and `squash!`.
7474

7575
```bash
7676
cz check --message MESSAGE --allowed-prefixes 'Merge' 'Revert' 'Custom Prefix'
7777
```
7878

7979
### Commit message length limit
8080

81-
The argument `-l` (or `--message-length-limmit`) followed by a positive number, can limit the length of commit messages.
81+
The argument `-l` (or `--message-length-limit`) followed by a positive number can limit the length of commit messages.
8282
For example, `cz check --message MESSAGE -l 3` would fail the check, since `MESSAGE` is more than 3 characters long.
8383
By default, the limit is set to 0, which means no limit on the length.
8484

85-
**Note that the limit applies only to the first line of the message.***
85+
**Note that the limit applies only to the first line of the message.**
8686
Specifically, for `ConventionalCommitsCz` the length only counts from the type of change to the subject,
87-
while the body, and the footer are not counted.
87+
while the body and the footer are not counted.

docs/commands/commit.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ a new commit message to be prompted.
4545
The argument `-l` (or `--message-length-limit`) followed by a positive number can limit the length of commit messages.
4646
An exception would be raised when the message length exceeds the limit.
4747
For example, `cz commit -l 72` will limit the length of commit messages to 72 characters.
48-
By default the limit is set to 0, which means no limit on the length.
48+
By default, the limit is set to 0, which means no limit on the length.
4949

5050
**Note that the limit applies only to the first line of the message.**
5151
Specifically, for `ConventionalCommitsCz` the length only counts from the type of change to the subject,

docs/config.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ commitizen:
341341
## Version providers
342342
343343
Commitizen can read and write version from different sources.
344-
By default, it use the `commitizen` one which is using the `version` field from the commitizen settings.
344+
By default, it uses the `commitizen` one which is using the `version` field from the commitizen settings.
345345
But you can use any `commitizen.provider` entrypoint as value for `version_provider`.
346346

347347
Commitizen provides some version providers for some well known formats:
@@ -369,9 +369,9 @@ version_provider = "pep621"
369369

370370
### Custom version provider
371371

372-
You can add you own version provider by extending `VersionProvider` and exposing it on the `commitizen.provider` entrypoint.
372+
You can add your own version provider by extending `VersionProvider` and exposing it on the `commitizen.provider` entrypoint.
373373

374-
Here a quick example of a `my-provider` provider reading and writing version in a `VERSION` file.
374+
Here is a quick example of a `my-provider` provider reading and writing version in a `VERSION` file.
375375

376376
```python title="my_provider.py"
377377
from pathlib import Path

docs/contributing.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ If you're a first-time contributor, you can check the issues with [good first is
88

99
## Install before contributing
1010

11-
1. Install [poetry](https://python-poetry.org/) `>=2.0.0`, installation [pages](https://python-poetry.org/docs/#installing-with-the-official-installer)
12-
2. Install [gpg](https://gnupg.org), installation [pages](https://gnupg.org/documentation/manuals/gnupg/Installation.html#Installation). For Mac users, you could try [homebrew](https://brew.sh/).
11+
1. Install [poetry](https://python-poetry.org/) `>=2.0.0`. See installation [pages](https://python-poetry.org/docs/#installing-with-the-official-installer).
12+
2. Install [gpg](https://gnupg.org). See installation [pages](https://gnupg.org/documentation/manuals/gnupg/Installation.html#Installation). For Mac users, you can use [homebrew](https://brew.sh/).
1313

1414
## Before making a pull request
1515

1616
1. Fork [the repository](https://github.com/commitizen-tools/commitizen).
17-
2. Clone the repository from your GitHub.
18-
3. Setup development environment through [poetry](https://python-poetry.org/) (`poetry install`).
19-
4. Setup [pre-commit](https://pre-commit.com/) hook (`poetry setup-pre-commit`)
20-
5. Check out a new branch and add your modification.
21-
6. Add test cases for all your changes.
17+
1. Clone the repository from your GitHub.
18+
1. Set up development environment through [poetry](https://python-poetry.org/) (`poetry install`).
19+
1. Set up [pre-commit](https://pre-commit.com/) hook (`poetry setup-pre-commit`).
20+
1. Checkout a new branch and add your modifications.
21+
1. Add test cases for all your changes.
2222
(We use [CodeCov](https://codecov.io/) to ensure our test coverage does not drop.)
23-
7. Use [commitizen](https://github.com/commitizen-tools/commitizen) to do git commit. We follow [conventional commits](https://www.conventionalcommits.org/).
24-
8. Run `poetry all` to ensure you follow the coding style and the tests pass.
25-
9. Optionally, update the `./docs/README.md` or `docs/images/cli_help` (through running `poetry doc:screenshots`).
26-
9. **Do not** update the `CHANGELOG.md`, it will be automatically created after merging to `master`.
27-
10. **Do not** update the versions in the project, they will be automatically updated.
28-
10. If your changes are about documentation. Run `poetry doc` to serve documentation locally and check whether there is any warning or error.
29-
11. Send a [pull request](https://github.com/commitizen-tools/commitizen/pulls) 🙏
23+
1. Use [commitizen](https://github.com/commitizen-tools/commitizen) to do git commit. We follow [conventional commits](https://www.conventionalcommits.org/).
24+
1. Run `poetry all` to ensure you follow the coding style and the tests pass.
25+
1. Optionally, update the `./docs/README.md` or `docs/images/cli_help` (through running `poetry doc:screenshots`).
26+
1. **Do not** update the `CHANGELOG.md`; it will be automatically created after merging to `master`.
27+
1. **Do not** update the versions in the project; they will be automatically updated.
28+
1. If your changes are about documentation, run `poetry doc` to serve documentation locally and check whether there are any warnings or errors.
29+
1. Send a [pull request](https://github.com/commitizen-tools/commitizen/pulls) 🙏
3030

3131
## Use of GitHub Labels
3232

@@ -45,8 +45,8 @@ If you're a first-time contributor, you can check the issues with [good first is
4545
* pr-status: wait-for-modification
4646
* pr-status: wait-for-response
4747
* pr-status: ready-to-merge
48-
* needs: test-case *(pr only)*
49-
* needs: documentation *(pr only)*
48+
* needs: test-case *(PR only)*
49+
* needs: documentation *(PR only)*
5050
* type: feature
5151
* type: bug
5252
* type: documentation

docs/customization.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ commitizen:
170170

171171
| Parameter | Type | Default | Description |
172172
| ----------- | ------ | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
173-
| `type` | `str` | `None` | The type of questions. Valid types: `list`, `select`, `input` and etc. The `select` type provides an interactive searchable list interface. [See More][different-question-types] |
173+
| `type` | `str` | `None` | The type of questions. Valid types: `list`, `select`, `input`, etc. The `select` type provides an interactive searchable list interface. [See More][different-question-types] |
174174
| `name` | `str` | `None` | The key for the value answered by user. It's used in `message_template` |
175175
| `message` | `str` | `None` | Detail description for the question. |
176176
| `choices` | `list` | `None` | (OPTIONAL) The choices when `type = list` or `type = select`. Either use a list of values or a list of dictionaries with `name` and `value` keys. Keyboard shortcuts can be defined via `key`. See examples above. |
@@ -192,10 +192,10 @@ To specify keyboard shortcuts for your custom choices, provide the shortcut usin
192192

193193
The basic steps are:
194194

195-
1. Inheriting from `BaseCommitizen`
195+
1. Inheriting from `BaseCommitizen`.
196196
2. Give a name to your rules.
197-
3. Create a python package using `setup.py`, `poetry`, etc
198-
4. Expose the class as a `commitizen.plugin` entrypoint
197+
3. Create a python package using `setup.py`, `poetry`, etc.
198+
4. Expose the class as a `commitizen.plugin` entrypoint.
199199

200200
Check an [example][convcomms] on how to configure `BaseCommitizen`.
201201

@@ -322,9 +322,9 @@ You can customize it of course, and this are the variables you need to add to yo
322322
| `commit_parser` | `str` | NO | Regex which should provide the variables explained in the [changelog description][changelog-des] |
323323
| `changelog_pattern` | `str` | NO | Regex to validate the commits, this is useful to skip commits that don't meet your ruling standards like a Merge. Usually the same as bump_pattern |
324324
| `change_type_map` | `dict` | NO | Convert the title of the change type that will appear in the changelog, if a value is not found, the original will be provided |
325-
| `changelog_message_builder_hook` | `method: (dict, git.GitCommit) -> dict | list | None` | NO | Customize with extra information your message output, like adding links, this function is executed per parsed commit. Each GitCommit contains the following attrs: `rev`, `title`, `body`, `author`, `author_email`. Returning a falsy value ignore the commit. |
325+
| `changelog_message_builder_hook` | `method: (dict, git.GitCommit) -> dict \| list \| None` | NO | Customize with extra information your message output, like adding links, this function is executed per parsed commit. Each GitCommit contains the following attrs: `rev`, `title`, `body`, `author`, `author_email`. Returning a falsy value ignore the commit. |
326326
| `changelog_hook` | `method: (full_changelog: str, partial_changelog: Optional[str]) -> str` | NO | Receives the whole and partial (if used incremental) changelog. Useful to send slack messages or notify a compliance department. Must return the full_changelog |
327-
| `changelog_release_hook` | `method: (release: dict, tag: git.GitTag) -> dict` | NO | Receives each generated changelog release and its associated tag. Useful to enrich a releases before they are rendered. Must return the update release
327+
| `changelog_release_hook` | `method: (release: dict, tag: git.GitTag) -> dict` | NO | Receives each generated changelog release and its associated tag. Useful to enrich releases before they are rendered. Must return the update release
328328

329329
```python
330330
from commitizen.cz.base import BaseCommitizen
@@ -395,7 +395,7 @@ class NoSubjectProvidedException(CzException):
395395
Commitizen migrated to a new plugin format relying on `importlib.metadata.EntryPoint`.
396396
Migration should be straight-forward for legacy plugins:
397397

398-
- Remove the `discover_this` line from you plugin module
398+
- Remove the `discover_this` line from your plugin module
399399
- Expose the plugin class under as a `commitizen.plugin` entrypoint.
400400

401401
The name of the plugin is now determined by the name of the entrypoint.
@@ -455,12 +455,12 @@ By default, the template used is the `CHANGELOG.md.j2` file from the commitizen
455455

456456
### Providing a template with your customization class
457457

458-
There is 3 parameters available to change the template rendering from your custom `BaseCommitizen`.
458+
There are 3 parameters available to change the template rendering from your custom `BaseCommitizen`.
459459

460460
| Parameter | Type | Default | Description |
461461
| ----------------- | ------ | ------- | ----------------------------------------------------------------------------------------------------- |
462-
| `template` | `str` | `None` | Provide your own template name (default to `CHANGELOG.md.j2`) |
463-
| `template_loader` | `str` | `None` | Override the default template loader (so you can provide template from you customization class) |
462+
| `template` | `str` | `None` | Provide your own template name (default to `CHANGELOG.md.j2`) |
463+
| `template_loader` | `str` | `None` | Override the default template loader (so you can provide template from your customization class) |
464464
| `template_extras` | `dict` | `None` | Provide some extra template parameters |
465465

466466
Let's see an example.
@@ -484,14 +484,14 @@ This snippet will:
484484

485485
### Providing a template from the current working directory
486486

487-
Users can provides their own template from their current working directory (your project root) by:
487+
Users can provide their own template from their current working directory (your project root) by:
488488

489489
- providing a template with the same name (`CHANGELOG.md.j2` unless overridden by your custom class)
490490
- setting your template path as `template` configuration
491491
- giving your template path as `--template` parameter to `bump` and `changelog` commands
492492

493493
!!! Note
494-
The path is relative to the current working directory, aka. your project root most of the time.
494+
The path is relative to the current working directory, aka your project root most of the time.
495495

496496
### Template variables
497497

@@ -507,7 +507,7 @@ Each `Change` has the following fields:
507507

508508
| Name | Type | Description |
509509
| ---- | ---- | ----------- |
510-
| scope | `str | None` | An optional scope |
510+
| scope | `str \| None` | An optional scope |
511511
| message | `str` | The commit message body |
512512
| sha1 | `str` | The commit `sha1` |
513513
| parents | `list[str]` | The parent commit(s) `sha1`(s) |
@@ -524,7 +524,7 @@ When using another template (either provided by a plugin or by yourself), you ca
524524
by:
525525

526526
- defining them in your configuration with the [`extras` settings][extras-config]
527-
- providing them on the commandline with the `--extra/-e` parameter to `bump` and `changelog` commands
527+
- providing them on the command line with the `--extra/-e` parameter to `bump` and `changelog` commands
528528

529529
[template-config]: config.md#template
530530
[extras-config]: config.md#extras

0 commit comments

Comments
 (0)