summaryrefslogtreecommitdiff
path: root/danger
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-01-08 16:37:06 +0100
committerRémy Coutable <remy@rymai.me>2019-01-08 16:37:06 +0100
commit8f9d9112e630e72df8ea3b21d538551f91c6703b (patch)
treea6c275024513a4f49df025abb097fa595a0d2663 /danger
parent5106f88a480ab02c3502431cbf636b90348591af (diff)
downloadgitlab-ce-8f9d9112e630e72df8ea3b21d538551f91c6703b.tar.gz
Only detect short refs followed by \b in Danger
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'danger')
-rw-r--r--danger/commit_messages/Dangerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/danger/commit_messages/Dangerfile b/danger/commit_messages/Dangerfile
index abb36098629..6a5a75b6eba 100644
--- a/danger/commit_messages/Dangerfile
+++ b/danger/commit_messages/Dangerfile
@@ -178,7 +178,7 @@ def lint_commits(commits)
failures = true
end
- if commit.message.match?(%r(([\w\-\/]+)?(#|!|&|%)\d+))
+ if commit.message.match?(%r(([\w\-\/]+)?(#|!|&|%)\d+\b))
fail_commit(
commit,
'Use full URLs instead of short references ' \