forked from wasmerio/Python-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (23 loc) · 818 Bytes
/
issue-auto-reply.yml
File metadata and controls
28 lines (23 loc) · 818 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
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
});