Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'danger/saas_feature/Dangerfile')
-rw-r--r--danger/saas_feature/Dangerfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/danger/saas_feature/Dangerfile b/danger/saas_feature/Dangerfile
index 38ca87fb5fd..159201f8904 100644
--- a/danger/saas_feature/Dangerfile
+++ b/danger/saas_feature/Dangerfile
@@ -13,7 +13,11 @@ SUGGEST_COMMENT
def check_yaml(saas_feature)
mr_group_label = helper.group_label
- message_for_missing_group!(saas_feature: saas_feature, mr_group_label: mr_group_label) if saas_feature.group.nil?
+ if saas_feature.group.nil?
+ message_for_missing_group!(saas_feature: saas_feature, mr_group_label: mr_group_label)
+ else
+ message_for_group!(saas_feature: saas_feature, mr_group_label: mr_group_label)
+ end
rescue Psych::Exception
# YAML could not be parsed, fail the build.
fail "#{helper.html_link(saas_feature.path)} isn't valid YAML! #{SEE_DOC.capitalize}"