@ -39,6 +39,7 @@ API_FILES=("CMakeLists.txt"
"python/paddle/fluid/tests/unittests/white_list/check_op_sequence_batch_1_input_white_list.py"
"python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py"
"tools/wlist.json"
"paddle/scripts/paddle_build.bat"
)
approval_line = ` curl -H " Authorization: token ${ GITHUB_API_TOKEN } " https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${ GIT_PR_ID } /reviews?per_page= 10000`
@ -125,6 +126,9 @@ for API_FILE in ${API_FILES[*]}; do
elif [ " ${ API_FILE } " = = "python/paddle/distributed/__init__.py" ] ; then
echo_line = " You must have (guru4elephant,raindrops2sea) approval for ${ API_FILE } changes "
check_approval 1 35550832 38231817
elif [ " ${ API_FILE } " = = "paddle/scripts/paddle_build.bat" ] ; then
echo_line = " You must have one RD (zhouwei25 (Recommend), luotao1) approval for ${ API_FILE } changes, which manages all Paddle CI task on Windows.\n "
check_approval 1 52485244 6836917
else
echo_line = " You must have one RD (XiaoguangHu01,Xreki,luotao1) approval for ${ API_FILE } , which manages the underlying code for fluid.\n "
check_approval 1 3048612 46782768 12538138 6836917
@ -159,7 +163,7 @@ fi
HAS_UNITTEST_SKIP = ` git diff -U0 upstream/$BRANCH | grep "^+[[:space:]]\{0,\}@unittest.skip" || true `
if [ " ${ HAS_UNITTEST_SKIP } " != "" ] && [ " ${ GIT_PR_ID } " != "" ] ; then
echo_line = " Unittest is not allowed to be disabled.\nYou must have one RD (kolinwei(Recommend), liuwei1031, or luotao1) approval for the usage of @unittest.skip or @unittest.skipIf.\n${ HAS_UNITTEST_SKIP } \n "
echo_line = " Unittest is not allowed to be disabled.\nYou must have one RD (kolinwei(Recommend), or luotao1) approval for the usage of @unittest.skip or @unittest.skipIf.\n${ HAS_UNITTEST_SKIP } \n "
check_approval 1 22165420 6836917 46661762
fi