From 683054c5121bf67a2a3ca4bbb863d770e1e2f630 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Tue, 10 Jun 2025 16:37:49 -0700 Subject: [PATCH] RN: Move `{packages => private}/react-native-bots` (#51932) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51932 Moves `packages/react-native-bots` to `private/react-native-bots`. Changelog: [Internal] Reviewed By: huntie Differential Revision: D76354266 fbshipit-source-id: 6ca714c8b0c881b073d84a2f033f78d366ed3f24 --- .flowconfig | 2 +- .github/workflow-scripts/analyze_code.sh | 2 +- .github/workflows/danger-pr.yml | 2 +- packages/react-native-bots/package.json | 22 ------------------- .../react-native-bots/.babelrc | 0 .../react-native-bots/README.md | 2 +- .../react-native-bots/code-analysis-bot.js | 0 .../react-native-bots/dangerfile.js | 0 private/react-native-bots/package.json | 15 +++++++++++++ 9 files changed, 19 insertions(+), 26 deletions(-) delete mode 100644 packages/react-native-bots/package.json rename {packages => private}/react-native-bots/.babelrc (100%) rename {packages => private}/react-native-bots/README.md (96%) rename {packages => private}/react-native-bots/code-analysis-bot.js (100%) rename {packages => private}/react-native-bots/dangerfile.js (100%) create mode 100644 private/react-native-bots/package.json diff --git a/.flowconfig b/.flowconfig index c598da16cb2..8b8c048128e 100644 --- a/.flowconfig +++ b/.flowconfig @@ -9,7 +9,7 @@ /packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js ; Ignore the Dangerfile -/packages/react-native-bots/dangerfile.js +/private/react-native-bots/dangerfile.js ; Ignore "BUCK" generated dirs /\.buckd/ diff --git a/.github/workflow-scripts/analyze_code.sh b/.github/workflow-scripts/analyze_code.sh index 1dd5bcbf28f..26323a44032 100755 --- a/.github/workflow-scripts/analyze_code.sh +++ b/.github/workflow-scripts/analyze_code.sh @@ -16,7 +16,7 @@ export GITHUB_REPO=-react-native echo google-java-format node scripts/lint-java.js --diff -} | node packages/react-native-bots/code-analysis-bot.js +} | node private/react-native-bots/code-analysis-bot.js STATUS=$? if [ $STATUS == 0 ]; then diff --git a/.github/workflows/danger-pr.yml b/.github/workflows/danger-pr.yml index 74eb0ec2372..39a0e1c4922 100644 --- a/.github/workflows/danger-pr.yml +++ b/.github/workflows/danger-pr.yml @@ -24,6 +24,6 @@ jobs: uses: ./.github/actions/yarn-install - name: Danger run: yarn danger ci --use-github-checks --failOnErrors - working-directory: packages/react-native-bots + working-directory: private/react-native-bots env: DANGER_GITHUB_API_TOKEN: ${{ secrets.REACT_NATIVE_BOT_GITHUB_TOKEN }} diff --git a/packages/react-native-bots/package.json b/packages/react-native-bots/package.json deleted file mode 100644 index 0ab7d1a97b4..00000000000 --- a/packages/react-native-bots/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "@react-native/bots", - "description": "React Native Bots", - "version": "0.80.0-main", - "private": true, - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/facebook/react-native.git", - "directory": "packages/react-native-bots" - }, - "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/react-native-bots#readme", - "engines": { - "node": ">= 22.14.0" - }, - "devDependencies": { - "@rnx-kit/rn-changelog-generator": "^0.4.0", - "danger": "^13.0.4", - "lodash.includes": "^4.3.0", - "minimatch": "^3.0.4" - } -} diff --git a/packages/react-native-bots/.babelrc b/private/react-native-bots/.babelrc similarity index 100% rename from packages/react-native-bots/.babelrc rename to private/react-native-bots/.babelrc diff --git a/packages/react-native-bots/README.md b/private/react-native-bots/README.md similarity index 96% rename from packages/react-native-bots/README.md rename to private/react-native-bots/README.md index ce96a2f5ff2..3848beb5d90 100644 --- a/packages/react-native-bots/README.md +++ b/private/react-native-bots/README.md @@ -9,7 +9,7 @@ You'll need a GitHub Public Access Token (PAT). It will look like `github_pat_ yarn danger pr https://github.com/facebook/react-native/pull/1234 ``` diff --git a/packages/react-native-bots/code-analysis-bot.js b/private/react-native-bots/code-analysis-bot.js similarity index 100% rename from packages/react-native-bots/code-analysis-bot.js rename to private/react-native-bots/code-analysis-bot.js diff --git a/packages/react-native-bots/dangerfile.js b/private/react-native-bots/dangerfile.js similarity index 100% rename from packages/react-native-bots/dangerfile.js rename to private/react-native-bots/dangerfile.js diff --git a/private/react-native-bots/package.json b/private/react-native-bots/package.json new file mode 100644 index 00000000000..a67e918abb7 --- /dev/null +++ b/private/react-native-bots/package.json @@ -0,0 +1,15 @@ +{ + "name": "@react-native/bots", + "version": "0.0.0", + "private": true, + "license": "MIT", + "engines": { + "node": ">= 22.14.0" + }, + "devDependencies": { + "@rnx-kit/rn-changelog-generator": "^0.4.0", + "danger": "^13.0.4", + "lodash.includes": "^4.3.0", + "minimatch": "^3.0.4" + } +}