From 550170eee0916236c3a417eb015f5c9a84ee4a05 Mon Sep 17 00:00:00 2001 From: jahnli Date: Tue, 2 Apr 2024 22:03:19 +0800 Subject: [PATCH] feat: add reply new issue workflow --- .github/workflows/reply-new-issue.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/reply-new-issue.yml diff --git a/.github/workflows/reply-new-issue.yml b/.github/workflows/reply-new-issue.yml new file mode 100644 index 00000000000..c3b563eb7b8 --- /dev/null +++ b/.github/workflows/reply-new-issue.yml @@ -0,0 +1,29 @@ +name: Reply New Issue + +on: + issues: + types: [opened] + +permissions: + issues: write + +jobs: + reply-to-issue: + runs-on: ubuntu-latest + steps: + - name: Reply to new issue + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const issueComment = `@${context.actor} 👋 + + Thank you for submitting an issue to \`VueUse\`. + Please ensure your submission is complete according to the \`issue\` template, so we can more effectively pinpoint and address the problem. + ` + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: issueComment + })