Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ci/github-script/lint-commits.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Loading