@samitouri / QOS-React / commits / 0a82580bfc

[ci] Only notify discord on core team label (#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.

lauren committed Feb 3, 2025 at 12:57 UTC 0a82580bfc80538c5ce914514dc86b17c8889954
2 files changed +2 -2
.github/workflows/compiler_discord_notify.yml
+1 -1
@@ -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' }}
17 + if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
18 needs: check_maintainer
19 runs-on: ubuntu-latest
20 steps:
.github/workflows/runtime_discord_notify.yml
+1 -1
@@ -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' }}
17 + if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
18 needs: check_maintainer
19 runs-on: ubuntu-latest
20 steps: