Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot 2021-04-14 06:09:06 +00:00
parent 8bb1b3946d
commit 90fa047c0d
3 changed files with 17 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -8,6 +8,7 @@ module Tooling
changes_size
commit_messages
database
datateam
documentation
duplicate_yarn_dependencies
eslint