summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-07-26 10:26:22 +1200
committerThong Kuah <tkuah@gitlab.com>2018-07-26 10:31:45 +1200
commit8f4745deb49c239aaf800da745dc203a929e3964 (patch)
treee7bf24ece91cd54c84e7f909e423128af3d9936d
parent5035250337427baa1f6462ee4b1c004f529d765c (diff)
downloadgitlab-ce-8f4745deb49c239aaf800da745dc203a929e3964.tar.gz
Fix regexp for detected `db/schema.rb` and `ee/db/geo/schema.rb`
-rw-r--r--danger/database/Dangerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/danger/database/Dangerfile b/danger/database/Dangerfile
index 6f48994945a..ad5f1c1e0f3 100644
--- a/danger/database/Dangerfile
+++ b/danger/database/Dangerfile
@@ -41,8 +41,8 @@ end
all_files = git.added_files + git.modified_files
-non_geo_db_schema_updated = !git.modified_files.grep(%r{\Adb/schema\.rb/}).empty?
-geo_db_schema_updated = !git.modified_files.grep(%r{\Aee/db/geo/schema\.rb/}).empty?
+non_geo_db_schema_updated = !git.modified_files.grep(%r{\Adb/schema\.rb}).empty?
+geo_db_schema_updated = !git.modified_files.grep(%r{\Aee/db/geo/schema\.rb}).empty?
non_geo_migration_created = !git.added_files.grep(%r{\A(db/(post_)?migrate)/}).empty?
geo_migration_created = !git.added_files.grep(%r{\Aee/db/geo/(post_)?migrate/}).empty?