From aac1d4e4347ad4bb9e30d662760131315511fc80 Mon Sep 17 00:00:00 2001 From: zombiej Date: Thu, 24 Sep 2020 11:22:26 +0800 Subject: [PATCH] chore: Add auto close workflow --- .github/workflows/auto-close.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/auto-close.yml diff --git a/.github/workflows/auto-close.yml b/.github/workflows/auto-close.yml new file mode 100644 index 0000000000..a662b55700 --- /dev/null +++ b/.github/workflows/auto-close.yml @@ -0,0 +1,16 @@ +name: 🧐 Auto Closer + +on: + issues: + types: [labeled] + +jobs: + close-by-label: + runs-on: ubuntu-latest + if: github.event.label.name == '3.x' + steps: + - name: Comment on issue + uses: peter-evans/close-issue@v1 + with: + comment: "Hi @${{ github.event.issue.user.login }},
Current branch is off the maintenance period. We may not accept pull request or fix bug with it anymore. This topic will be auto closed.

你好 @${{ github.event.issue.user.login }},
当前分支已经过了维护期。我们不会再接受对其的相关 PR 与 issue。当前 topic 会被自动关闭。" + \ No newline at end of file