File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 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" ) ;
54
65dotenv . config ( ) ;
76
@@ -56,7 +55,7 @@ const sendSlackMessage = async (message) => {
5655 } ) ;
5756
5857 if ( failedTests > 0 ) {
59- await sendFailureDetails ( result . ts ) ;
58+ await sendFailureDetails ( result . ts ) ;
6059 }
6160 } catch ( error ) {
6261 console . error ( "Error sending Slack message:" , error ) ;
@@ -76,7 +75,7 @@ const sendFailureDetails = async (threadTs) => {
7675 try {
7776 await app . client . chat . postMessage ( {
7877 token : process . env . SLACK_BOT_TOKEN ,
79- channel : process . env . SLACK_CHANNEL ,
78+ channel : process . env . SLACK_CHANNEL2 ,
8079 text : failureDetails ,
8180 thread_ts : threadTs ,
8281 } ) ;
You can’t perform that action at this time.
0 commit comments