summaryrefslogtreecommitdiff
path: root/danger/datateam/Dangerfile
blob: 0a33cb6777bf3126508ec3eaf510c7d0b662e1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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