diff --git a/ci/github-script/lint-commits.js b/ci/github-script/lint-commits.js index 4905517a142ef..5237b41845e13 100644 --- a/ci/github-script/lint-commits.js +++ b/ci/github-script/lint-commits.js @@ -55,10 +55,11 @@ async function checkCommitMessages({ github, context, core }) { const logMsgStart = `Commit ${commit.sha}'s message's subject ("${firstLine}")` - if (!firstLine.includes(':')) { + if (!firstLine.includes(': ')) { core.error( `${logMsgStart} was detected as not meeting our guidelines because ` + - 'it does not contain a colon. There are likely other issues as well.', + 'it does not contain a colon followed by a whitespace.' + + 'There are likely other issues as well.', ) failures.add(commit.sha) }