File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
- import Slack from "@slack/bolt" ;
2
- const { App } = Slack ;
3
- import dotenv from "dotenv" ;
4
- import fs from "fs" ;
1
+ const { App } = require ( "@slack/bolt" ) ;
2
+ const dotenv = require ( "dotenv" ) ;
3
+ const fs = require ( "fs" ) ;
5
4
6
5
dotenv . config ( ) ;
7
6
@@ -56,7 +55,7 @@ const sendSlackMessage = async (message) => {
56
55
} ) ;
57
56
58
57
if ( failedTests > 0 ) {
59
- await sendFailureDetails ( result . ts ) ;
58
+ await sendFailureDetails ( result . ts ) ;
60
59
}
61
60
} catch ( error ) {
62
61
console . error ( "Error sending Slack message:" , error ) ;
@@ -76,7 +75,7 @@ const sendFailureDetails = async (threadTs) => {
76
75
try {
77
76
await app . client . chat . postMessage ( {
78
77
token : process . env . SLACK_BOT_TOKEN ,
79
- channel : process . env . SLACK_CHANNEL ,
78
+ channel : process . env . SLACK_CHANNEL2 ,
80
79
text : failureDetails ,
81
80
thread_ts : threadTs ,
82
81
} ) ;
You can’t perform that action at this time.
0 commit comments