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,