@samitouri / QOS-React / commits / bc78de3a52

[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

lauren committed Feb 7, 2025 at 16:34 UTC bc78de3a521f65f756579fee0996ec5c81f3af73
2 files changed +4 -4
.github/workflows/compiler_discord_notify.yml
+2 -2
@@ -2,7 +2,7 @@ name: (Compiler) Discord Notify
2
3 on:
4 pull_request_target:
5 - types: [labeled]
5 + types: [opened]
6 paths:
7 - compiler/**
8 - .github/workflows/compiler_**.yml
@@ -14,7 +14,7 @@ jobs:
14 actor: ${{ github.event.pull_request.user.login }}
15
16 notify:
17 - if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
17 + if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
18 needs: check_maintainer
19 runs-on: ubuntu-latest
20 steps:
.github/workflows/runtime_discord_notify.yml
+2 -2
@@ -2,7 +2,7 @@ name: (Runtime) Discord Notify
2
3 on:
4 pull_request_target:
5 - types: [labeled]
5 + types: [opened]
6 paths-ignore:
7 - compiler/**
8 - .github/workflows/compiler_**.yml
@@ -14,7 +14,7 @@ jobs:
14 actor: ${{ github.event.pull_request.user.login }}
15
16 notify:
17 - if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
17 + if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
18 needs: check_maintainer
19 runs-on: ubuntu-latest
20 steps: