Docs: Update danger to accept docs linting changes
This commit is contained in:
parent
9cbc5f54e5
commit
81547207ca
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# rubocop:disable Style/SignalException
|
# rubocop:disable Style/SignalException
|
||||||
# frozen_string_literal: true
|
# 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$)/
|
is_docs_only_branch = gitlab.branch_for_head =~ /(^docs[\/-].*|.*-docs$)/
|
||||||
|
|
||||||
if is_docs_only_branch && !has_only_docs_changes
|
if is_docs_only_branch && !has_only_docs_changes
|
||||||
|
|
Loading…
Reference in a new issue