mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
683054c512
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
28 lines
629 B
Bash
Executable File
28 lines
629 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
export GITHUB_OWNER=-facebook
|
|
export GITHUB_REPO=-react-native
|
|
|
|
{
|
|
echo eslint
|
|
npm run lint --silent -- --format=json
|
|
|
|
echo flow
|
|
npm run flow-check --silent --json
|
|
|
|
echo google-java-format
|
|
node scripts/lint-java.js --diff
|
|
} | node private/react-native-bots/code-analysis-bot.js
|
|
|
|
STATUS=$?
|
|
if [ $STATUS == 0 ]; then
|
|
echo "Code analyzed successfully."
|
|
else
|
|
echo "Code analysis failed, error status $STATUS."
|
|
fi
|
|
exit $STATUS
|