Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
8bb1b3946d
commit
90fa047c0d
|
@ -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
|
|
@ -220,7 +220,7 @@ RSpec.describe Tooling::Danger::ProjectHelper do
|
||||||
|
|
||||||
describe '.local_warning_message' do
|
describe '.local_warning_message' do
|
||||||
it 'returns an informational message with rules that can run' 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ module Tooling
|
||||||
changes_size
|
changes_size
|
||||||
commit_messages
|
commit_messages
|
||||||
database
|
database
|
||||||
|
datateam
|
||||||
documentation
|
documentation
|
||||||
duplicate_yarn_dependencies
|
duplicate_yarn_dependencies
|
||||||
eslint
|
eslint
|
||||||
|
|
Loading…
Reference in New Issue