summaryrefslogtreecommitdiff
path: root/danger
diff options
context:
space:
mode:
Diffstat (limited to 'danger')
-rw-r--r--danger/database/Dangerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/danger/database/Dangerfile b/danger/database/Dangerfile
index 16740cb867d..a0a2959bab5 100644
--- a/danger/database/Dangerfile
+++ b/danger/database/Dangerfile
@@ -29,6 +29,8 @@ DB_FILES_MESSAGE = <<~MSG
The following files require a review from the Database team:
MSG
+DATABASE_APPROVED_LABEL = 'database::approved'
+
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?
@@ -46,6 +48,7 @@ if geo_migration_created && !geo_db_schema_updated
end
return unless gitlab_danger.ci?
+return if gitlab.mr_labels.include?(DATABASE_APPROVED_LABEL)
db_paths_to_review = helper.changes_by_category[:database]