summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-08-21 18:31:39 +0000
committerAchilleas Pipinellis <axil@gitlab.com>2019-08-21 18:31:39 +0000
commit5fb18d5766a198882e35dbbb332c8eee85320a61 (patch)
treebd57f924b51238dfad104c276efa4c0aacce7f9e
parent4cdd18e84ade89d7c8846e4b75a730140e286e8b (diff)
parent90f2adcb0808c7e310f0302c0b593cb26f1272aa (diff)
downloadgitlab-ce-5fb18d5766a198882e35dbbb332c8eee85320a61.tar.gz
Merge branch 'consider-md-files-as-doc-in-danger-check' into 'master'
Make Danger consider .md files as documentation files See merge request gitlab-org/gitlab-ce!32056
-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 ff65f8713d2..dad12c0d29c 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', '.mdlrc') }
+has_only_docs_changes = helper.all_changed_files.all? { |file| file.start_with?('doc/', '.gitlab/ci/docs.gitlab-ci.yml', '.mdlrc') || file.end_with?('.md') }
is_docs_only_branch = gitlab.branch_for_head =~ /(^docs[\/-].*|.*-docs$)/
if is_docs_only_branch && !has_only_docs_changes