You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To help illustrate how this would be useful, my specific use case is as follows:
A deployment is started in GitHub Actions, either manually or via a CD pipeline. An environment and branch are selected as part of the job.
This GitHub Actions job posts a new Slack message indicating that the deployment process has started.
The job builds the image from the specified branch if it doesn't exist, updates the k8s manifest to use the new image, and replies to the thread it started notifying that the image build is complete. Also included in the k8s manifest are the Slack channel ID and thread ID for the thread is started.
If at any point there was a failure during the GHA job, it will
Update the top-level thread indicating failure
Respond to the thread with details
ArgoCD picks up the change to the manifest, and notifies the channel ID left in step 3 that the deployment is starting. If this feature were implemented, it could reply to the original thread from the GHA job instead, keeping all deployment lifecycle updates contained to one thread. It could also update the top-level message, indicating successful deployment.
It would be useful for the Slack integration to directly support
thread_ts
option when posting a message, andts
argument for updating a message.This would allow notifications to reply to specific threads and update specific messages.
For example, supplying
slack.thread_ts
would respond to the Slack message by including it in the payload of chat.postMessage:And supplying
slack.update_ts
would update a Slack message by instigating a chat.update request and including its value in thets
option:threadTs
andupdateTs
would both be optional, and mutually exclusive.threadTs
and the existinggroupingKey
would be mutually exclusive.Non-BC-breaking.
I am not familiar with Go so I probably won't be able to implement this myself, but I'm hoping this enhancement gets support from contributors.
The text was updated successfully, but these errors were encountered: