slackapi / slack-github-action

Send data into Slack using this GitHub Action!
MIT License
938 stars 148 forks source link

Add support for sending thread_broadcast #216

Open dstrates opened 1 year ago

dstrates commented 1 year ago

Description

Would like the ability to send a threaded reply notification to a channel with thread_broadcast.

This could be surfaced as an optional flag to broadcast the threaded message to the channel, as mentioned in #119

What type of issue is this? (place an x in one of the [ ])

Requirements (place an x in each of the [ ])


Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

package version:

node version:

OS version(s):

Steps to reproduce:

1. 2. 3.

Expected result:

What you expected to happen

Actual result:

What actually happened

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc.

zimeg commented 4 months ago

Hey @dstrates and those following along đź‘‹ We don't support a specific input parameter for the reply_broadcast parameter but this can be included in the payload with a message to decide if the threaded message should be broadcast:

- uses: slackapi/slack-github-action@v1
  with:
    channel-id: "C0123456789"
    payload: |
      {
        "reply_broadcast": true,
        "thread_ts": "${{ steps.example.outputs.ts }}",
        "text": "Status update: LGTM!"
      }
  env:
    SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}