chore: update auto close issue workflow (#6576)
Some checks are pending
build / lint-and-build-g6 (push) Waiting to run
Deploy / deploy-site (push) Waiting to run

This commit is contained in:
Aaron 2024-11-28 17:04:03 +08:00 committed by GitHub
parent 76c4cfef62
commit c9722c2eb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,14 +37,14 @@ jobs:
这个 issue 已经被关闭,因为 **它是无效的**。 这个 issue 已经被关闭,因为 **它是无效的**。
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Warning Bad Issue - name: Warning Bad Issue
if: ${{ github.event.label.name == 'Bad' }} if: ${{ github.event.label.name == 'Need Improvement' }}
run: gh issue comment "$NUMBER" --body "$BODY" run: gh issue comment "$NUMBER" --body "$BODY"
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }} GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }} NUMBER: ${{ github.event.issue.number }}
BODY: > BODY: >
This issue has been marked as **Bad**. Please provide more information, or use the standard format, otherwise it will be closed soon. Please provide more information, or use the standard format, otherwise we will not process this issue.
Reference document: Reference document:
@ -53,7 +53,7 @@ jobs:
--- ---
这个 issue 已经被标记为 **Bad**。请提供更多信息,或者使用规范的格式,否则将在近期关闭 请提供更多信息,或者使用规范的格式,否则我们不会处理这个 issue
参考文档: 参考文档: