From 5de61871f1c2e49bc8dd01e7bdea98668d113a53 Mon Sep 17 00:00:00 2001 From: devanshsonii Date: Fri, 3 Oct 2025 14:46:16 +0530 Subject: [PATCH] Added the workflow for auto message replies. --- .github/workflows/issue-auto-reply.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/issue-auto-reply.yml diff --git a/.github/workflows/issue-auto-reply.yml b/.github/workflows/issue-auto-reply.yml new file mode 100644 index 0000000..8515b14 --- /dev/null +++ b/.github/workflows/issue-auto-reply.yml @@ -0,0 +1,28 @@ +name: Auto-Reply to New Issues + +on: + issues: + types: [opened] + +permissions: + issues: write + +jobs: + post-welcome-comment: + name: Post Welcome Comment + runs-on: ubuntu-latest + steps: + - name: Post welcome comment on new issue + uses: actions/github-script@v7 + with: + script: | + const message = `Thank you for raising this issue! Our team will review it soon. + + For more queries or discussions or approval of requests, please join the Discord server for further discussion: [Discord Link](https://discord.com/invite/Yn9g6KuWyA)`; + + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: message + }); \ No newline at end of file