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:
4
.github/workflows/gcr.io_mirror.yml
vendored
4
.github/workflows/gcr.io_mirror.yml
vendored
@@ -35,14 +35,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
const openIssues = await github.issues.listForRepo({
|
const openIssues = await github.issues.listForRepo({
|
||||||
owner: '${{ github.repository_owner }}',
|
owner: '${{ github.repository_owner }}',
|
||||||
repo: '${{ github.event.repository.name }}',
|
repo: '${{ github.event.repository.name }}',
|
||||||
state: 'open',
|
state: 'open',
|
||||||
per_page: 100,
|
per_page: 100,
|
||||||
sort: "created",
|
sort: "created",
|
||||||
direction: "desc",
|
direction: "desc",
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!Array.isArray(openIssues["data"]) || !openIssues["data"].length) {
|
if (!Array.isArray(openIssues["data"]) || !openIssues["data"].length) {
|
||||||
core.setOutput('SUCCESS', true)
|
core.setOutput('SUCCESS', true)
|
||||||
|
Reference in New Issue
Block a user