Commit fc085d9f authored by Thong Kuah's avatar Thong Kuah

Merge branch '348958-sy-pagerduty-service' into 'master'

PagerDuty::ProcessWebhookService should inherit from BaseProjectService

See merge request gitlab-org/gitlab!82357
parents 2ead953b 66e9577e
......@@ -2,7 +2,7 @@
module IncidentManagement
module PagerDuty
class ProcessWebhookService
class ProcessWebhookService < ::BaseProjectService
include Gitlab::Utils::StrongMemoize
include IncidentManagement::Settings
......@@ -13,7 +13,8 @@ module IncidentManagement
PAGER_DUTY_PROCESSABLE_EVENT_TYPES = %w(incident.trigger).freeze
def initialize(project, payload)
@project = project
super(project: project)
@payload = payload
end
......@@ -29,7 +30,7 @@ module IncidentManagement
private
attr_reader :project, :payload
attr_reader :payload
def process_incidents
pager_duty_processable_events.each do |event|
......
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