Commit 17ab0881 authored by Albert Salim's avatar Albert Salim

Merge branch '263481-notify-data-team-engineers-when-changes-to-structure-sql-occur' into 'master'

Resolve "Notify Data Team Engineers when changes to structure.sql occur"

See merge request gitlab-org/gitlab!58952
parents 9c35c043 6c8e73a7
# 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
......@@ -220,7 +220,7 @@ RSpec.describe Tooling::Danger::ProjectHelper do
describe '.local_warning_message' do
it 'returns an informational message with rules that can run' do
expect(described_class.local_warning_message).to eq('==> Only the following Danger rules can be run locally: changelog, changes_size, commit_messages, database, documentation, duplicate_yarn_dependencies, eslint, karma, pajamas, pipeline, prettier, product_intelligence, utility_css')
expect(described_class.local_warning_message).to eq('==> Only the following Danger rules can be run locally: changelog, changes_size, commit_messages, database, datateam, documentation, duplicate_yarn_dependencies, eslint, karma, pajamas, pipeline, prettier, product_intelligence, utility_css')
end
end
......
......@@ -8,6 +8,7 @@ module Tooling
changes_size
commit_messages
database
datateam
documentation
duplicate_yarn_dependencies
eslint
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment