Skip to content

Commit 5f72802

Browse files
authored
Create pr-notify.yml
Discord chanel
1 parent d0553b3 commit 5f72802

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/pr-notify.yml

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

0 commit comments

Comments
 (0)