2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00

Change Milestone or Labels missing from error to warning in CI test (#4943)

* Change Milestone or Labels missing from error to warning

* Remove the plaintext of user name and password in CI log
This commit is contained in:
Weihua Hu
2018-03-20 17:38:58 +08:00
committed by yangsong
parent e56f0e68bb
commit f9f5c4f8ad
2 changed files with 8 additions and 5 deletions

View File

@@ -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

View File

@@ -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;