Skip to content

Commit 7b40208

Browse files
authored
Fix notify target, add lines (facebook#32006)
1 parent 3314162 commit 7b40208

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
name: Discord Notify
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [ labeled ]
6-
6+
77
jobs:
88
notify:
9-
if: ${{ github.event.label.name == 'React Core Team' }}
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Discord Webhook Action
13-
uses: tsickert/[email protected]
14-
with:
15-
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
16-
embed-author-name: ${{ github.event.pull_request.user.login }}
17-
embed-author-url: ${{ github.event.pull_request.user.html_url }}
18-
embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
19-
embed-title: '#${{ github.event.number }}: ${{ github.event.pull_request.title }}'
20-
embed-description: ${{ github.event.pull_request.body }}
21-
embed-url: ${{ github.event.pull_request.html_url }}
22-
9+
if: ${{ github.event.label.name == 'React Core Team' }}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Discord Webhook Action
13+
uses: tsickert/[email protected]
14+
with:
15+
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
16+
embed-author-name: ${{ github.event.pull_request.user.login }}
17+
embed-author-url: ${{ github.event.pull_request.user.html_url }}
18+
embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
19+
embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
20+
embed-description: ${{ github.event.pull_request.body }}
21+
embed-url: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)