Skip to content

Commit 8d2f116

Browse files
committed
Modify Add automated welcome message for new issues
1 parent 9cb3898 commit 8d2f116

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/issue-auto-reply.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@ permissions:
1010
jobs:
1111
welcome:
1212
runs-on: ubuntu-latest
13+
if: ${{ github.event.issue.pull_request == null }}
1314
steps:
1415
- name: Post welcome comment
1516
uses: actions/github-script@v7
1617
with:
1718
script: |
18-
github.rest.issues.createComment({
19-
issue_number: context.issue.number,
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({
2025
owner: context.repo.owner,
2126
repo: context.repo.repo,
22-
body: 'Thank you for raising this issue! Our team will review it soon.\n\nFor more queries or discussions or approval of requests, please join the Discord server for further discussion: [Discord Link](https://discord.com/invite/Yn9g6KuWyA)'
23-
})
27+
issue_number,
28+
body: message
29+
});

0 commit comments

Comments
 (0)