mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Run Danger on all the PRs and use fail or warning where is needed (#33872)
Summary: Run Danger on all the PRs, not just on the forks, use fail or warning where is needed and make CircleCI fail if danger fails ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] - Run Danger on all the PRs and use fail or warning where is needed. Pull Request resolved: https://github.com/facebook/react-native/pull/33872 Test Plan: Run the change on CirlceCI Reviewed By: cortinico Differential Revision: D36516847 Pulled By: f-meloni fbshipit-source-id: 2c956295a56cc8aa47df4c64f8ca0a211796c73c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bc7b5c3011
commit
b149d2a0d6
@@ -0,0 +1,18 @@
|
||||
name: Run Danger on PR
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, edited, reopened, synchronize]
|
||||
|
||||
jobs:
|
||||
danger:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: yarn install
|
||||
working-directory: bots
|
||||
- name: Danger
|
||||
run: yarn danger ci --use-github-checks --failOnErrors --id danger_pr
|
||||
working-directory: bots
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user