From dd68bbceee9af3a28a836c03ff7cde02e82e46cf Mon Sep 17 00:00:00 2001 From: Bas van den Berg <74251551+bvdberg01@users.noreply.github.com> Date: Mon, 17 Mar 2025 13:41:37 +0100 Subject: [PATCH] Update and rename archive-discord-thread.yml to delete-discord-thread.yml --- ...e-discord-thread.yml => delete-discord-thread.yml} | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) rename .github/workflows/{archive-discord-thread.yml => delete-discord-thread.yml} (75%) diff --git a/.github/workflows/archive-discord-thread.yml b/.github/workflows/delete-discord-thread.yml similarity index 75% rename from .github/workflows/archive-discord-thread.yml rename to .github/workflows/delete-discord-thread.yml index 9b98b3b..92972e6 100644 --- a/.github/workflows/archive-discord-thread.yml +++ b/.github/workflows/delete-discord-thread.yml @@ -1,4 +1,4 @@ -name: Archive Discord Thread on GitHub Issue Closure +name: Delete Discord Thread on GitHub Issue Closure on: issues: @@ -21,13 +21,8 @@ jobs: if [ -n "$THREAD_ID" ]; then echo "Thread found: $THREAD_ID. Archiving..." - curl -X PATCH "https://discord.com/api/v10/channels/$THREAD_ID" \ - -H "Authorization: Bot ${{ secrets.DISCORD_BOT_TOKEN }}" \ - -H "Content-Type: application/json" \ - -d '{ - "archived": true, - "locked": true - }' + curl -X DELETE "https://discord.com/api/v10/channels/$THREAD_ID" \ + -H "Authorization: Bot ${{ secrets.DISCORD_BOT_TOKEN }}" else echo "No thread found for issue: $ISSUE_TITLE" fi