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 8, 2024
1 parent 284a064 commit 94adf15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

19 changes: 1 addition & 18 deletions src/message-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,26 +142,9 @@ export function createMessageCard(
type: 'AdaptiveCard',
version: '1.2',
body: [
{
type: 'Column',
items: [
{
url: avatar_url,
altText: `${commit.data.commit.author.name}`,
},
],
},
{
type: 'TextBlock',
text: `**CI #${runNum} (commit ${sha.substring(0, 7)})** on [${repoName}](${repoUrl})`,
},
{
type: 'TextBlock',
text: `by ${commit.data.commit.author.name} ${author_url}on ${timestamp}`,
},
{
type: 'Image',
url: 'https://adaptivecards.io/content/cats/1.png',
text: 'For Samples and Templates, see [https://adaptivecards.io/samples](https://adaptivecards.io/samples)',
},
],
},
Expand Down

0 comments on commit 94adf15

Please sign in to comment.