From bf799d72dbc75941cdf50b1d736fc5cbf43379c2 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sun, 2 Feb 2025 14:54:44 -0500 Subject: [PATCH] Post PRs to a thread instead --- .github/workflows/discord-pr-notify.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/discord-pr-notify.yml b/.github/workflows/discord-pr-notify.yml index 7c38b43bfd..65e931cf22 100644 --- a/.github/workflows/discord-pr-notify.yml +++ b/.github/workflows/discord-pr-notify.yml @@ -11,11 +11,10 @@ jobs: if: github.head_ref != 'changeset-release/main' steps: - name: Send Discord Notification - uses: Ilshidur/action-discord@master - with: - args: | - šŸš€ **New PR:** ${{ github.event.pull_request.title }} - šŸ”— <${{ github.event.pull_request.html_url }}> - šŸ‘¤ **Author:** ${{ github.event.pull_request.user.login }} - env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + run: | + curl -X POST ${{ secrets.DISCORD_WEBHOOK }} \ + -H "Content-Type: application/json" \ + -d '{ + "content": "šŸš€ **New PR:** ${{ github.event.pull_request.title }}\nšŸ”— <${{ github.event.pull_request.html_url }}>\nšŸ‘¤ **Author:** ${{ github.event.pull_request.user.login }}", + "thread_name": "${{ github.event.pull_request.title }} by ${{ github.event.pull_request.user.login }}" + }'