diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2019-05-29 22:38:26 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-05-30 19:24:28 +0800 |
commit | c90ba127bf8cdd4ccac9692b6c96fa746314cd55 (patch) | |
tree | 480c8fe6e25d71625c3d8c7376851c3a91e572f2 /danger/plugins | |
parent | c8b4edf651009c4603802bf22a66a04d395b4f00 (diff) | |
download | gitlab-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.rb | 3 | ||||
-rw-r--r-- | danger/plugins/roulette.rb | 10 |
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 |