Skip to content

Commit 3a4a64e

Browse files
committed
issue create automate message added
1 parent cc9b847 commit 3a4a64e

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 Comment on Issue
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: Add Comment to Issue
15+
uses: actions/github-script@v6
16+
with:
17+
script: |
18+
const issueNumber = context.issue.number;
19+
const commentBody = `### Thank you for raising this issue!\n We'll review it as soon as possible. We truly appreciate your contributions! ✨\n\n> Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊`;
20+
21+
await github.rest.issues.createComment({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
issue_number: issueNumber,
25+
body: commentBody
26+
});
27+
28+
console.log('Comment added successfully.');

0 commit comments

Comments
 (0)