From 308de9c91bdf779028af11dd0dbf9efb71ce1e23 Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 5 Jan 2022 14:24:54 +0100 Subject: [PATCH] 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 --- docs/exit_codes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/exit_codes.md b/docs/exit_codes.md index cae66b8bab..28f8f64198 100644 --- a/docs/exit_codes.md +++ b/docs/exit_codes.md @@ -10,7 +10,7 @@ These exit codes can be found in `commitizen/exceptions.py::ExitCode`. | DryRunExit | 0 | Exit due to passing `--dry-run` option | | NoCommitizenFoundException | 1 | Using a cz (e.g., `cz_jira`) that cannot be found in your system | | NotAGitProjectError | 2 | Not in a git project | -| NoCommitsFoundError | 4 | No commit found | +| NoCommitsFoundError | 3 | No commit found | | NoVersionSpecifiedError | 4 | Version can not be found in configuration file | | NoPatternMapError | 5 | bump / changelog pattern or map can not be found in configuration file | | BumpCommitFailedError | 6 | Commit error when bumping version |