Skip to content

Commit a5aad0d

Browse files
authoredJan 24, 2025
[ci] Update discord notification bot to use remote workflow (#7455)
1 parent 2f24839 commit a5aad0d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed
 

‎.github/workflows/discord_notify.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ name: Discord Notify
22

33
on:
44
pull_request_target:
5-
types: [ labeled ]
5+
types: [labeled]
66

77
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+
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
@@ -18,4 +25,4 @@ jobs:
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 }}

0 commit comments

Comments
 (0)
Please sign in to comment.