fix(dev-infra): do not require a commit body for release commits (#37110)
Release commits do not require a commit body as the context, usually provided in commit body, is already available in the process of releasing. No additional value is gained from adding a body message on these commits. PR Close #37110
This commit is contained in:
parent
8a56c99f87
commit
7acd33007d
|
@ -136,6 +136,11 @@ export function validateCommitMessage(
|
|||
return false;
|
||||
}
|
||||
|
||||
// Commits with the type of `release` do not require a commit body.
|
||||
if (commit.type === 'release') {
|
||||
return true;
|
||||
}
|
||||
|
||||
//////////////////////////
|
||||
// Checking commit body //
|
||||
//////////////////////////
|
||||
|
|
Loading…
Reference in New Issue