Browse Source

ci: use issues-helper (#389)

ajuner 4 years ago
parent
commit
5359486143
1 changed files with 18 additions and 0 deletions
  1. 18 0
      .github/workflows/issue-reply.yml

+ 18 - 0
.github/workflows/issue-reply.yml

@@ -0,0 +1,18 @@
+name: Issue Reply
+
+on:
+  issues:
+    types: [labeled]
+
+jobs:
+  issue-reply:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Need Reproduce
+        if: github.event.label.name == 'Need Reproduce'
+        uses: actions-cool/issues-helper@v1
+        with:
+          actions: 'create-comment'
+          issue-number: ${{ github.event.issue.number }}
+          body: |       
+            你好 @${{ github.event.issue.user.login }}, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 [此处](https://codesandbox.io/s/nifty-curran-qjtrp?resolutionWidth=320&resolutionHeight=675) 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。