mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Remove Danger.js workflow and React native bots package (#55385)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55385 Now that all Danger.js checks have been migrated to native GitHub Actions in the `annotate-pr.yml` workflow, this removes the deprecated Danger infrastructure: - Deletes `.github/workflows/danger-pr.yml` workflow - Deletes `private/react-native-bots/dangerfile.js` - Removes `danger` npm dependency from `react-native-bots/package.json` The functionality previously provided by Danger.js is now handled by: - **API diff detection**: `diff-js-api-changes` action - **PR body validation**: `validatePRBody.js` script (summary, test plan, changelog checks) - **Branch targeting**: `checkBranchTarget.js` script (validates target branch, adds "Pick Request" label) - **PR commenting**: `post-pr-comment` action This simplifies the CI pipeline by removing the third-party Danger dependency and consolidating PR annotation logic into maintainable GitHub Actions workflows. Changelog: [Internal] Reviewed By: huntie Differential Revision: D91695886 fbshipit-source-id: c88001ef75d16c4709c7972add141db0df3b5a30
This commit is contained in:
1 parent
1ee6fdc571
commit
b79cd8d247
7 files changed
+9
-748
No files matched your search
@@ -1,32 +0,0 @@
|
||||
name: Run Danger on PR
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, edited, reopened, synchronize]
|
||||
|
||||
permissions:
|
||||
actions: write
|
||||
checks: write
|
||||
contents: write
|
||||
issues: write
|
||||
pull-requests: write
|
||||
statuses: write
|
||||
|
||||
jobs:
|
||||
danger:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'facebook/react-native'
|
||||
steps:
|
||||
- name: Check out main branch
|
||||
uses: actions/checkout@v6
|
||||
- name: Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
- name: Run yarn install
|
||||
uses: ./.github/actions/yarn-install
|
||||
- name: Run diff-js-api-changes
|
||||
uses: ./.github/actions/diff-js-api-changes
|
||||
- name: Danger
|
||||
run: yarn danger ci --use-github-checks --failOnErrors
|
||||
working-directory: private/react-native-bots
|
||||
env:
|
||||
DANGER_GITHUB_API_TOKEN: ${{ secrets.REACT_NATIVE_BOT_GITHUB_TOKEN }}
|
||||
Reference in new issue
Block a user