Repository navigation
43 lines (37 loc) · 1.45 KB
/
Copy pathpr-welcome.yml
File metadata and controls
43 lines (37 loc) · 1.45 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: PR Welcome
on:
pull_request_target:
types:
- opened
permissions:
pull-requests: write
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- name: Thank contributor
uses: actions/github-script@v8
with:
script: |
const prNumber = context.payload.pull_request.number;
const username = context.payload.pull_request.user.login;
const message =
"## 🎉 Thanks for contributing, @" + username + "!\n\n" +
"Thank you for opening this Pull Request and contributing to **OpenSource-Hunt**! 🚀\n\n" +
" ⭐ Star the repository \n\n" +
"Your PR has been received successfully.\n\n" +
"### 🔍 What happens next?\n\n" +
"Your contribution will be reviewed by an **OpenSource-Hunt maintainer**.\n\n" +
"The maintainer may:\n\n" +
"- ✅ Approve and merge your PR\n" +
"- 💬 Suggest improvements\n" +
"- 🔄 Request changes\n\n" +
"Please keep an eye on this Pull Request for review comments.\n\n" +
"Thank you for helping us build and learn together! 🌊\n\n" +
"> **Build. Learn. Contribute.**";
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
body: message
});