We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09cf7b3 commit 94f8ae0Copy full SHA for 94f8ae0
commitizen/commands/check.py
@@ -50,14 +50,17 @@ def __call__(self):
50
raise NoCommitsFoundError(f"No commit found with range: '{self.rev_range}'")
51
52
pattern = self.cz.schema_pattern()
53
+ ill_formated_commits = []
54
for commit_msg in commit_msgs:
55
if not Check.validate_commit_message(commit_msg, pattern):
- raise InvalidCommitMessageError(
56
- "commit validation: failed!\n"
57
- "please enter a commit message in the commitizen format.\n"
58
- f"commit: {commit_msg}\n"
59
- f"pattern: {pattern}"
60
- )
+ ill_formated_commits.append(f"commit: {commit_msg}\n")
+ if ill_formated_commits != []:
+ raise InvalidCommitMessageError(
+ "commit validation: failed!\n"
+ "please enter a commit message in the commitizen format.\n"
61
+ f"{''.join(ill_formated_commits)}\n"
62
+ f"pattern: {pattern}"
63
+ )
64
out.success("Commit validation: successful!")
65
66
def _get_commit_messages(self):
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments