diff --git a/tools/check_file_diff_approvals.sh b/tools/check_file_diff_approvals.sh index a73a82f70b7dc63528c08f54616446d51690d1e4..6b0f53ac5236941489af5db18ac93839a5051575 100644 --- a/tools/check_file_diff_approvals.sh +++ b/tools/check_file_diff_approvals.sh @@ -439,7 +439,7 @@ if [ "${RUNTYPE_FILE_CHANGED}" != "" ] && [ "${GIT_PR_ID}" != "" ]; then fi fi -SKIP_CI=`git log -2 |grep -w "test=document_fix" || true` +SKIP_CI=`git log --pretty=oneline|grep $AGILE_REVISION |grep -w "test=document_fix" || true` if [[ ${SKIP_CI} ]];then echo_line="You must have one RD (tianshuo78520a (Recommend),zhiqiu ,phlrain ) approval you add test=document_fix method in commit skips CI" check_approval 1 tianshuo78520a zhiqiu phlrain