summaryrefslogtreecommitdiff
path: root/danger
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-14 15:09:57 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-14 15:09:57 +0000
commitb689f371350fbf1b71f266764ee018befc9b91f7 (patch)
tree7de1d3ab26d3cae0ac2a7a8ccd8302fcdaac5534 /danger
parent0b194c4854f312e36616fccf7c610cb2b0ec6957 (diff)
downloadgitlab-ce-b689f371350fbf1b71f266764ee018befc9b91f7.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'danger')
-rw-r--r--danger/datateam/Dangerfile8
1 files changed, 1 insertions, 7 deletions
diff --git a/danger/datateam/Dangerfile b/danger/datateam/Dangerfile
index e054cddce06..263fd4aa8e3 100644
--- a/danger/datateam/Dangerfile
+++ b/danger/datateam/Dangerfile
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-# rubocop:disable Style/SignalException
DATA_WAREHOUSE_LABELS = [
"Data Warehouse::Impact Check",
@@ -15,11 +14,6 @@ Notification to the Data Team about changes to the db/structure.sql file, add la
MSG
db_schema_updated = !git.modified_files.grep(%r{\Adb/structure\.sql}).empty?
-
no_data_warehouse_labels = (gitlab.mr_labels & DATA_WAREHOUSE_LABELS).empty?
-if db_schema_updated && no_data_warehouse_labels
-
- markdown(CHANGED_SCHEMA_MESSAGE)
-
-end
+markdown(CHANGED_SCHEMA_MESSAGE) if db_schema_updated && no_data_warehouse_labels