diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2019-07-05 00:32:55 +0000 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2019-07-05 00:32:55 +0000 |
commit | eea93fe1692fcc602245cbe2f4be9d35cc9f99a4 (patch) | |
tree | e8b6b34c489c33ffee5cc991369494f23c1131d5 | |
parent | ca97019cb4e019c53dea748ece3804d710e961e7 (diff) | |
download | gitlab-ce-eea93fe1692fcc602245cbe2f4be9d35cc9f99a4.tar.gz |
Apply suggestion to danger/only_documentation/Dangerfile
-rw-r--r-- | danger/only_documentation/Dangerfile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/danger/only_documentation/Dangerfile b/danger/only_documentation/Dangerfile index 5126cd36596..fbfa1a1d08a 100644 --- a/danger/only_documentation/Dangerfile +++ b/danger/only_documentation/Dangerfile @@ -1,8 +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_ci_yaml = helper.all_changed_files.all? { |file| file.start_with?('.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') } is_docs_only_branch = gitlab.branch_for_head =~ /(^docs[\/-].*|.*-docs$)/ if is_docs_only_branch && !has_only_docs_changes && !has_only_docs_ci_yaml |