diff --git a/.github/workflows/npm-update.yml b/.github/workflows/npm-update.yml index 8d5853a90..1c79b44b1 100644 --- a/.github/workflows/npm-update.yml +++ b/.github/workflows/npm-update.yml @@ -3,7 +3,7 @@ name: NPM Update on: workflow_dispatch: schedule: - - cron: "0 0 * * *" # Run daily at midnight UTC + - cron: "0 0 * * *" # Run daily at midnight UTC permissions: contents: write diff --git a/server/notification-providers/pagerduty.js b/server/notification-providers/pagerduty.js index f816e42c2..c6f60b624 100644 --- a/server/notification-providers/pagerduty.js +++ b/server/notification-providers/pagerduty.js @@ -85,13 +85,13 @@ class PagerDuty extends NotificationProvider { headers: { "Content-Type": "application/json" }, data: { payload: { - summary: `[${title}] [${monitorInfo.name}] ${body}`, + summary: monitorInfo.name ? `[${title}] [${monitorInfo.name}] ${body}` : `[${title}] ${body}`, severity: notification.pagerdutyPriority || "warning", source: monitorUrl, }, routing_key: notification.pagerdutyIntegrationKey, event_action: eventAction, - dedup_key: "Uptime Kuma/" + monitorInfo.id, + dedup_key: monitorInfo.id ? "Uptime Kuma/" + monitorInfo.id : "Uptime Kuma/test", }, };