Skip to content

Conversation

@zimeg
Copy link
Member

@zimeg zimeg commented Oct 22, 2025

This PR adds the markdown block.

Reviewers

The following code snippets can post markdown messages:

import com.slack.api.model.block.Blocks.*;
import static com.slack.api.model.block.Blocks.*;

var markdownBlock = MarkdownBlock.builder()
    .text("**this is bold**")
    .build();
var response = slack.methods().chatPostMessage(r -> r.token(token).blocks(asBlocks(markdownBlock)).channel("C0123456789"));

var response2 = slack.methods().chatPostMessage(r -> r.token(token).blocks(asBlocks(markdown(m -> m.text("**epic**")))).channel("C0123456789"));

Category

  • slack-api-model (Slack API Data Models)

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.

@zimeg zimeg added this to the 1.45.5 milestone Oct 22, 2025
@zimeg zimeg self-assigned this Oct 22, 2025
@zimeg zimeg added enhancement M-T: A feature request for new functionality project:slack-api-model project:slack-api-model labels Oct 22, 2025
@zimeg zimeg linked an issue Oct 22, 2025 that may be closed by this pull request
6 tasks
@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.07%. Comparing base (9504d94) to head (b4c9d4c).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1521      +/-   ##
============================================
+ Coverage     73.02%   73.07%   +0.04%     
- Complexity     4399     4403       +4     
============================================
  Files           475      475              
  Lines         14266    14268       +2     
  Branches       1452     1452              
============================================
+ Hits          10418    10426       +8     
+ Misses         2987     2981       -6     
  Partials        861      861              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@WilliamBergamin WilliamBergamin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

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

@zimeg is becoming a Java guru! Thanks for remembering Java and adding the Markdown block!

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

Labels

enhancement M-T: A feature request for new functionality project:slack-api-model project:slack-api-model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown Block Support

3 participants