Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ostwalprasad committed Feb 3, 2025
1 parent ef8134a commit 1b463a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,15 @@ async function run(): Promise<void> {
}
]
})

console.log('Response:', response)
if (threaded_message && response.ts) {
await client.chat.postMessage({
console.log('Sending threaded message')
const resp = await client.chat.postMessage({
channel: core.getInput('channel'),
text: threaded_message,
thread_ts: response.ts
})
console.log('Threaded message response:', resp)
}
}

Expand Down

0 comments on commit 1b463a9

Please sign in to comment.