Skip to content

Commit 1908d50

Browse files
tido64facebook-github-bot
authored andcommitted
Fix CIRCLE_PR_NUMBER may not always be set (#28640)
Summary: This fixes build failures where `CIRCLE_PR_NUMBER` is not set. This can happen if the PR did not come from a fork. ## Changelog [Internal] [Fixed] - Fix CIRCLE_PR_NUMBER may not always be set Pull Request resolved: #28640 Test Plan: Report bundle size step should pass on both this PR and #28641. Reviewed By: cpojer Differential Revision: D21045553 Pulled By: TheSavior fbshipit-source-id: fdfcb1bb88a96345b78ca69c49623df71d4cd608
1 parent 992e0ce commit 1908d50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/circleci/report-bundle-size.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ case $1 in
88
"android" | "ios")
99
GITHUB_OWNER=${CIRCLE_PROJECT_USERNAME:-facebook} \
1010
GITHUB_REPO=${CIRCLE_PROJECT_REPONAME:-react-native} \
11-
GITHUB_PR_NUMBER="$CIRCLE_PR_NUMBER" \
11+
GITHUB_PR_NUMBER="${CIRCLE_PR_NUMBER:-${CIRCLE_PULL_REQUEST##*/}}" \
1212
GITHUB_REF=${CIRCLE_BRANCH} \
1313
GITHUB_SHA=${CIRCLE_SHA1} \
1414
node bots/report-bundle-size.js "$1"

0 commit comments

Comments
 (0)