diff --git a/packages/npm/@amazeelabs/publisher/src/notify.ts b/packages/npm/@amazeelabs/publisher/src/notify.ts index d700feb64..58a5fb9f0 100644 --- a/packages/npm/@amazeelabs/publisher/src/notify.ts +++ b/packages/npm/@amazeelabs/publisher/src/notify.ts @@ -28,8 +28,14 @@ const processMessage = (notificationText: string): string => { }; const notify = async (notificationText: string): Promise => { - if (slackWebhookUrl === '' || slackChannel === '') { - // Slack webhook and channel are not configured yet. + if ( + slackWebhookUrl === '' || + slackChannel === '' || + publisherUrl === '' || + lagoonEnvironment === '' || + lagoonProject === '' + ) { + // Environment is not configured yet, do not notify. } else { await slackWebhook.send({ username: 'Publisher Bot',