Skip to content

Commit

Permalink
fix: missing color
Browse files Browse the repository at this point in the history
  • Loading branch information
Skitionek committed Apr 24, 2020
1 parent c0d4a55 commit fb1129d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,8 @@ class MSTeams {
const {
activityTitle,
activitySubtitle,
activityImage
activityImage,
color
} = Status(job.status);
const status_summary = {
activityTitle,
Expand All @@ -1202,7 +1203,7 @@ class MSTeams {
const payload = {
...this.header,
correlationId: sha,
themeColor: status_summary.color,
themeColor: color,
title: `${sender.login} ${eventName} initialised workflow "${workflow}"`,
summary: repository_link,
sections,
Expand Down
5 changes: 3 additions & 2 deletions src/MSTeams.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ class MSTeams {
const {
activityTitle,
activitySubtitle,
activityImage
activityImage,
color
} = Status(job.status);
const status_summary = {
activityTitle,
Expand All @@ -154,7 +155,7 @@ class MSTeams {
const payload = {
...this.header,
correlationId: sha,
themeColor: status_summary.color,
themeColor: color,
title: `${sender.login} ${eventName} initialised workflow "${workflow}"`,
summary: repository_link,
sections,
Expand Down

0 comments on commit fb1129d

Please sign in to comment.