修改issues模板
This commit is contained in:
parent
bdc37071c3
commit
4bdbd7e43a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue