summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-08-21 15:30:24 +0200
committerRémy Coutable <remy@rymai.me>2019-08-21 15:38:15 +0200
commit90f2adcb0808c7e310f0302c0b593cb26f1272aa (patch)
tree7e65df45cd794308b93113f40ba59ac078442563
parent0a4d4c0a58162e695c3202c323d8febe833ef162 (diff)
downloadgitlab-ce-consider-md-files-as-doc-in-danger-check.tar.gz
Make Danger consider .md files as documentation filesconsider-md-files-as-doc-in-danger-check
Signed-off-by: Rémy Coutable <remy@rymai.me>
-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