summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2019-07-09 13:31:26 +0900
committerMarcel Amirault <mamirault@gitlab.com>2019-07-09 13:31:26 +0900
commitf1a7ecfd9637b444ff20a474f668da4fed93e05a (patch)
tree9545d3e21b94edab2f179fbf9da84b9c4d9f2a08
parent735f360cb4d11c9640d66fd8f76dbaf41dd340b7 (diff)
downloadgitlab-ce-docs-dangerfile-lint.tar.gz
Update danger to accept doc lint changesdocs-dangerfile-lint
-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 0e5f841c891..ff65f8713d2 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/', '.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', '.mdlrc') }
is_docs_only_branch = gitlab.branch_for_head =~ /(^docs[\/-].*|.*-docs$)/
if is_docs_only_branch && !has_only_docs_changes