-
-
Notifications
You must be signed in to change notification settings - Fork 64
29 lines (24 loc) · 857 Bytes
/
issue-auto-reply.yml
File metadata and controls
29 lines (24 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Issue Auto Reply
on:
issues:
types: [opened]
permissions:
issues: write
jobs:
welcome:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request == null }}
steps:
- name: Post welcome comment
uses: actions/github-script@v7
with:
script: |
const issue_number = context.payload.issue.number;
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: https://discord.com/invite/Yn9g6KuWyA`;
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number,
body: message
});