Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
66e9577e
Commit
66e9577e
authored
Mar 09, 2022
by
Sarah Yasonik
Committed by
Thong Kuah
Mar 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PagerDuty::ProcessWebhookService should inherit from BaseProjectService
parent
597ff662
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app/services/incident_management/pager_duty/process_webhook_service.rb
...incident_management/pager_duty/process_webhook_service.rb
+4
-3
No files found.
app/services/incident_management/pager_duty/process_webhook_service.rb
View file @
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
:p
roject
,
:p
ayload
attr_reader
:payload
def
process_incidents
pager_duty_processable_events
.
each
do
|
event
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment