summaryrefslogtreecommitdiff
path: root/Dangerfile
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-09-05 14:27:01 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2018-09-10 14:12:58 +0200
commit28b56b7172ff367cef2d47d5835ff657830d16a9 (patch)
tree6349770561c70984a316911544de957196fd3bce /Dangerfile
parenta5517ada119a0e73e0a70fd18e11fda3932138e8 (diff)
downloadgitlab-ce-28b56b7172ff367cef2d47d5835ff657830d16a9.tar.gz
Added Danger file to lint commit messages
This Dangerfile ensures that commit authors write good commit messages. We also prevent the use of Emoji, since these add no value and may not always be displayed properly. Merge commits are currently ignored. In the future we most likely want to stop using these, but this is a separate discussion, hence we ignore them for the time being. The rules enforced by this Dangerfile are based on the article found at https://chris.beams.io/posts/git-commit/. For more information, refer to https://gitlab.com/gitlab-org/gitlab-ce/issues/50003. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/50003
Diffstat (limited to 'Dangerfile')
-rw-r--r--Dangerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Dangerfile b/Dangerfile
index f57fcd16496..46e53edcac4 100644
--- a/Dangerfile
+++ b/Dangerfile
@@ -6,3 +6,4 @@ danger.import_dangerfile(path: 'danger/gemfile')
danger.import_dangerfile(path: 'danger/database')
danger.import_dangerfile(path: 'danger/documentation')
danger.import_dangerfile(path: 'danger/frozen_string')
+danger.import_dangerfile(path: 'danger/commit_messages')