修改issues模板

This commit is contained in:
AnJia 2022-09-09 17:34:04 +08:00
parent 7c41c1e327
commit da0a44ce5b
1 changed files with 9 additions and 1 deletions

View File

@ -48,8 +48,16 @@ jobs:
core.setOutput('SUCCESS', true)
return
}
let validLabels=false
for(let issues of openIssues['data']){
for(let labels of issues["labels"]){
if(labels["name"]=="porter" || labels["name"]=="question"){
validLabels=true
}
}
if(validLabels){
continue
}
await github.issues.createComment({
owner: '${{ github.repository_owner }}',
repo: '${{ github.event.repository.name }}',