There was an error while loading. Please reload this page.
1 parent 695a70b commit 75a2d95Copy full SHA for 75a2d95
1 file changed
.github/workflows/discord.yml
@@ -0,0 +1,25 @@
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 PR notification to Discord
13
+ run: |
14
+ curl -H "Content-Type: application/json" \
15
+ -d '{
16
+ "content": "🚀 New Pull Request created!",
17
+ "embeds": [
18
+ {
19
+ "title": "${{ github.event.pull_request.title }}",
20
+ "url": "${{ github.event.pull_request.html_url }}",
21
+ "description": "Author: ${{ github.event.pull_request.user.login }}"
22
+ }
23
+ ]
24
+ }' \
25
+ "${{ secrets.DISCORD_WEBHOOK }}"
0 commit comments