summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/vue_shared/components/file_row.vue1
-rw-r--r--app/models/ci/pipeline.rb1
-rw-r--r--app/models/project_services/prometheus_service.rb2
3 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/components/file_row.vue b/app/assets/javascripts/vue_shared/components/file_row.vue
index e3a606571c0..0a5cc7b693c 100644
--- a/app/assets/javascripts/vue_shared/components/file_row.vue
+++ b/app/assets/javascripts/vue_shared/components/file_row.vue
@@ -111,6 +111,7 @@ export default {
v-else
:class="fileClass"
:title="textForTitle"
+ :data-level="level"
class="file-row"
role="button"
@click="clickFile"
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 3ce44a066ae..8a3ca2e758c 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -736,6 +736,7 @@ module Ci
MergeRequest.where(id: merge_request_id)
else
MergeRequest.where(source_project_id: project_id, source_branch: ref)
+ .by_commit_sha(sha)
end
end
diff --git a/app/models/project_services/prometheus_service.rb b/app/models/project_services/prometheus_service.rb
index 30dfcc11417..1a85289a04f 100644
--- a/app/models/project_services/prometheus_service.rb
+++ b/app/models/project_services/prometheus_service.rb
@@ -153,6 +153,6 @@ class PrometheusService < MonitoringService
def create_default_alerts
return unless project_id
- Prometheus::CreateDefaultAlertsWorker.perform_async(project_id: project_id)
+ Prometheus::CreateDefaultAlertsWorker.perform_async(project_id)
end
end