gitlab-org--gitlab-foss/danger
Yorick Peterse 4ef1dd09dd
Improve Emoji detection in commit messages
This changes our Danger integration so that it is smarter about
detecting GitLab emoji in commit messages. This is done using a two step
process:

1. We use the old regular expression to determine if a commit message
   _might_ include an emoji.

2. If this regular expression matches, we then check for all existing
   emoji names in the commit message. This might be a wee bit expensive,
   but because we couple it with the previous step it should be rarely
   executed.

This ensures we don't trigger an error when a commit message includes
text such as `:foo:bar:`, which is not a valid Emoji.

Fixes https://gitlab.com/gitlab-org/release/framework/issues/15
2018-09-18 16:22:29 +02:00
..
changelog
changes_size
commit_messages Improve Emoji detection in commit messages 2018-09-18 16:22:29 +02:00
database
documentation Add Documentation Dangerfile 2018-09-06 10:50:35 +02:00
frozen_string
gemfile
metadata Fix wording in Danger warning about MRs to non-master 2018-09-04 09:57:22 +01:00
specs