File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,21 @@ function gpu_op_benchmark {
316316 exit 0
317317}
318318
319+ # The PR will pass quickly when get approval from specific person.
320+ # Xreki 12538138, luotao1 6836917, Avin0323 16167147
321+ set +x
322+ approval_line=$( curl -H " Authorization: token ${GITHUB_API_TOKEN} " https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID} /reviews? per_page=10000)
323+ if [ -n " ${approval_line} " ]; then
324+ APPROVALS=$( echo ${approval_line} | python ${PADDLE_ROOT} /tools/check_pr_approval.py 1 16167147 12538138 6836917)
325+ LOG " [INFO] current pr ${GIT_PR_ID} got approvals: ${APPROVALS} "
326+ if [ " ${APPROVALS} " == " TRUE" ]; then
327+ LOG " [INFO] ==================================="
328+ LOG " [INFO] current pr ${GIT_PR_ID} has got approvals. So, Pass CI directly!"
329+ LOG " [INFO] ==================================="
330+ exit 0
331+ fi
332+ fi
333+ set -x
319334
320335case $1 in
321336 cpu_op_benchmark)
You can’t perform that action at this time.
0 commit comments