diff options
author | Rémy Coutable <remy@rymai.me> | 2019-08-21 15:30:24 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-08-21 15:38:15 +0200 |
commit | 90f2adcb0808c7e310f0302c0b593cb26f1272aa (patch) | |
tree | 7e65df45cd794308b93113f40ba59ac078442563 | |
parent | 0a4d4c0a58162e695c3202c323d8febe833ef162 (diff) | |
download | gitlab-ce-90f2adcb0808c7e310f0302c0b593cb26f1272aa.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/Dangerfile | 2 |
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 |