Skip to content

Commit 2912542

Browse files
committed
yml file for comment on PR added
1 parent 9c9cad9 commit 2912542

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Comment on New Pull Requests
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
comment-on-pr:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
- name: Add Comment to New PR
14+
uses: actions/github-script@v6
15+
with:
16+
github-token: ${{ secrets.GITHUB_TOKEN }}
17+
script: |
18+
const commentMessage = `
19+
Thank you for creating this PR! 🎉 We'll look into it asap.
20+
21+
- [ ] Make sure on the right-hand side under reviewer you select @sanjay-kv or @HimangshuSharma01, so review can be faster
22+
- [ ] To appreciate your contribution I will provide free GitHub Profile review: Use Coupon: \`recodehive\` to get it free 👇🏻
23+
- [ ] Get Free [Profile Review](https://topmate.io/sanjaykv/1135910/pay)
24+
- [ ] Don't forget to star the repo ✨
25+
- [ ] You can connect with me on LinkedIn to learn more about [Github](https://www.linkedin.com/in/sanjay-k-v/)
26+
27+
Your contributions are highly appreciated! 😊 Don't forget to follow me @sanjay-kv
28+
\`More surprise when you raise PR\`
29+
`;
30+
31+
await github.rest.issues.createComment({
32+
owner: context.repo.owner,
33+
repo: context.repo.repo,
34+
issue_number: context.issue.number,
35+
body: commentMessage
36+
});
37+
38+
console.log(`Commented on PR #${context.issue.number}`);

0 commit comments

Comments
 (0)