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/datateam/Dangerfile')
-rw-r--r--danger/datateam/Dangerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/danger/datateam/Dangerfile b/danger/datateam/Dangerfile
new file mode 100644
index 00000000000..0a33cb6777b
--- /dev/null
+++ b/danger/datateam/Dangerfile
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+# rubocop:disable Style/SignalException
+
+CHANGED_SCHEMA_MESSAGE = <<~MSG
+Mentioning @gitlab-data/engineers to notify the team about changes to the db/structure.sql file.
+
+MSG
+
+db_schema_updated = !git.modified_files.grep(%r{\Adb/structure\.sql}).empty?
+
+if db_schema_updated
+
+ markdown(CHANGED_SCHEMA_MESSAGE)
+
+end