test=develop
for_weibo
Xin Pan 6 years ago
parent e90b2f104c
commit 787d837f50

@ -518,7 +518,7 @@ function assert_api_spec_approvals() {
fi fi
done done
HAS_CONST_CAST=`git diff -U0 upstream/$BRANCH |grep const_cast` HAS_CONST_CAST=`git diff -U0 upstream/$BRANCH |grep const_cast || true`
if [ ${HAS_CONST_CAST} ] && [ "${GIT_PR_ID}" != "" ]; then if [ ${HAS_CONST_CAST} ] && [ "${GIT_PR_ID}" != "" ]; then
APPROVALS=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews?per_page=10000 | \ APPROVALS=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews?per_page=10000 | \
python ${PADDLE_ROOT}/tools/check_pr_approval.py 2 7845005 2887803 728699 13348433` python ${PADDLE_ROOT}/tools/check_pr_approval.py 2 7845005 2887803 728699 13348433`

Loading…
Cancel
Save