Skip to content

Commit ae3867e

Browse files
committed
try to envoke pull request
1 parent b6d9e9f commit ae3867e

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Notify Discord on Pull Request
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 message
12+
run: |
13+
curl -H "Content-Type: application/json" \
14+
-X POST \
15+
-d '{
16+
"content": "🔔 New Pull Request by **${{ github.actor }}**: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})"
17+
}' \
18+
${{ secrets.DISCORD_WEBHOOK_URL }}

test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
'promt for create pull request :)'
1+
'promt for create pull request :)'
2+
'promt for create pull request :) x2'

0 commit comments

Comments
 (0)