Disable danger in preparation branches

Most of these validations don't apply to preparation branches and they
cause a lot of noise in the merge request. Therefore disabling danger
when the branches look like branches that could be for a preparation MR.
This commit is contained in:
Bob Van Landuyt 2018-08-09 14:50:01 +02:00
parent d867a58c2b
commit 1ea6d58552

View file

@ -453,6 +453,7 @@ danger-review:
- master - master
variables: variables:
- $CI_COMMIT_REF_NAME =~ /^ce-to-ee-.*/ - $CI_COMMIT_REF_NAME =~ /^ce-to-ee-.*/
- $CI_COMMIT_REF_NAME =~ /.*-stable(-ee)?-prepare-.*/
script: script:
- git version - git version
- danger --fail-on-errors=true - danger --fail-on-errors=true