Skip previews in slack messages (#404)

This commit is contained in:
Kamil Kisiela 2022-09-24 11:20:03 +02:00 committed by GitHub
parent d73de654eb
commit 88bc274b48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,8 @@ export class SlackCommunicationAdapter implements CommunicationAdapter {
channel: input.channel.slackChannel!,
text: `:bee: Hi, I received your *first* schema in project ${projectLink}, target ${targetLink} (${viewLink}):`,
mrkdwn: true,
unfurl_links: false,
unfurl_media: false,
});
} else {
await client.chat.postMessage({
@ -67,6 +69,8 @@ export class SlackCommunicationAdapter implements CommunicationAdapter {
)}* in project ${projectLink}, target ${targetLink} (${viewLink}):`,
mrkdwn: true,
attachments: createAttachments(input.event.changes),
unfurl_links: false,
unfurl_media: false,
});
}
} catch (error) {