Skip to content

Commit d33a35d

Browse files
author
Neeru
committed
Commit changes
1 parent dcabe42 commit d33a35d

3 files changed

Lines changed: 104 additions & 0 deletions

File tree

.github/pull_request_template.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## 📌 Description
2+
3+
Please include a clear and concise description of what this PR changes.
4+
5+
Fixes: # (issue number, if applicable)
6+
7+
---
8+
9+
## 🔧 Type of Change
10+
11+
Please mark the relevant option(s):
12+
13+
- [ ] 🐛 Bug fix
14+
- [ ] ✨ New feature
15+
- [ ] 📝 Documentation update
16+
- [ ] ♻️ Refactor / Code cleanup
17+
- [ ] 🎨 UI / Styling change
18+
- [ ] 🚀 Other (please describe):
19+
20+
---
21+
22+
## 🧪 How Has This Been Tested?
23+
24+
Describe the tests you ran to verify your changes.
25+
26+
- [ ] Manual testing
27+
- [ ] Automated tests
28+
- [ ] Not tested (please explain why)
29+
30+
---
31+
32+
## 📸 Screenshots (if applicable)
33+
34+
Add screenshots or screen recordings to show UI changes.
35+
36+
---
37+
38+
## ✅ Checklist
39+
40+
Please confirm the following:
41+
42+
- [ ] My code follows the project’s coding style
43+
- [ ] I have tested my changes
44+
- [ ] I have updated documentation where necessary
45+
- [ ] This PR does not introduce breaking changes
46+
47+
---
48+
49+
## 📝 Additional Notes
50+
51+
Add any other context or information for reviewers.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 commentBody1 = `### 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+
await github.rest.issues.createComment({
21+
owner: context.repo.owner,
22+
repo: context.repo.repo,
23+
issue_number: issueNumber,
24+
body: commentBody1
25+
});
26+
console.log('Comment added successfully.');
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Auto Comment on PR
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
comment:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Comment on PR
16+
uses: actions/github-script@v6
17+
with:
18+
script: |
19+
const prNumber = context.issue.number;
20+
const commentBody = `### Thanks for creating a PR for your Issue! ☺️\n\nWe'll review it as soon as possible.\nIn the meantime, please double-check the **file changes** and ensure that **all commits** are accurate.\n\nIf there are any **unresolved review comments**, feel free to resolve them. 🙌🏼`;
21+
await github.rest.issues.createComment({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
issue_number: prNumber,
25+
body: commentBody
26+
});
27+
console.log('Comment added successfully.');

0 commit comments

Comments
 (0)