-
Notifications
You must be signed in to change notification settings - Fork 27
23 lines (22 loc) · 1.03 KB
/
pullReqOpen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Pull Request Welcome Comment
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.MY_SEC }}
script: |
const { owner, repo, number } = context.issue;
const author = context.payload.sender.login;
const commentBody = `Hello @${ author }, thank you for your pull request! We will review it shortly. 😇❣️
Your contributions help us grow and improve our project. Please make sure you have read and followed our [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md).
Your efforts are appreciated, and we value your participation in our community. Don't forget to ⭐ our repository!
Happy coding!✨`;
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
console.log('Commented on PR');