Skip to content

Commit 861d8e0

Browse files
robhoganmeta-codesync[bot]
authored andcommitted
Update GH Actions references from facebook/react-native to react/react-native (#57167)
Summary: Pull Request resolved: #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
1 parent a902d74 commit 861d8e0

17 files changed

Lines changed: 28 additions & 28 deletions

.github/workflows/analyze-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
jobs:
1212
analyze_pr:
1313
runs-on: ubuntu-latest
14-
if: github.repository == 'facebook/react-native'
14+
if: github.repository == 'react/react-native'
1515
steps:
1616
- name: Check out main branch
1717
uses: actions/checkout@v6

.github/workflows/api-changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
jobs:
1111
api_changes:
1212
runs-on: ubuntu-latest
13-
if: github.repository == 'facebook/react-native'
13+
if: github.repository == 'react/react-native'
1414
steps:
1515
- name: Check out main branch
1616
uses: actions/checkout@v6

.github/workflows/cache-reaper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
cache-cleaner:
11-
if: github.repository == 'facebook/react-native'
11+
if: github.repository == 'react/react-native'
1212
runs-on: ubuntu-latest
1313
env:
1414
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/check-for-reproducer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
check-for-reproducer:
99
runs-on: ubuntu-latest
1010
if: |
11-
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')
11+
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')
1212
steps:
1313
- uses: actions/checkout@v6
1414
- uses: actions/github-script@v8

.github/workflows/close-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
jobs:
1010
comment-and-label:
1111
runs-on: ubuntu-latest
12-
if: github.repository == 'facebook/react-native'
12+
if: github.repository == 'react/react-native'
1313
steps:
1414
- uses: actions/github-script@v8
1515
with:

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
jobs:
2121
create_release:
22-
if: github.repository == 'facebook/react-native'
22+
if: github.repository == 'react/react-native'
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout

.github/workflows/monitor-new-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
monitor-issues:
1414
runs-on: ubuntu-latest
15-
if: github.repository == 'facebook/react-native'
15+
if: github.repository == 'react/react-native'
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v6
@@ -34,7 +34,7 @@ jobs:
3434
git_secret: ${{ secrets.GITHUB_TOKEN }}
3535
notifier: "discord"
3636
fetch_data_interval: 6
37-
repo_owner: "facebook"
37+
repo_owner: "react"
3838
repo_name: "react-native"
3939
discord_webhook_url: "${{ secrets.DISCORD_WEBHOOK_URL }}"
4040
discord_id_type: "user"

.github/workflows/needs-attention.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
issues: write # for react-native-community/needs-attention to label issues
1515
name: Apply Needs Attention Label
1616
runs-on: ubuntu-latest
17-
if: github.repository == 'facebook/react-native'
17+
if: github.repository == 'react/react-native'
1818
steps:
1919
- uses: actions/checkout@v6
2020
- name: Apply Needs Attention Label

.github/workflows/nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
set_release_type:
1414
runs-on: ubuntu-latest
15-
if: github.repository == 'facebook/react-native'
15+
if: github.repository == 'react/react-native'
1616
outputs:
1717
RELEASE_TYPE: ${{ steps.set_release_type.outputs.RELEASE_TYPE }}
1818
env:
@@ -25,7 +25,7 @@ jobs:
2525
echo "RELEASE_TYPE=nightly" >> $GITHUB_OUTPUT
2626
2727
prebuild_apple_dependencies:
28-
if: github.repository == 'facebook/react-native'
28+
if: github.repository == 'react/react-native'
2929
uses: ./.github/workflows/prebuild-ios-dependencies.yml
3030
secrets: inherit
3131

@@ -39,7 +39,7 @@ jobs:
3939

4040
build_android:
4141
runs-on: 8-core-ubuntu
42-
if: github.repository == 'facebook/react-native'
42+
if: github.repository == 'react/react-native'
4343
needs: [set_release_type]
4444
container:
4545
image: reactnativecommunity/react-native-android:latest

.github/workflows/on-issue-labeled.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
# then invokes actOnLabel to react to any added labels
1414
triage-issue:
1515
runs-on: ubuntu-latest
16-
if: "${{ github.repository == 'facebook/react-native' && contains(github.event.label.name, 'Needs: Triage :mag:') }}"
16+
if: "${{ github.repository == 'react/react-native' && contains(github.event.label.name, 'Needs: Triage :mag:') }}"
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v6
@@ -49,7 +49,7 @@ jobs:
4949
# Reacts to the label that triggered this workflow (added manually or via other workflows)
5050
act-on-label:
5151
runs-on: ubuntu-latest
52-
if: github.repository == 'facebook/react-native'
52+
if: github.repository == 'react/react-native'
5353
steps:
5454
- uses: actions/checkout@v6
5555
- uses: actions/github-script@v8

0 commit comments

Comments
 (0)