File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,18 @@ name: Discord Notify
2
2
3
3
on :
4
4
pull_request_target :
5
- types : [ labeled ]
5
+ types : [labeled]
6
6
7
7
jobs :
8
+ check_maintainer :
9
+ uses : facebook/react/.github/workflows/shared_check_maintainer.yml@main
10
+ with :
11
+ actor : ${{ github.event.pull_request.user.login }}
12
+ is_remote : true
13
+
8
14
notify :
9
- if : ${{ github.event.label.name == 'React Core Team' }}
15
+ if : ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
16
+ needs : check_maintainer
10
17
runs-on : ubuntu-latest
11
18
steps :
12
19
- name : Discord Webhook Action
18
25
embed-author-icon-url : ${{ github.event.pull_request.user.avatar_url }}
19
26
embed-title : ' #${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
20
27
embed-description : ${{ github.event.pull_request.body }}
21
- embed-url : ${{ github.event.pull_request.html_url }}
28
+ embed-url : ${{ github.event.pull_request.html_url }}
You can’t perform that action at this time.
0 commit comments