Skip to content

Commit 4bca3ff

Browse files
change
1 parent 598ed1a commit 4bca3ff

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/discord.yml

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

0 commit comments

Comments
 (0)