Skip to content

Commit cf6f798

Browse files
authored
Merge pull request #194 from Nel4Nelson/main
Add automated welcome message for new issues
2 parents 8d5b3b5 + 8d2f116 commit cf6f798

File tree

1 file changed

+29
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)