From 146a544af3b091577ebc7cd3aff3c540630e98ec Mon Sep 17 00:00:00 2001 From: Xhofe Date: Mon, 14 Feb 2022 19:43:43 +0800 Subject: [PATCH] :pencil2: fix typo --- .github/workflows/issue_duplicate.yml | 2 +- .github/workflows/issue_invalid.yml | 18 ------------------ .github/workflows/issue_question.yml | 4 ++-- .github/workflows/issue_wontfix.yml | 25 +++++++++++++++++++++++++ 4 files changed, 28 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/issue_invalid.yml create mode 100644 .github/workflows/issue_wontfix.yml diff --git a/.github/workflows/issue_duplicate.yml b/.github/workflows/issue_duplicate.yml index 77219270..e8370204 100644 --- a/.github/workflows/issue_duplicate.yml +++ b/.github/workflows/issue_duplicate.yml @@ -16,7 +16,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} body: | - Hello @${{ github.event.issue.user.login }}, please input issue by template and add detail. Issues labeled by Need More Info will be closed if no activities in 7 days. + Hello @${{ github.event.issue.user.login }}, your issue is a duplicate and will be closed. 你好 @${{ github.event.issue.user.login }},你的issue是重复的,将被关闭。 - name: Close issue uses: actions-cool/issues-helper@v2 diff --git a/.github/workflows/issue_invalid.yml b/.github/workflows/issue_invalid.yml deleted file mode 100644 index 06d28e03..00000000 --- a/.github/workflows/issue_invalid.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Issue Invalid - -on: - issues: - types: [labeled] - -jobs: - lock-issue: - runs-on: ubuntu-latest - if: github.event.label.name == 'invalid' - steps: - - name: Lock issue - uses: actions-cool/issues-helper@v2 - with: - actions: 'lock-issue' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - lock-reason: 'off-topic' \ No newline at end of file diff --git a/.github/workflows/issue_question.yml b/.github/workflows/issue_question.yml index 980b3d96..14fc356c 100644 --- a/.github/workflows/issue_question.yml +++ b/.github/workflows/issue_question.yml @@ -16,5 +16,5 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} body: | - Hello @${{ github.event.issue.user.login }}, please input issue by template and add detail. Issues labeled by Need More Info will be closed if no activities in 7 days. - 你好 @${{ github.event.issue.user.login }},请按照issue模板填写, 并详细说明问题和复现步骤等, 7天内未回复issue自动关闭。 \ No newline at end of file + Hello @${{ github.event.issue.user.login }}, please input issue by template and add detail. Issues labeled by `question` will be closed if no activities in 7 days. + 你好 @${{ github.event.issue.user.login }},请按照issue模板填写, 并详细说明问题/复现步骤/实现思路或提供更多信息等, 7天内未回复issue自动关闭。 \ No newline at end of file diff --git a/.github/workflows/issue_wontfix.yml b/.github/workflows/issue_wontfix.yml new file mode 100644 index 00000000..142ab156 --- /dev/null +++ b/.github/workflows/issue_wontfix.yml @@ -0,0 +1,25 @@ +name: Issue Wontfix + +on: + issues: + types: [labeled] + +jobs: + lock-issue: + runs-on: ubuntu-latest + if: github.event.label.name == 'wontfix' + steps: + - name: Create comment + uses: actions-cool/issues-helper@v2 + with: + actions: 'create-comment' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + Hello @${{ github.event.issue.user.login }}, this issue will not be worked on and will be closed. + 你好 @${{ github.event.issue.user.login }},这不会被处理,将被关闭。 + - name: Close issue + uses: actions-cool/issues-helper@v2 + with: + actions: 'close-issue' + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file