Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tooling/danger/project_helper.rb')
-rw-r--r--tooling/danger/project_helper.rb23
1 files changed, 1 insertions, 22 deletions
diff --git a/tooling/danger/project_helper.rb b/tooling/danger/project_helper.rb
index 422d22f0d99..b49df50c5f0 100644
--- a/tooling/danger/project_helper.rb
+++ b/tooling/danger/project_helper.rb
@@ -176,18 +176,6 @@ module Tooling
%r{\.js\z} => :frontend
}.freeze
- def changes_by_category
- helper.changes_by_category(CATEGORIES)
- end
-
- def changes
- helper.changes(CATEGORIES)
- end
-
- def categories_for_file(file)
- helper.categories_for_file(file, CATEGORIES)
- end
-
def local_warning_message
"#{MESSAGE_PREFIX} Only the following Danger rules can be run locally: #{LOCAL_RULES.join(', ')}"
end
@@ -203,11 +191,7 @@ module Tooling
end
def all_ee_changes
- changes.files.grep(%r{\Aee/})
- end
-
- def project_name
- ee? ? 'gitlab' : 'gitlab-foss'
+ helper.changes.files.grep(%r{\Aee/})
end
def file_lines(filename)
@@ -223,11 +207,6 @@ module Tooling
def read_file(filename)
File.read(filename)
end
-
- def ee?
- # Support former project name for `dev` and support local Danger run
- %w[gitlab gitlab-ee].include?(ENV['CI_PROJECT_NAME']) || Dir.exist?(File.expand_path('../../ee', __dir__))
- end
end
end
end