Update issue.yml (#210)

This commit is contained in:
ianchb 2022-09-17 14:52:32 +08:00 • committed by GitHub
commit 87d7464afc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ jobs:
var invalid = false;
for(var i=0,l=labels.length;i<l;i++){
if(labels[i]['name'] == 'bug'){
if(title.substr(0, 5) !== '[Bug]' || title == '[Bug]' || title == '[Bug] '){
if(title.substr(0, 5) !== '[Bug]' || title.trim() == '[Bug]'){
spam = true;
}
if(body.search("### Version requirement/版本要求\n\nPublic release/beta version/公开发布/测试版\n\n") != -1 || body.search("### Version requirement/版本要求\n\nOther/其他\n\n") != -1){