Commit ef824674 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch '55709-danger-gitlab-reference-check-should-be-more-precise' into 'master'

Resolve "Danger GitLab reference check should be more precise"

Closes #55709

See merge request gitlab-org/gitlab-ce!24234
parents 49f538c7 8f9d9112
......@@ -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 ' \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment