Skip to content

Conversation

migmartri
Copy link
Member

@migmartri migmartri commented Aug 1, 2023

Add render option to truncate the output table to a number of runes. A 4000 chars limit is then set to the Slack message to prevent #272

The truncate is slightly smart since it leaves the footer where the command to get the attestation info stays intact.

image

Note: ideally, eventually, we should do custom markup for Slack using Slack blocks, but this feature at least prevents broken rendering in the case of overflow.

Closes #272

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri requested a review from danlishka August 1, 2023 15:50
Copy link
Member

@danlishka danlishka left a comment

Choose a reason for hiding this comment

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

check the format, apart from that LGTM

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri merged commit 6118412 into chainloop-dev:main Aug 15, 2023
@migmartri migmartri deleted the fix-slack-22 branch August 15, 2023 10:07
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.

Slack plugin gets truncated at 4000 chars
2 participants