feat(slack-notify): add bot-token path with thread + update support#6
Merged
Conversation
Adds chat.postMessage / chat.update support via bot_token + channel inputs. Returns the message ts as an output so callers can thread later messages or edit the parent. Webhook path remains as backward-compatible fallback. Reusable workflow surfaces the new inputs/outputs and now pulls the DEPLOY_BOT_SLACK_TOKEN org secret directly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bot_token+channelare set, the action posts viachat.postMessage(orchat.updatewhenupdate_tsis set) and outputsts.thread_tsinput for posting threaded replies.tsandchanneloutputs so callers can thread or edit later.thread_ts/update_tsare passed — webhooks can't thread)..github/workflows/slack-notify.yml) surfaces the same new inputs/outputs and pulls the newDEPLOY_BOT_SLACK_TOKENorg secret directly (withCI_SLACK_WEBHOOKretained as fallback).Required secrets
DEPLOY_BOT_SLACK_TOKEN— already created at org level (xoxb-...from thedeploy_botSlack app, scope:chat:write).Merge order
This PR is the first of three coordinated changes; the downstream PRs depend on it. After merging:
@main).jitsucom/jitsu#<PR>— services.yaml uses the reusable workflow + acceptsslack_thread_ts.jitsucom/jitsu-cloud-infra#<PR>— deploy.yaml threads notifications and propagatesthread_tsinto the services.yaml dispatch.Test plan
Slack notify (reusable)via the Actions UI, verify it posts to#devand outputs ats.thread_tsset to thatts, verify the reply lands in the thread.update_tsset, verify the original message updates in place.slack_webhook_urlset.