File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,18 @@ name: Discord Notify
22
33on :
44 pull_request_target :
5- types : [ labeled ]
5+ types : [labeled]
66
77jobs :
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+
814 notify :
9- if : ${{ github.event.label.name == 'React Core Team' }}
15+ if : ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
16+ needs : check_maintainer
1017 runs-on : ubuntu-latest
1118 steps :
1219 - name : Discord Webhook Action
1825 embed-author-icon-url : ${{ github.event.pull_request.user.avatar_url }}
1926 embed-title : ' #${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
2027 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