From a1ea926342e13c8f9bc6a30263048f8f0a26bcd6 Mon Sep 17 00:00:00 2001 From: sldless Date: Wed, 1 Jan 2025 11:28:36 -0500 Subject: [PATCH] feat: add Discord notification workflow for new pull requests --- .github/workflows/notification.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/notification.yaml diff --git a/.github/workflows/notification.yaml b/.github/workflows/notification.yaml new file mode 100644 index 00000000..ffb1240d --- /dev/null +++ b/.github/workflows/notification.yaml @@ -0,0 +1,18 @@ +name: Discord Pull Request Notification + +on: + pull_request: + types: [opened, reopened] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + uses: joelwmale/webhook-action@master + with: + webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }} + body: > + { + "content": "New Pull Request: ${{ github.event.pull_request.title }}\nBy: ${{ github.event.pull_request.login}}\n\n${{ github.event.pull_request.html_url}}", + "avatar_url": "https://avatars.githubusercontent.com/u/193271640" + } \ No newline at end of file