Commit c246d98c authored by Albert Salim's avatar Albert Salim

Merge branch 'stricter-trailer-checking' into 'master'

Make Danger more strict about Git trailers

See merge request gitlab-org/gitlab!60130
parents 045a85bf 96d61884
......@@ -20,7 +20,7 @@ CATEGORIES = YAML
.freeze
def check_changelog_trailer(commit)
trailer = commit.message.match(/^Changelog:\s*(?<category>\w+)/)
trailer = commit.message.match(/^Changelog:\s*(?<category>.+)$/)
return :missing if trailer.nil? || trailer[:category].nil?
......
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