Skip to content

Commit 0a82580

Browse files
authored
[ci] Only notify discord on core team label (facebook#32303)
Rather than notify on every label event on a PR by a core team member, only do so for the specific core team label event.
1 parent 442150e commit 0a82580

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/compiler_discord_notify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
actor: ${{ github.event.pull_request.user.login }}
1515

1616
notify:
17-
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
17+
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
1818
needs: check_maintainer
1919
runs-on: ubuntu-latest
2020
steps:

.github/workflows/runtime_discord_notify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
actor: ${{ github.event.pull_request.user.login }}
1515

1616
notify:
17-
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
17+
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
1818
needs: check_maintainer
1919
runs-on: ubuntu-latest
2020
steps:

0 commit comments

Comments
 (0)