Commit a244a595 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix-danger-bot' into 'master'

Dangerfile: Fix undefined method

See merge request gitlab-org/gitlab!41571
parents 7b580444 1bf420aa
...@@ -59,7 +59,7 @@ if gitlab.mr_labels.include?('database') || db_paths_to_review.any? ...@@ -59,7 +59,7 @@ if gitlab.mr_labels.include?('database') || db_paths_to_review.any?
markdown(DB_MESSAGE) markdown(DB_MESSAGE)
markdown(DB_FILES_MESSAGE + helper.markdown_list(db_paths_to_review)) if db_paths_to_review.any? markdown(DB_FILES_MESSAGE + helper.markdown_list(db_paths_to_review)) if db_paths_to_review.any?
unless has_database_scoped_labels?(gitlab.mr_labels) unless helper.has_database_scoped_labels?(gitlab.mr_labels)
gitlab.api.update_merge_request(gitlab.mr_json['project_id'], gitlab.api.update_merge_request(gitlab.mr_json['project_id'],
gitlab.mr_json['iid'], gitlab.mr_json['iid'],
add_labels: 'database::review pending') add_labels: 'database::review pending')
......
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