Skip to content

Commit 7085ce3

Browse files
Add Discord notification workflow for new PRs
1 parent a3e8c2e commit 7085ce3

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/discord.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Discord PR Notification
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Send message to Discord
13+
run: |
14+
curl -H "Content-Type: application/json" \
15+
-d '{
16+
"content": "🚀 New PR created: '${{ github.event.pull_request.title }}'\n🔗 '${{ github.event.pull_request.html_url }}'"
17+
}' \
18+
${{ secrets.DISCORD_WEBHOOK }}

0 commit comments

Comments
 (0)