summaryrefslogtreecommitdiff
path: root/danger/changes_size
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-05-21 18:41:21 +0200
committerRémy Coutable <remy@rymai.me>2018-07-11 11:52:01 +0200
commit5679837cd412c2fb7911dcb33c19e89d8a787db0 (patch)
treefe9984ff05042df9ec0fc6de59e85171e337866d /danger/changes_size
parentd2ea56a87026de92f31bbcfb360748fcf766b835 (diff)
downloadgitlab-ce-5679837cd412c2fb7911dcb33c19e89d8a787db0.tar.gz
Start to use Danger for automating MR reviews
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'danger/changes_size')
-rw-r--r--danger/changes_size/Dangerfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/danger/changes_size/Dangerfile b/danger/changes_size/Dangerfile
new file mode 100644
index 00000000000..4471e1926c9
--- /dev/null
+++ b/danger/changes_size/Dangerfile
@@ -0,0 +1,9 @@
+# rubocop:disable Style/SignalException
+
+if git.lines_of_code > 500
+ warn "This merge request is quite big, please consider splitting it into multiple merge requests."
+end
+
+if git.lines_of_code > 5_000
+ fail "This merge request is definitely too big, please split it into multiple merge requests."
+end