summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-07-06 13:32:50 +0000
committerNick Thomas <nick@gitlab.com>2019-07-06 13:32:50 +0000
commitbd69c9197cefcb31ebabe466df005f1451ac1c46 (patch)
treeadae5057511fde5c475a4d55551d2cdf342cb966
parent162ef51fdb49bc49d194d7f62549e6203ebb6d51 (diff)
parent5bea7d102b22347188f4ba9d44f0151436b87c74 (diff)
downloadgitlab-ce-bd69c9197cefcb31ebabe466df005f1451ac1c46.tar.gz
Merge branch 'exclude-documentation-from-danger' into 'master'
Update dangerfile to exclude docs ci yaml See merge request gitlab-org/gitlab-ce!30335
-rw-r--r--danger/only_documentation/Dangerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/danger/only_documentation/Dangerfile b/danger/only_documentation/Dangerfile
index 8e4564f22b6..0e5f841c891 100644
--- a/danger/only_documentation/Dangerfile
+++ b/danger/only_documentation/Dangerfile
@@ -1,7 +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_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