From 95d7394830d7e2635294512077244dd1e3af8346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LeoYuan=20=E8=A2=81=E5=8A=9B=E7=9A=93?= Date: Mon, 7 Mar 2022 13:51:26 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0=20insufficient=20in?= =?UTF-8?q?formation=20action=20bot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/help wanted.yml | 2 +- .../workflows/insufficient information.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/insufficient information.yml diff --git a/.github/workflows/help wanted.yml b/.github/workflows/help wanted.yml index aee564e58..94927ad28 100644 --- a/.github/workflows/help wanted.yml +++ b/.github/workflows/help wanted.yml @@ -16,6 +16,6 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} body: | - Hello @${{ github.event.issue.user.login }}. We totally like your proposal/feedback, welcome PR。 + Hello @${{ github.event.issue.user.login }}. We totally like your proposal/feedback, PR wanted。 你好 @${{ github.event.issue.user.login }},我们完全同意你的提议/反馈,欢迎 PR。 diff --git a/.github/workflows/insufficient information.yml b/.github/workflows/insufficient information.yml new file mode 100644 index 000000000..ea8b64e1f --- /dev/null +++ b/.github/workflows/insufficient information.yml @@ -0,0 +1,19 @@ +name: Issue Reply + +on: + issues: + types: [labeled] + +jobs: + reply-helper: + runs-on: ubuntu-latest + steps: + - name: insufficient information + if: github.event.label.name == 'insufficient information' + uses: actions-cool/issues-helper@v2 + with: + actions: 'create-comment' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + 你好 @${{ github.event.issue.user.login }},由于缺乏必要的信息(如 bug 重现步骤、引擎版本信息 等),无法定位问题,请按照 issue bug 模板补全信息。