From 73ba4b9a4c761a114002ee6200c68f76ab464b0e Mon Sep 17 00:00:00 2001 From: James <119134081+2jammers@users.noreply.github.com> Date: Tue, 9 Jul 2024 17:19:31 -0500 Subject: [PATCH] update --- .github/workflows/discord.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml index f05dca7e..8ecc285a 100644 --- a/.github/workflows/discord.yml +++ b/.github/workflows/discord.yml @@ -19,10 +19,19 @@ jobs: if [ "${{ github.event_name }}" == "issues" ]; then EVENT_URL="${{ github.event.issue.html_url }}" EVENT_TITLE="${{ github.event.issue.title }}" + EVENT_BODY="${{ github.event.issue.body }}" elif [ "${{ github.event_name }}" == "pull_request" ]; then EVENT_URL="${{ github.event.pull_request.html_url }}" EVENT_TITLE="${{ github.event.pull_request.title }}" + EVENT_BODY="${{ github.event.pull_request.body }}" fi curl -X POST -H "Content-Type: application/json" \ - -d "{\"content\": \"[Content](${EVENT_URL})\", \"thread_name\": \"${EVENT_TITLE}\"}" \ + -d '{ + "embeds": [{ + "title": "${EVENT_TITLE}", + "url": "${EVENT_URL}", + "description": "${EVENT_BODY}", + }], + "thread_name": "${EVENT_TITLE}" + '} $WEBHOOK_URL \ No newline at end of file