From 7acd33007d9bd30288a76fa2a3b6fe5948143d9f Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Thu, 14 May 2020 09:34:30 -0700 Subject: [PATCH] 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 --- dev-infra/commit-message/validate.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-infra/commit-message/validate.ts b/dev-infra/commit-message/validate.ts index fb9a5be664..c30570e467 100644 --- a/dev-infra/commit-message/validate.ts +++ b/dev-infra/commit-message/validate.ts @@ -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 // //////////////////////////