Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions packages/npm/@amazeelabs/publisher/src/notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ const processMessage = (notificationText: string): string => {
};

const notify = async (notificationText: string): Promise<void> => {
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',
Expand Down