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:
Joey Perrott 2020-05-14 09:34:30 -07:00 committed by Kara Erickson
parent 8a56c99f87
commit 7acd33007d
1 changed files with 5 additions and 0 deletions

View File

@ -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 //
//////////////////////////