diff options
Diffstat (limited to 'danger/datateam/Dangerfile')
-rw-r--r-- | danger/datateam/Dangerfile | 15 |
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 |