-
Notifications
You must be signed in to change notification settings - Fork 89
26 lines (25 loc) · 1.2 KB
/
pr_comment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Pull Request related comments
on:
pull_request_target:
types:
- opened
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Comment on Opening Pull Request
uses: actions/github-script@v4
with:
github-token: ${{ secrets.APIVerse_SECRET }}
script: |
const {owner, repo, number} = context.issue;
const commentAuthor = context.payload.sender.login;
const commentBody = `Hey @${ commentAuthor }, Thank you for creating PR! We will review it super soon. 😇❣️
As we continue to evolve and innovate, we encourage you to share your ideas, feedback, and code to help us push the boundaries of what's possible in the world of APIs🚀.
We hope you have followed [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md).
Thank you for being an essential part of our community. Together, we'll keep building amazing things!
Don’t forget to ⭐ our repository!
Happy Coding!✨
Will See you soon❣️ `;
await github.issues.createComment({owner, repo, issue_number : number, body: commentBody});
console.log('Commented on PR');