ci-slack-reporter 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -31,7 +31,7 @@ class MyReporter {
31
31
  runner
32
32
  .once(EVENT_RUN_BEGIN, () => {
33
33
  out = {
34
- icon_emoji: ":robot_face:",
34
+ // icon_emoji: ":robot_face:",
35
35
  attachments: [
36
36
  {
37
37
  "color": "#ff0000",
@@ -83,7 +83,7 @@ class MyReporter {
83
83
  })
84
84
  .once(EVENT_RUN_END, () => {
85
85
  if (process.env.CI_SLACK_REPORTER_VIDEO_URL && stats.failures) {
86
- out.attachments[0].blocks[0].accessory = {
86
+ out.attachments[0].blocks[2].accessory = {
87
87
  "type": "button",
88
88
  "text": {
89
89
  "type": "plain_text",
@@ -97,7 +97,7 @@ class MyReporter {
97
97
  }
98
98
 
99
99
  out.attachments[0].blocks[0].text.text = `Tests finished ${stats.passes}/${stats.passes + stats.failures}`;
100
- out.attachments[0].color = stats.failures ? "#FF0000" : "#00FF00";
100
+ out.attachments[0].color = stats.failures ? "#a30200" : "#2eb886";
101
101
  webhook.send(out)
102
102
  });
103
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ci-slack-reporter",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {