From fdf6e789f46afd7e0e1fdfcce036d8c941562cf0 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Thu, 7 Jan 2021 21:21:23 +0800 Subject: [PATCH] ci: add issue helper --- .github/workflows/issue-labeled.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/issue-labeled.yml diff --git a/.github/workflows/issue-labeled.yml b/.github/workflows/issue-labeled.yml new file mode 100644 index 0000000..aa6d51e --- /dev/null +++ b/.github/workflows/issue-labeled.yml @@ -0,0 +1,19 @@ +name: Issue Labeled + +on: + issues: + types: [labeled] + +jobs: + issue-labeled: + runs-on: ubuntu-latest + steps: + - name: Needs More Information + if: github.event.label.name == 'Needs More Information' + uses: actions-cool/issues-helper@v1.8 + with: + actions: 'create-comment' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + Hello @${{ github.event.issue.user.login }}. We need you to provide an online replay example so that we can help you troubleshoot the problem. You can create an example on [jsfiddle](https://jsfiddle.net/) or a minimal GitHub repository. Issues labeled by `Needs More Information` will be closed if no activities in 7 days.