mirror of
https://github.com/anjia0532/gcr.io_mirror.git
synced 2025-09-23 03:59:19 +08:00
修改issues模板
This commit is contained in:
10
.github/workflows/gcr.io_mirror.yml
vendored
10
.github/workflows/gcr.io_mirror.yml
vendored
@@ -48,8 +48,16 @@ jobs:
|
|||||||
core.setOutput('SUCCESS', true)
|
core.setOutput('SUCCESS', true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
let validLabels=false
|
||||||
for(let issues of openIssues['data']){
|
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({
|
await github.issues.createComment({
|
||||||
owner: '${{ github.repository_owner }}',
|
owner: '${{ github.repository_owner }}',
|
||||||
repo: '${{ github.event.repository.name }}',
|
repo: '${{ github.event.repository.name }}',
|
||||||
|
Reference in New Issue
Block a user