From 861d8e07a027cabddc80580ca4311aab40c4dd26 Mon Sep 17 00:00:00 2001 From: Rob Hogan Date: Thu, 11 Jun 2026 00:25:21 -0700 Subject: [PATCH] Update GH Actions references from facebook/react-native to react/react-native (#57167) Summary: Pull Request resolved: https://github.com/react/react-native/pull/57167 Update GitHub Actions workflow files to reflect React Native's migration from `facebook/react-native` to `react/react-native`. Changes the fork-prevention guards (`github.repository == 'facebook/react-native'`) to use the new org across 17 workflow files (28 occurrences total), plus updates the `repo_owner` parameter in the issue monitoring workflow. Changelog: [Internal] Reviewed By: fabriziocucci Differential Revision: D108246445 fbshipit-source-id: 010631838a05e366da525aa765d3ea4376f9d145 --- .github/workflows/analyze-pr.yml | 2 +- .github/workflows/api-changes.yml | 2 +- .github/workflows/cache-reaper.yml | 2 +- .github/workflows/check-for-reproducer.yml | 2 +- .github/workflows/close-pr.yml | 2 +- .github/workflows/create-release.yml | 2 +- .github/workflows/monitor-new-issues.yml | 4 ++-- .github/workflows/needs-attention.yml | 2 +- .github/workflows/nightly.yml | 6 +++--- .github/workflows/on-issue-labeled.yml | 4 ++-- .github/workflows/publish-bumped-packages.yml | 2 +- .github/workflows/publish-release.yml | 6 +++--- .github/workflows/retry-workflow.yml | 2 +- .github/workflows/stale-bot.yml | 8 ++++---- .github/workflows/test-all.yml | 6 +++--- .github/workflows/validate-cxx-api-snapshots.yml | 2 +- .github/workflows/validate-dotslash-artifacts.yml | 2 +- 17 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/analyze-pr.yml b/.github/workflows/analyze-pr.yml index ed27dc9abad..9d8b6c56b09 100644 --- a/.github/workflows/analyze-pr.yml +++ b/.github/workflows/analyze-pr.yml @@ -11,7 +11,7 @@ permissions: jobs: analyze_pr: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' steps: - name: Check out main branch uses: actions/checkout@v6 diff --git a/.github/workflows/api-changes.yml b/.github/workflows/api-changes.yml index 4899d967d42..e714a29fc6b 100644 --- a/.github/workflows/api-changes.yml +++ b/.github/workflows/api-changes.yml @@ -10,7 +10,7 @@ permissions: jobs: api_changes: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' steps: - name: Check out main branch uses: actions/checkout@v6 diff --git a/.github/workflows/cache-reaper.yml b/.github/workflows/cache-reaper.yml index 59feda574c1..190e4d37645 100644 --- a/.github/workflows/cache-reaper.yml +++ b/.github/workflows/cache-reaper.yml @@ -8,7 +8,7 @@ on: jobs: cache-cleaner: - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' runs-on: ubuntu-latest env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/check-for-reproducer.yml b/.github/workflows/check-for-reproducer.yml index e986259a3a2..72b122a905f 100644 --- a/.github/workflows/check-for-reproducer.yml +++ b/.github/workflows/check-for-reproducer.yml @@ -8,7 +8,7 @@ jobs: check-for-reproducer: runs-on: ubuntu-latest if: | - github.repository == 'facebook/react-native' && github.event.issue.pull_request == null && github.event.issue.state == 'open' && !contains(github.event.issue.labels.*.name, ':open_umbrella: Umbrella') + github.repository == 'react/react-native' && github.event.issue.pull_request == null && github.event.issue.state == 'open' && !contains(github.event.issue.labels.*.name, ':open_umbrella: Umbrella') steps: - uses: actions/checkout@v6 - uses: actions/github-script@v8 diff --git a/.github/workflows/close-pr.yml b/.github/workflows/close-pr.yml index 5d0489f170b..6ffd382347d 100644 --- a/.github/workflows/close-pr.yml +++ b/.github/workflows/close-pr.yml @@ -9,7 +9,7 @@ permissions: jobs: comment-and-label: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' steps: - uses: actions/github-script@v8 with: diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 464e9eb3f86..dfce6b95e15 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -19,7 +19,7 @@ on: jobs: create_release: - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/monitor-new-issues.yml b/.github/workflows/monitor-new-issues.yml index 36abe0bb4cf..858a60c2b7b 100644 --- a/.github/workflows/monitor-new-issues.yml +++ b/.github/workflows/monitor-new-issues.yml @@ -12,7 +12,7 @@ on: jobs: monitor-issues: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' steps: - name: Checkout uses: actions/checkout@v6 @@ -34,7 +34,7 @@ jobs: git_secret: ${{ secrets.GITHUB_TOKEN }} notifier: "discord" fetch_data_interval: 6 - repo_owner: "facebook" + repo_owner: "react" repo_name: "react-native" discord_webhook_url: "${{ secrets.DISCORD_WEBHOOK_URL }}" discord_id_type: "user" diff --git a/.github/workflows/needs-attention.yml b/.github/workflows/needs-attention.yml index 485bbef9bf5..aede3fa3562 100644 --- a/.github/workflows/needs-attention.yml +++ b/.github/workflows/needs-attention.yml @@ -14,7 +14,7 @@ jobs: issues: write # for react-native-community/needs-attention to label issues name: Apply Needs Attention Label runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' steps: - uses: actions/checkout@v6 - name: Apply Needs Attention Label diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index cda224cee53..3c4e7472378 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -12,7 +12,7 @@ permissions: jobs: set_release_type: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' outputs: RELEASE_TYPE: ${{ steps.set_release_type.outputs.RELEASE_TYPE }} env: @@ -25,7 +25,7 @@ jobs: echo "RELEASE_TYPE=nightly" >> $GITHUB_OUTPUT prebuild_apple_dependencies: - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' uses: ./.github/workflows/prebuild-ios-dependencies.yml secrets: inherit @@ -39,7 +39,7 @@ jobs: build_android: runs-on: 8-core-ubuntu - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' needs: [set_release_type] container: image: reactnativecommunity/react-native-android:latest diff --git a/.github/workflows/on-issue-labeled.yml b/.github/workflows/on-issue-labeled.yml index 7500d9ce3d3..b59f9afdbdf 100644 --- a/.github/workflows/on-issue-labeled.yml +++ b/.github/workflows/on-issue-labeled.yml @@ -13,7 +13,7 @@ jobs: # then invokes actOnLabel to react to any added labels triage-issue: runs-on: ubuntu-latest - if: "${{ github.repository == 'facebook/react-native' && contains(github.event.label.name, 'Needs: Triage :mag:') }}" + if: "${{ github.repository == 'react/react-native' && contains(github.event.label.name, 'Needs: Triage :mag:') }}" steps: - name: Checkout code uses: actions/checkout@v6 @@ -49,7 +49,7 @@ jobs: # Reacts to the label that triggered this workflow (added manually or via other workflows) act-on-label: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' steps: - uses: actions/checkout@v6 - uses: actions/github-script@v8 diff --git a/.github/workflows/publish-bumped-packages.yml b/.github/workflows/publish-bumped-packages.yml index a3576848637..198f1d77749 100644 --- a/.github/workflows/publish-bumped-packages.yml +++ b/.github/workflows/publish-bumped-packages.yml @@ -12,7 +12,7 @@ jobs: # Trusted Publishing only accepts one (org, repo, workflow_filename) # per package. publish_bumped_packages: - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' uses: ./.github/workflows/publish-npm.yml secrets: inherit with: diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 68b421ec5a1..b896b89cfd7 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -7,7 +7,7 @@ on: jobs: set_release_type: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' outputs: RELEASE_TYPE: ${{ steps.set_release_type.outputs.RELEASE_TYPE }} env: @@ -21,7 +21,7 @@ jobs: set_hermes_version: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' outputs: HERMES_VERSION: ${{ steps.set_hermes_version.outputs.HERMES_VERSION }} steps: @@ -34,7 +34,7 @@ jobs: echo "HERMES_VERSION=$hermes_version" prebuild_apple_dependencies: - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' uses: ./.github/workflows/prebuild-ios-dependencies.yml secrets: inherit diff --git a/.github/workflows/retry-workflow.yml b/.github/workflows/retry-workflow.yml index d943d657d82..d3da630924d 100644 --- a/.github/workflows/retry-workflow.yml +++ b/.github/workflows/retry-workflow.yml @@ -9,7 +9,7 @@ on: jobs: rerun: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' steps: - name: rerun ${{ inputs.run_id }} env: diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index f4c2fa8d353..de04b05601f 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -5,7 +5,7 @@ on: jobs: stale: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' permissions: issues: write pull-requests: write @@ -22,7 +22,7 @@ jobs: exempt-pr-labels: 'Help Wanted :octocat:, Never gets stale' stale-asc: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' permissions: issues: write pull-requests: write @@ -40,7 +40,7 @@ jobs: exempt-pr-labels: 'Help Wanted :octocat:, Never gets stale' stale-needs-author-feedback: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' permissions: issues: write pull-requests: write @@ -58,7 +58,7 @@ jobs: exempt-pr-labels: "Help Wanted :octocat:, Never gets stale" stale-needs-author-feedback-asc: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' permissions: issues: write pull-requests: write diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index a19b2bbdc31..8983eb0cb4b 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -14,7 +14,7 @@ permissions: jobs: set_release_type: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' outputs: RELEASE_TYPE: ${{ steps.set_release_type.outputs.RELEASE_TYPE }} env: @@ -38,7 +38,7 @@ jobs: check_code_changes: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' outputs: any_code_change: ${{ steps.filter_exclusions.outputs.any_code_change == 'true' || github.event_name != 'pull_request' }} should_test_android: ${{ steps.filter_exclusions.outputs.should_test_android == 'true' || github.event_name != 'pull_request' }} @@ -447,7 +447,7 @@ jobs: lint: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' steps: - name: Checkout uses: actions/checkout@v6 diff --git a/.github/workflows/validate-cxx-api-snapshots.yml b/.github/workflows/validate-cxx-api-snapshots.yml index 302d45fd957..b7117920a23 100644 --- a/.github/workflows/validate-cxx-api-snapshots.yml +++ b/.github/workflows/validate-cxx-api-snapshots.yml @@ -31,7 +31,7 @@ permissions: jobs: validate_cxx_api_snapshots: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' steps: - name: Checkout uses: actions/checkout@v6 diff --git a/.github/workflows/validate-dotslash-artifacts.yml b/.github/workflows/validate-dotslash-artifacts.yml index c1baac14097..0323b89af65 100644 --- a/.github/workflows/validate-dotslash-artifacts.yml +++ b/.github/workflows/validate-dotslash-artifacts.yml @@ -27,7 +27,7 @@ on: jobs: validate-dotslash-artifacts: runs-on: ubuntu-latest - if: github.repository == 'facebook/react-native' + if: github.repository == 'react/react-native' steps: - name: Checkout repository uses: actions/checkout@v6