Skip to content

Commit

Permalink
refactor: card schema
Browse files Browse the repository at this point in the history
  • Loading branch information
gor918 committed Feb 9, 2024
1 parent dddb27b commit 595e65c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 38 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

38 changes: 2 additions & 36 deletions src/message-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export function createMessageCard(
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
type: 'AdaptiveCard',
version: '1.5',
padding: 'Medium',
body: [
{
type: 'Container',
Expand Down Expand Up @@ -72,7 +73,7 @@ export function createMessageCard(
items: [
{
type: 'TextBlock',
text: `**CI #${runNum} (commit ${sha.substring(0, 7)})** on [${repoName}](${repoUrl})`,
text: `**CI #${runNum} (commit ${sha.substring(0, 7)})** on [${repoName}](${repoUrl})`,
wrap: true,
size: 'Medium',
weight: 'Bolder',
Expand All @@ -95,41 +96,6 @@ export function createMessageCard(
spacing: 'None',
separator: true,
},
{
type: 'Container',
id: '353b659f-b668-fac0-5b7f-5d2f1bdb46ac',
padding: 'Default',
items: [
{
type: 'ActionSet',
actions: [
{
type: 'Action.Http',
id: 'accept',
title: 'Accept',
method: 'POST',
url: 'https://www.microsoft.com',
body: '{}',
isPrimary: true,
style: 'positive',
},
{
type: 'Action.Http',
id: 'ff3fb921-86b9-4dd6-ea53-616a9b369c64',
title: 'Accept',
method: 'POST',
url: 'https://www.microsoft.com',
body: '{}',
isPrimary: true,
style: 'positive',
},
],
spacing: 'None',
},
],
spacing: 'None',
separator: true,
},
],
actions: [
{
Expand Down

0 comments on commit 595e65c

Please sign in to comment.