-
-
Notifications
You must be signed in to change notification settings - Fork 347
81 lines (70 loc) · 3.06 KB
/
greet_contributors.yml
File metadata and controls
81 lines (70 loc) · 3.06 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Greet Contributors
on:
issues:
types: [opened, closed]
pull_request_target:
types: [opened, closed]
permissions:
issues: write
pull-requests: write
contents: read
jobs:
greet:
runs-on: ubuntu-latest
steps:
- name: Handle Opened Issues
if: github.event_name == 'issues' && github.event.action == 'opened'
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
👋 **Hello @${{ github.actor }}!**
Thank you for opening this issue. Our team will review it soon. 🚀
- If you can, please provide more details like steps to reproduce, expected vs. actual behavior, and screenshots (if applicable). 📌
We appreciate your contribution! 💡
reactions: heart
- name: Handle Closed Issues
if: github.event_name == 'issues' && github.event.action == 'closed'
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
🔒 **Issue Closed - Thank You, @${{ github.actor }}!**
This issue has been resolved or is no longer relevant.
- If you have further questions, feel free to open a new issue. 💡
Thanks for helping improve the project! 🚀
reactions: |
heart
hooray
- name: Handle Opened PRs
if: github.event_name == 'pull_request_target' && github.event.action == 'opened'
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
🎉 **Welcome @${{ github.actor }}!**
Thank you for your pull request! Our team will review it soon. 🔍
- Please ensure your PR follows the contribution guidelines. ✅
- All automated tests should pass before merging. 🔄
- If this PR fixes an issue, link it in the description. 🔗
We appreciate your contribution! 🚀
reactions: |
heart
- name: Handle Closed PRs
if: github.event_name == 'pull_request_target' && github.event.action == 'closed'
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
✅ **PR Closed - Thank You, @${{ github.event.pull_request.user.login }}!**
- If this PR was merged: **Congratulations! Your contribution is now part of the project.** 🚀
- If this PR was closed without merging: **Don’t worry! You can always improve it and submit again.** 💪
We appreciate your effort and look forward to more contributions from you! 🤝
reactions: |
heart
hooray
rocket