File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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}`);
You can’t perform that action at this time.
0 commit comments