From fa7986b565873750ec7d0d799fc6ee27f91db924 Mon Sep 17 00:00:00 2001 From: centdix <40307056+centdix@users.noreply.github.com> Date: Mon, 9 Jun 2025 17:45:53 +0200 Subject: [PATCH] avoid discord length limit (#5903) --- .github/workflows/shareable-discord-notification.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/shareable-discord-notification.yml b/.github/workflows/shareable-discord-notification.yml index d59b99070c..1b7936330f 100644 --- a/.github/workflows/shareable-discord-notification.yml +++ b/.github/workflows/shareable-discord-notification.yml @@ -62,9 +62,10 @@ jobs: # Create thread if it doesn't exist or if check failed if [ "$thread_exists" = false ]; then echo "Creating new thread" + THREAD_TITLE="#${PR_NUMBER}: ${PR_TITLE} by \`${PR_AUTHOR}\`" payload=$(jq -n \ --arg content "${PR_URL}" \ - --arg thread "#${PR_NUMBER}: $PR_TITLE by \`${PR_AUTHOR}\`" \ + --arg thread "${THREAD_TITLE:0:99}" \ '{ content: $content, thread_name: $thread,