summaryrefslogtreecommitdiff
path: root/danger/plugins
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-05-29 22:38:26 +0800
committerLin Jen-Shin <godfat@godfat.org>2019-05-30 19:24:28 +0800
commitc90ba127bf8cdd4ccac9692b6c96fa746314cd55 (patch)
tree480c8fe6e25d71625c3d8c7376851c3a91e572f2 /danger/plugins
parentc8b4edf651009c4603802bf22a66a04d395b4f00 (diff)
downloadgitlab-ce-c90ba127bf8cdd4ccac9692b6c96fa746314cd55.tar.gz
Extract roulette to its own module
So it's more modular and extensible
Diffstat (limited to 'danger/plugins')
-rw-r--r--danger/plugins/helper.rb3
-rw-r--r--danger/plugins/roulette.rb10
2 files changed, 10 insertions, 3 deletions
diff --git a/danger/plugins/helper.rb b/danger/plugins/helper.rb
index 581c0720083..2d7a933e801 100644
--- a/danger/plugins/helper.rb
+++ b/danger/plugins/helper.rb
@@ -1,8 +1,5 @@
# frozen_string_literal: true
-require 'net/http'
-require 'yaml'
-
require_relative '../../lib/gitlab/danger/helper'
module Danger
diff --git a/danger/plugins/roulette.rb b/danger/plugins/roulette.rb
new file mode 100644
index 00000000000..7c62cff0c92
--- /dev/null
+++ b/danger/plugins/roulette.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+require_relative '../../lib/gitlab/danger/roulette'
+
+module Danger
+ class Roulette < Plugin
+ # Put the helper code somewhere it can be tested
+ include Gitlab::Danger::Roulette
+ end
+end