Skip to content

Commit

Permalink
test 12
Browse files Browse the repository at this point in the history
  • Loading branch information
apathania22 committed Jun 17, 2024
1 parent fa0b7a6 commit 4ef34fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/teams-notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ function transformPayload(payload) {
const title = `JSS Release ${payload.tag_name}`;
const releaseUrl = payload.html_url;
const publishedBy = payload.author.login;
const body = payload.body;

const teamsPayload = {
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
themeColor: "0076D7",
title: title,
text: `**Release:** ${releaseUrl}\n\n**Published by:** ${publishedBy}`,
text: `**Release:** ${releaseUrl}\n\n**Published by:** ${publishedBy}\n\n**Changelog:**\n\n${body}`,
};
return teamsPayload;
}
Expand Down

0 comments on commit 4ef34fc

Please sign in to comment.