File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
server/notification-providers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: NPM Update
33on :
44 workflow_dispatch :
55 schedule :
6- - cron : " 0 0 * * *" # Run daily at midnight UTC
6+ - cron : " 0 0 * * *" # Run daily at midnight UTC
77
88permissions :
99 contents : write
Original file line number Diff line number Diff line change @@ -85,13 +85,13 @@ class PagerDuty extends NotificationProvider {
8585 headers : { "Content-Type" : "application/json" } ,
8686 data : {
8787 payload : {
88- summary : `[${ title } ] [${ monitorInfo . name } ] ${ body } ` ,
88+ summary : monitorInfo . name ? `[${ title } ] [${ monitorInfo . name } ] ${ body } ` : `[ ${ title } ] ${ body } `,
8989 severity : notification . pagerdutyPriority || "warning" ,
9090 source : monitorUrl ,
9191 } ,
9292 routing_key : notification . pagerdutyIntegrationKey ,
9393 event_action : eventAction ,
94- dedup_key : "Uptime Kuma/" + monitorInfo . id ,
94+ dedup_key : monitorInfo . id ? "Uptime Kuma/" + monitorInfo . id : "Uptime Kuma/test" ,
9595 } ,
9696 } ;
9797
You can’t perform that action at this time.
0 commit comments