From 5bea7d102b22347188f4ba9d44f0151436b87c74 Mon Sep 17 00:00:00 2001 From: Marcel Amirault Date: Sat, 6 Jul 2019 13:32:50 +0000 Subject: Update dangerfile to exclude docs ci yaml --- danger/only_documentation/Dangerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1