[ci] Use 'opened' event for discord notifications (#32332)

We don't need to wait for it to be labeled now that we have the shared
maintainer check workflow.
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32332).
* #32333
* __->__ #32332
This commit is contained in:
lauren authored and GitHub committed 2025-02-07 16:34:26 -05:00
1 parent 989b0cccc2
commit bc78de3a52
2 files changed
+4 -4

No files matched your search

@@ -2,7 +2,7 @@ name: (Compiler) Discord Notify
on:
pull_request_target:
types: [labeled]
types: [opened]
paths:
- compiler/**
- .github/workflows/compiler_**.yml
@@ -14,7 +14,7 @@ jobs:
actor: ${{ github.event.pull_request.user.login }}
notify:
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
needs: check_maintainer
runs-on: ubuntu-latest
steps:
+2 -2
View File
@@ -2,7 +2,7 @@ name: (Runtime) Discord Notify
on:
pull_request_target:
types: [labeled]
types: [opened]
paths-ignore:
- compiler/**
- .github/workflows/compiler_**.yml
@@ -14,7 +14,7 @@ jobs:
actor: ${{ github.event.pull_request.user.login }}
notify:
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
needs: check_maintainer
runs-on: ubuntu-latest
steps: