mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Add diffing to app bundle size reports. ## Changelog [Internal] [Changed] - Add diffing to app bundle size reports Pull Request resolved: https://github.com/facebook/react-native/pull/28284 Test Plan: - App bundle size reports should now display a diff where available - Right now, the database contains only one entry for the last known good iOS build - Triggering a new build should not create additional comments Reviewed By: cpojer Differential Revision: D20450158 Pulled By: hramos fbshipit-source-id: 720772275f24d3ff0a49705f4dada2efe2e99bd3
20 lines
553 B
Bash
Executable File
20 lines
553 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
case $1 in
|
|
"android" | "ios")
|
|
GITHUB_OWNER=${CIRCLE_PROJECT_USERNAME:-facebook} \
|
|
GITHUB_REPO=${CIRCLE_PROJECT_REPONAME:-react-native} \
|
|
GITHUB_PR_NUMBER="$CIRCLE_PR_NUMBER" \
|
|
GITHUB_REF=${CIRCLE_BRANCH} \
|
|
GITHUB_SHA=${CIRCLE_SHA1} \
|
|
node bots/report-bundle-size.js "$1"
|
|
;;
|
|
*)
|
|
echo "Syntax: $0 [android | ios]"
|
|
exit 1
|
|
esac
|