mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b41b924b2d
Summary: This PR connects breaking change detection with a danger bot. The action takes snapshot from main branch and from the PR as inputs to`diff-api-snapshot` (saved in runner temp directory). ## Changelog: [Internal] For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: https://github.com/facebook/react-native/pull/52045 Reviewed By: huntie Differential Revision: D76735630 Pulled By: coado fbshipit-source-id: 9208117340c1e0bf10d58b67892727717d22e62f
32 lines
851 B
YAML
32 lines
851 B
YAML
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:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Node.js
|
|
uses: ./.github/actions/setup-node
|
|
- name: Run yarn install
|
|
uses: ./.github/actions/yarn-install
|
|
- name: Run diff-js-api-breaking-changes
|
|
uses: ./.github/actions/diff-js-api-breaking-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 }}
|