You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/programs/pagerduty-integration.md
+5-47Lines changed: 5 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -15,57 +15,15 @@ The PagerDuty integration enables incidents to be created each time a new (high
15
15
To set up the integration between PagerDuty and each time a high or critical report is created on HackerOne:
16
16
17
17
1. Navigate to **Configuration > Services** on PagerDuty.
18
-
2.[Create a new service](https://support.pagerduty.com/docs/services-and-integrations#section-events-api-v2) or add an integration to an existing service on PagerDuty by clicking **+Add New Services** on your services page.
19
-
3. Select **Custom Event Transformer** for the *Integration Type*.
18
+
2.Click on **New Service** or add an integration to an existing service on PagerDuty by clicking **+Add New Services** on your services page.
19
+
3. Select **HackerOne** for the *Integration Type* and click on **Add Service**.
20
20
4. Go to the **Integrations** tab on the **Services** page.
21
-
5. Click the settings gear next to the integration and select **Edit**.
22
-
6. Edit the code that gets executed when the integration gets triggered by pasting the code below
23
-
24
-
```
25
-
var webhook = PD.inputRequest;
26
-
var event_type = PD.Trigger;
27
-
var severity = webhook.body.data.report.relationships.severity;
28
-
var severity_rating = severity ? severity.data.attributes.rating : null;
29
-
30
-
if (severity_rating == "high" || severity_rating == "critical") {
0 commit comments