summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2019-07-05 00:32:55 +0000
committerMarcel Amirault <mamirault@gitlab.com>2019-07-05 00:32:55 +0000
commiteea93fe1692fcc602245cbe2f4be9d35cc9f99a4 (patch)
treee8b6b34c489c33ffee5cc991369494f23c1131d5
parentca97019cb4e019c53dea748ece3804d710e961e7 (diff)
downloadgitlab-ce-eea93fe1692fcc602245cbe2f4be9d35cc9f99a4.tar.gz
Apply suggestion to danger/only_documentation/Dangerfile
-rw-r--r--danger/only_documentation/Dangerfile3
1 files changed, 1 insertions, 2 deletions
diff --git a/danger/only_documentation/Dangerfile b/danger/only_documentation/Dangerfile
index 5126cd36596..fbfa1a1d08a 100644
--- a/danger/only_documentation/Dangerfile
+++ b/danger/only_documentation/Dangerfile
@@ -1,8 +1,7 @@
# rubocop:disable Style/SignalException
# frozen_string_literal: true
-has_only_docs_changes = helper.all_changed_files.all? { |file| file.start_with?('doc/') }
-has_only_docs_ci_yaml = helper.all_changed_files.all? { |file| file.start_with?('.gitlab/ci/docs.gitlab-ci.yml') }
+has_only_docs_changes = helper.all_changed_files.all? { |file| file.start_with?('doc/', '.gitlab/ci/docs.gitlab-ci.yml') }
is_docs_only_branch = gitlab.branch_for_head =~ /(^docs[\/-].*|.*-docs$)/
if is_docs_only_branch && !has_only_docs_changes && !has_only_docs_ci_yaml