summaryrefslogtreecommitdiff
path: root/danger
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2019-07-06 13:32:50 +0000
committerNick Thomas <nick@gitlab.com>2019-07-06 13:32:50 +0000
commit5bea7d102b22347188f4ba9d44f0151436b87c74 (patch)
treeadae5057511fde5c475a4d55551d2cdf342cb966 /danger
parent162ef51fdb49bc49d194d7f62549e6203ebb6d51 (diff)
downloadgitlab-ce-5bea7d102b22347188f4ba9d44f0151436b87c74.tar.gz
Update dangerfile to exclude docs ci yaml
Diffstat (limited to 'danger')
-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