Skip to content

feat(integration/slack): Implemented markdown to slack markdown transformer#14822

Merged
Horisofine merged 10 commits intomasterfrom
hr/feat/slack-markdown-transformer
Jan 20, 2026
Merged

feat(integration/slack): Implemented markdown to slack markdown transformer#14822
Horisofine merged 10 commits intomasterfrom
hr/feat/slack-markdown-transformer

Conversation

@Horisofine
Copy link
Contributor

Resolves SH-242.

This PR contains the implementation of the slack markdown transformer. This allows bot developers to input markdown within the text and get rich text.

Contains:

  • Removal of test for undefined text
  • Transformer for Slack Markdown

@Horisofine Horisofine requested review from a team as code owners January 19, 2026 21:19
@linear
Copy link

linear bot commented Jan 19, 2026

.describe(
'Field text must be defined but it is ignored if blocks are provided. In this situation, the text must be provided in the blocks array'
)
.optional(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: I think this is what's preventing you from releasing a patch or a minor rather than a major. If this is not critical, maybe we can put optional back so we can avoid having to bump a major.

Copy link
Contributor

@JustinBordage JustinBordage Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, Mikee is correct here.

Copy link
Contributor Author

@Horisofine Horisofine Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was getting an issue deploying due to optional. That's why I removed it but I put it back since the issue is no longer occuring.

Copy link
Contributor

@JustinBordage JustinBordage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor nitpick & an issue, other than that it's a pretty solid PR.

Copy link
Contributor

@JustinBordage JustinBordage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump a major, or revert the optional removal from the schema, before a merge is allowed.

Edit: In fact, I think we should revert removing the optional based on the description of the field written by Yann.

@JustinBordage JustinBordage changed the title feat(integration/slack): Implemented markdown to slack markdown transformer feat(integration/slack)!: Implemented markdown to slack markdown transformer Jan 19, 2026
import { test, expect, vi } from 'vitest'
import { replaceMentions, Mention } from './replace-mentions'

test('returns undefined if text is undefined', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: The unit test should be re-implemented seeing that we are reverting the "optional"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

mikee-b
mikee-b previously approved these changes Jan 20, 2026
@Horisofine Horisofine merged commit 194f2ed into master Jan 20, 2026
9 checks passed
@Horisofine Horisofine deleted the hr/feat/slack-markdown-transformer branch January 20, 2026 16:32
@Horisofine Horisofine changed the title feat(integration/slack)!: Implemented markdown to slack markdown transformer feat(integration/slack): Implemented markdown to slack markdown transformer Jan 20, 2026
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.

3 participants