Skip to content

Commit 6a3394d

Browse files
committed
Auto Reply to New Issues
1 parent f5099ee commit 6a3394d

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+
comment:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Post Welcome Comment
15+
uses: actions/github-script@v7
16+
with:
17+
script: |
18+
const issue_number = context.issue.number;
19+
const body = `
20+
Thank you for raising this issue! Our team will review it soon.
21+
22+
For more queries, discussions, or approval of requests, please join our Discord server for further discussion: [Discord Link](https://discord.com/invite/Yn9g6KuWyA)
23+
`;
24+
await github.rest.issues.createComment({
25+
...context.repo,
26+
issue_number,
27+
body
28+
});

0 commit comments

Comments
 (0)