feat: add Discord notification workflow for new pull requests

This commit is contained in:
sldless
2025-01-01 11:28:36 -05:00
parent 347f196a6a
commit a1ea926342

18
.github/workflows/notification.yaml vendored Normal file
View File

@@ -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"
}