Don't fail the pipeline when a colon-emoji is used
A colon-emoji like 💯 can be valid in the case where we're talking
about the GitLab feature that processes these into emojis. It's fine to
warn about those, but failing the pipeline is too restrictive.
This commit is contained in:
parent
70a717daf9
commit
1b2de25dee
1 changed files with 2 additions and 2 deletions
|
@ -163,10 +163,10 @@ def lint_commit(commit)
|
|||
end
|
||||
|
||||
if emoji_checker.includes_emoji?(commit.message)
|
||||
fail_commit(
|
||||
warn_commit(
|
||||
commit,
|
||||
'Avoid the use of Markdown Emoji such as `:+1:`. ' \
|
||||
'These add no value to the commit message, ' \
|
||||
'These add limited value to the commit message, ' \
|
||||
'and are displayed as plain text outside of GitLab'
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue