No "hide root" & add tips (#217)

* Update bug_report.yml

* No hide root

* Update issue.yml

* Update issue.yml
This commit is contained in:
ianchb 2022-10-17 11:40:37 +08:00 • committed by GitHub
commit af34b8f056
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -8,11 +8,13 @@ body:
value: |
Thanks for reporting issues of Hide-My-Applist!
To prevent spam, please fill in the title after "[Bug]".
To make it easier for us to help you please enter detailed information below.
感谢给 Hide-My-Applist 汇报问题!
为了使我们更好地帮助你,请提供以下信息。
为了防止重复汇报,标题请务必使用英文。
为了防止重复汇报与垃圾信息,标题请务必使用英文,在“[Bug]”之后填写内容。
- type: textarea
attributes:
label: Steps to reproduce/复现步骤

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.trim() == '[Bug]'){
if(title.substr(0, 5) !== '[Bug]' || title.trim() == '[Bug]' || title.toLowerCase().includes('hide root')){
spam = true;
}
if(body.search("### Version requirement/版本要求\n\nPublic release/beta version/公开发布/测试版\n\n") != -1 || body.search("### Version requirement/版本要求\n\nOther/其他\n\n") != -1){