Skip to content
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

esendSlackMessage: preserve last md slack section #717

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

thypon
Copy link
Member

@thypon thypon commented Dec 2, 2024

No description provided.

@@ -93,14 +93,17 @@ export default async function sendSlackMessage ({
let mdBlocks = await markdownToBlocks(message)
// slack blocks have a limit of 50 blocks, remove the last blocks if there are more
if (mdBlocks.length > 50) {
mdBlocks = mdBlocks.slice(0, 49)
// last block should contain the Cc, so we don't want to remove it
const lastBlock = mdBlocks[mdBlocks.length - 1]
Copy link
Member

Choose a reason for hiding this comment

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

@thypon thypon merged commit 7696aa2 into main Dec 2, 2024
7 checks passed
@thypon thypon deleted the fix/preserve-last-section branch December 2, 2024 21:47
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