Skip to content

Commit d527e36

Browse files
authored
Merge pull request #491 from devanshsonii/main
Added the Auto Reply Bot for new issues.
2 parents 07480b0 + c4798e7 commit d527e36

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Auto-Reply to New Issues
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
post-welcome-comment:
12+
name: Post Welcome Comment
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Post welcome comment on new issue
16+
uses: actions/github-script@v7
17+
with:
18+
script: |
19+
const message = `Thank you for raising this issue! Our team will review it soon.
20+
21+
For more queries or discussions or approval of requests, please join the Discord server for further discussion: [Discord Link](https://discord.com/invite/Yn9g6KuWyA)`;
22+
23+
await github.rest.issues.createComment({
24+
owner: context.repo.owner,
25+
repo: context.repo.repo,
26+
issue_number: context.issue.number,
27+
body: message
28+
});

0 commit comments

Comments
 (0)