Skip to content

feat(rocketchat): support plain text attribute - #4393

Closed
Patrick-Remy wants to merge 1 commit into
prometheus:mainfrom
Patrick-Remy:feat/rocketchat-support-plaintext
Closed

Patrick-Remy wants to merge 1 commit into
prometheus:mainfrom
Patrick-Remy:feat/rocketchat-support-plaintext

Conversation

@Patrick-Remy

Copy link
Copy Markdown

RocketChat doesn't set the attachment title as notification title. Instead with the current implementation of this notifier, you receive notifications like "bot: ". This is really unuseful.

The PostMessage.Text attribute was already typed and can be additionally set to set a "plain text".
I also fixed the previously 404 rocketchat developer documentation which has moved in the meantime and removed the unused (and undocumented) propertyParseUrls.

Add plainText attribute to set plain text message additionally to attachment.

Signed-off-by: Patrick Remy <[email protected]>
@Patrick-Remy
Patrick-Remy force-pushed the feat/rocketchat-support-plaintext branch from 845c44c to a31aeb5 Compare May 6, 2025 16:17
@Patrick-Remy

Copy link
Copy Markdown
Author

Maybe @TheMeier as the original contributor for the rocketchat integration can review my contribution.
Unfortunately I have no idea why tests are failing, but as disclaimer I am not a Go developer ;)

@TheMeier

TheMeier commented May 12, 2025 •

Copy link
Copy Markdown
Contributor

I just tested it and then remembered, if you send a Text field (even if empty) The attachments will be collapsed and truncated. I cant even un-collaps them:

image

on-top Text from the API call is not even displayed anywhere for me

@TheMeier

Copy link
Copy Markdown
Contributor

@Patrick-Remy are you still interested in working on this?

@TheMeier

Copy link
Copy Markdown
Contributor

So I did test that with a local rocket-chat contaner setup. And actually it looks fine:
7.4:
image
8.8:
image

So I guess, the initial request was fine

@github-actions github-actions Bot removed the stale label Sep 28, 2026
@TheMeier

Copy link
Copy Markdown
Contributor

@Patrick-Remy I took the liberty of re-creating your PR in #5595

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants