From f0a292e03e1ef90ff9c948e53a5bcde547aff10b Mon Sep 17 00:00:00 2001 From: LijuJacob08 Date: Mon, 19 May 2025 15:46:15 +0530 Subject: [PATCH] discord notification --- .github/workflows/notify-discord.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/notify-discord.yml diff --git a/.github/workflows/notify-discord.yml b/.github/workflows/notify-discord.yml new file mode 100644 index 0000000..2e10c92 --- /dev/null +++ b/.github/workflows/notify-discord.yml @@ -0,0 +1,19 @@ +name: Notify Discord on PR + +on: + pull_request: + types: [opened] + +jobs: + discordNotification: + runs-on: ubuntu-latest + steps: + - name: Send message to Discord + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "username": "GitHub Bot", + "content": "šŸ“£ A new Pull Request was opened: **${{ github.event.pull_request.title }}**\nšŸ‘‰ URL: ${{ github.event.pull_request.html_url }}" + }' \ + ${{ secrets.DISCORD_WEBHOOK_URL }}