diff --git a/.travis.yml b/.travis.yml index 25ab2393e..0c936bf7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,8 +18,6 @@ script: - echo $TRAVIS_JOB_NUMBER - echo $TRAVIS_BRANCH - echo $TRAVIS_COMMIT_MESSAGE -- echo $USERNAME -- echo $PASSWORD - echo $GITHUB_TOKEN - git log --pretty=format:"%s %b" -2 diff --git a/travis.pl b/travis.pl index 9478ab275..6fb7708f4 100644 --- a/travis.pl +++ b/travis.pl @@ -129,9 +129,14 @@ sub check_pr_format{ $check_result_str .= "> **PR FORMAT CORRECT**"; send_back_comment("$check_result_str"); }else{ - $check_result_str .= "> **PR FORMAT ERROR** : $checkrst"; - send_back_comment("$check_result_str"); - return 1; + if($checkrst =~ /milestone/ || $checkrst =~ /labels/){ + $check_result_str .= "> **PR FORMAT WARNING** : $checkrst"; + send_back_comment("$check_result_str"); + }else{ + $check_result_str .= "> **PR FORMAT ERROR** : $checkrst"; + send_back_comment("$check_result_str"); + return 1; + } } } return 0;