diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2019-07-06 00:01:35 +0000 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2019-07-06 00:01:35 +0000 |
commit | b4a7cb6986e35cc75a78b8aa832bb04de3564bb6 (patch) | |
tree | 4d3c47cfa4ce85198266223ffad327233482f5ed | |
parent | eea93fe1692fcc602245cbe2f4be9d35cc9f99a4 (diff) | |
download | gitlab-ce-exclude-documentation-from-danger.tar.gz |
Apply suggestion to danger/only_documentation/Dangerfileexclude-documentation-from-danger
-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 fbfa1a1d08a..0e5f841c891 100644 --- a/danger/only_documentation/Dangerfile +++ b/danger/only_documentation/Dangerfile @@ -4,7 +4,7 @@ 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 +if is_docs_only_branch && !has_only_docs_changes fail "It seems like your branch name has a `docs` prefix or suffix. "\ "The CI won't run the full pipeline, but you also have changed non-docs files. "\ "Please recreate this MR with a new branch name." |