[ci] Use 'opened' event for discord notifications

We don't need to wait for it to be labeled now that we have the shared maintainer check workflow.
This commit is contained in:
Lauren Tan
2025-02-07 16:06:58 -05:00
parent 989b0cccc2
commit cd3032c304
2 changed files with 4 additions and 4 deletions
@@ -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: