We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4b130a commit 7ab4babCopy full SHA for 7ab4bab
@commitlint/rules/src/signed-off-by.ts
@@ -18,7 +18,9 @@ export const signedOffBy: SyncRule<string> = (
18
const last = lines[lines.length - 1];
19
20
const negated = when === 'never';
21
- const hasSignedOffBy = last.startsWith(value);
+ const hasSignedOffBy =
22
+ // empty commit message
23
+ last ? last.startsWith(value) : false;
24
25
return [
26
negated ? !hasSignedOffBy : hasSignedOffBy,
0 commit comments