2019-04-24 08:08:33 -04:00
|
|
|
# frozen_string_literal: true
|
2019-09-06 07:21:53 -04:00
|
|
|
|
|
|
|
require_relative 'lib/gitlab_danger'
|
2019-10-16 05:07:51 -04:00
|
|
|
require_relative 'lib/gitlab/danger/request_helper'
|
2019-09-06 07:21:53 -04:00
|
|
|
|
2018-10-16 09:56:03 -04:00
|
|
|
danger.import_plugin('danger/plugins/helper.rb')
|
2019-05-29 10:38:26 -04:00
|
|
|
danger.import_plugin('danger/plugins/roulette.rb')
|
2019-04-04 07:26:01 -04:00
|
|
|
|
|
|
|
unless helper.release_automation?
|
2019-09-06 07:21:53 -04:00
|
|
|
GitlabDanger.new(helper.gitlab_helper).rule_names.each do |file|
|
|
|
|
danger.import_dangerfile(path: File.join('danger', file))
|
|
|
|
end
|
2019-04-04 07:26:01 -04:00
|
|
|
end
|