From e344283f00cd329effd45aa4eb6b004e78664de9 Mon Sep 17 00:00:00 2001 From: Tom Wayson Date: Mon, 13 Sep 2021 10:22:41 -0700 Subject: [PATCH] chore(hub-common): allow commits that start w/ 'pr:' to address PR review --- commitlint.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commitlint.config.js b/commitlint.config.js index 61e773aa9de..5f921068009 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -25,7 +25,12 @@ const Configuration = { /* * Functions that return true if commitlint should ignore the given message. */ - ignores: [(commit) => commit === ''], + ignores: [ + // empty commit messages + (commit) => commit === '', + // pr feedback + (commit) => /^PR:/i.test(commit) + ], /* * Whether commitlint uses the default ignore rules. */