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:
@@ -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
|
||||
|
||||
|
11
travis.pl
11
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;
|
||||
|
Reference in New Issue
Block a user