Merge branch 'docs-dangerfile-lint' into 'master'

Docs: Update danger to accept docs linting changes

See merge request gitlab-org/gitlab-ce!30497
This commit is contained in:
Achilleas Pipinellis 2019-07-09 06:27:44 +00:00
commit 84b49ef3a3

View file

@ -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') }
has_only_docs_changes = helper.all_changed_files.all? { |file| file.start_with?('doc/', '.gitlab/ci/docs.gitlab-ci.yml', '.mdlrc') }
is_docs_only_branch = gitlab.branch_for_head =~ /(^docs[\/-].*|.*-docs$)/
if is_docs_only_branch && !has_only_docs_changes