-
Notifications
You must be signed in to change notification settings - Fork 140
26 lines (22 loc) · 1.1 KB
/
congratulations.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: Congratulate Contributors
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
congratulate:
runs-on: ubuntu-latest
steps:
- name: Congratulate on Issue
if: github.event_name == 'issues'
run: |
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Content-Type: application/json" \
-d '{"body": "🎉 **Awesome!** @${{ github.event.issue.user.login }}, thank you for opening this issue! Your contribution helps us improve and grow. We’re thrilled to have you with us! 🚀"}' \
"${{ github.event.issue.url }}/comments"
- name: Congratulate on Pull Request
if: github.event_name == 'pull_request'
run: |
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Content-Type: application/json" \
-d '{"body": "🌟 **Fantastic!** @${{ github.event.pull_request.user.login }}, thank you for submitting this pull request! Your efforts are helping us make a better product. We appreciate your hard work and dedication! 🙌"}' \
"${{ github.event.pull_request.url }}/comments"