Skip to content

Conversation

@christophe-SA
Copy link
Contributor

@christophe-SA christophe-SA commented Mar 30, 2025

SEMVER Update Type:

  • Major
  • Minor
  • Patch

Description:

add update_notification flag to notify job, which will update the top level message in the thread instead of appending a new message to the bottom of the thread. If no thread is found or no thread is specified, defaults to a regular notification posting.

also added a charset to the slack api curl statement to address the missing charset warning from the slack api

Motivation:

By updating the top level message instead of posting threaded replied, it is easy to update the progress of a job without sending new notifications for each update. This also allows for links or actions to be "enabled" after the job completes, such as when a deploy is successful, providing next steps and additional info in the top level message.

not dissimilar to https://github.com/CircleCI-Public/slack-orb/pull/466/files
Closes Issues:

  • ISSUE URL

Checklist:

  • All new jobs, commands, executors, parameters have descriptions.
  • Usage Example version numbers have been updated.
  • Changelog has been updated.

…hat.postMessage. instead of providing ts_thread to refer to a thread in the body, ts is used to reference the specific top level message in the thread that will be updated.
@marboledacci marboledacci self-assigned this Apr 9, 2025
@marboledacci
Copy link
Contributor

I have run the tests for this, and they are passing, but I don't think it is working as expected. @christophe-SA is the test I added a good example of what this PR supports? How should the result of it be, because I'm getting a normal slack message from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants