Skip to content

Commit 308de9c

Browse files
authored
docs: Fix exit code for NoCommitsFoundError
The source code indicates that the correct exit code is 3. See https://github.com/commitizen-tools/commitizen/blob/master/commitizen/exceptions.py#L10
1 parent 095f02e commit 308de9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/exit_codes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ These exit codes can be found in `commitizen/exceptions.py::ExitCode`.
1010
| DryRunExit | 0 | Exit due to passing `--dry-run` option |
1111
| NoCommitizenFoundException | 1 | Using a cz (e.g., `cz_jira`) that cannot be found in your system |
1212
| NotAGitProjectError | 2 | Not in a git project |
13-
| NoCommitsFoundError | 4 | No commit found |
13+
| NoCommitsFoundError | 3 | No commit found |
1414
| NoVersionSpecifiedError | 4 | Version can not be found in configuration file |
1515
| NoPatternMapError | 5 | bump / changelog pattern or map can not be found in configuration file |
1616
| BumpCommitFailedError | 6 | Commit error when bumping version |

0 commit comments

Comments
 (0)