From 5f38ef671958a2fb054cb999d68faa8ffdc79e54 Mon Sep 17 00:00:00 2001 From: Damian Stasik <920747+damianstasik@users.noreply.github.com> Date: Fri, 17 Jan 2025 16:22:34 +0100 Subject: [PATCH] Fix maintainer check condition (#32110) ## Summary I've noticed that the value stored under `is_core_team` gets stringified, so some PRs may be mislabelled as coming from the core team. I've checked this on my fork and saw stringified `null` returned by the `is_core_team`, and this PR explicitly checks for the correct value. Feel free to close this PR if you want to go with another approach. ## How did you test this change? Checked this change on my fork with and without listing myself in the maintainers file. --- .github/workflows/shared_label_core_team_prs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/shared_label_core_team_prs.yml b/.github/workflows/shared_label_core_team_prs.yml index b96aea8805..227dcee4c2 100644 --- a/.github/workflows/shared_label_core_team_prs.yml +++ b/.github/workflows/shared_label_core_team_prs.yml @@ -13,7 +13,7 @@ jobs: uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main label: - if: ${{ needs.check_maintainer.outputs.is_core_team }} + if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }} runs-on: ubuntu-latest needs: check_maintainer steps: