-
-
Notifications
You must be signed in to change notification settings - Fork 287
feat: add --no-raise to avoid raising error codes #489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f429a68
feat: add --no-raise to avoid raising error codes
woile 5521331
fix: change error code for NoneIncrementExit
woile 912dbdd
docs: add exit code for NoneIncrementExit
woile 5028bb6
docs: add information about no-raise
woile 8c2a6f4
test: correct error code for NO_INCREMENT and docstring
woile File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,26 +4,28 @@ Commitizen handles expected exceptions through `CommitizenException` and returns | |
|
||
These exit codes can be found in `commitizen/exceptions.py::ExitCode`. | ||
|
||
| Exception | Exit Code | Description | | ||
| --------- | --------- | ----------- | | ||
| ExpectedExit | 0 | Expected exit | | ||
| 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 | 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 | | ||
| BumpTagFailedError | 7 | Tag error when bumping version | | ||
| NoAnswersError | 8 | No user response given | | ||
| CommitError | 9 | git commit error | | ||
| NoCommitBackupError | 10 | Commit back up file cannot be found | | ||
| NothingToCommitError | 11 | Nothing in staging to be committed | | ||
| CustomError | 12 | `CzException` raised | | ||
| NoCommandFoundError | 13 | No command found when running commitizen cli (e.g., `cz --debug`) | | ||
| InvalidCommitMessageError | 14 | The commit message does not pass `cz check` | | ||
| MissingConfigError | 15 | Configuration missed for `cz_customize` | | ||
| NoRevisionError | 16 | No revision found | | ||
| CurrentVersionNotFoundError | 17 | current version cannot be found in *version_files* | | ||
| InvalidCommandArgumentError | 18 | The argument provide to command is invalid (e.g. `cz check -commit-msg-file filename --rev-range master..`) | | ||
| InvalidConfigurationError | 19 | An error was found in the Commitizen Configuration, such as duplicates in `change_type_order` | | ||
| Exception | Exit Code | Description | | ||
| --------------------------- | --------- | ----------------------------------------------------------------------------------------------------------- | | ||
| ExpectedExit | 0 | Expected exit | | ||
| 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 | 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 | | ||
| BumpTagFailedError | 7 | Tag error when bumping version | | ||
| NoAnswersError | 8 | No user response given | | ||
| CommitError | 9 | git commit error | | ||
| NoCommitBackupError | 10 | Commit back up file cannot be found | | ||
| NothingToCommitError | 11 | Nothing in staging to be committed | | ||
| CustomError | 12 | `CzException` raised | | ||
| NoCommandFoundError | 13 | No command found when running commitizen cli (e.g., `cz --debug`) | | ||
| InvalidCommitMessageError | 14 | The commit message does not pass `cz check` | | ||
| MissingConfigError | 15 | Configuration missed for `cz_customize` | | ||
| NoRevisionError | 16 | No revision found | | ||
| CurrentVersionNotFoundError | 17 | current version cannot be found in _version_files_ | | ||
| InvalidCommandArgumentError | 18 | The argument provide to command is invalid (e.g. `cz check -commit-msg-file filename --rev-range master..`) | | ||
| InvalidConfigurationError | 19 | An error was found in the Commitizen Configuration, such as duplicates in `change_type_order` | | ||
| NotAllowed | 20 | `--incremental` cannot be combined with a `rev_range` | | ||
| NoneIncrementExit | 21 | The commits found are not elegible to be bumped | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is neat! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.