-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix SLACK_THREAD_TS not working and improve documentation #212
Conversation
Fixes rtCamp#210 Add support for `SLACK_THREAD_TS` variable and improve documentation. * Add `outputs` section in `action.yml` to include `ts` output. * Set `ts` output after sending the Slack message in `main.go`. * Add a function to extract the `ts` value from the Slack response in `main.go`. * Handle the `SLACK_THREAD_TS` variable in `entrypoint.sh` and `main.sh`. * Improve documentation in `README.md` on how to obtain the timestamp of the parent message. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/rtCamp/action-slack-notify/issues/210?shareId=XXXX-XXXX-XXXX-XXXX).
looks great, waiting for this change. |
| | | 2. Click on the "More actions" button (three vertical dots) on the message. | | ||
| | | 3. Select "Copy link" from the dropdown menu. | | ||
| | | 4. Paste the copied link in a text editor or any other place where you can see the full URL. | | ||
| | | 5. The timestamp of the parent message is the last part of the URL, which looks like `1586130833.000100`. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a mention here that it's now possible to get a reference to a previously posted message via the ts
output?
any updates on this? |
This is needed please - Currently Thread TS not working as an output |
Actually this wouldn't work see the api. https://api.slack.com/messaging/webhooks#threads You have to obtain it with conversation history or search messages |
Fixes #210
Add support for
SLACK_THREAD_TS
variable and improve documentation.outputs
section inaction.yml
to includets
output.ts
output after sending the Slack message inmain.go
.ts
value from the Slack response inmain.go
.SLACK_THREAD_TS
variable inentrypoint.sh
andmain.sh
.README.md
on how to obtain the timestamp of the parent message.For more details, open the Copilot Workspace session.