kou commented on a change in pull request #11728:
URL: https://github.com/apache/arrow/pull/11728#discussion_r752770997
##########
File path: ci/scripts/js_build.sh
##########
@@ -30,7 +30,16 @@ yarn lint:ci
yarn build
if [ "${with_docs}" == "true" ]; then
- yarn doc
+ if [ "$(git config --get remote.origin.url)" ==
"https://github.com/apache/arrow.git" ]; then
+ yarn doc
+ elif [ "$(git config --get remote.upstream.url)" ==
"https://github.com/apache/arrow.git" ]; then
+ yarn doc --gitRemote upstream
+ elif [ "$(git config --get remote.apache.url)" ==
"[email protected]:apache/arrow.git" ]; then
+ yarn doc --gitRemote apache
+ else
+ echo "Failed to build docs because the remote is not set correctly. Please
set the origin or upstream remote to https://github.com/apache/arrow.git."
Review comment:
```suggestion
echo "Failed to build docs because the remote is not set correctly.
Please set the origin or upstream remote to https://github.com/apache/arrow.git
or the apache remote to [email protected]:apache/arrow.git."
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]