forked from steam-bell-92/python-mini-project
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 1.04 KB
/
Copy pathpr-merged-thanks.yml
File metadata and controls
34 lines (26 loc) · 1.04 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
name: PR Merge Thank You
on:
pull_request_target:
types: [closed]
jobs:
thank-contributor:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
steps:
- name: Thank contributor for the merge
uses: actions/github-script@v7
with:
script: |
await github.rest.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `🎉 **Thank you for your contribution!**
Your Pull Request has been merged successfully.
We appreciate the time and effort you put into improving this project. Contributions like yours help the repository grow and stay useful for everyone.
If you'd like to contribute again, please check the open issues and make sure you are assigned before opening another Pull Request.
Thanks again for your support! 🙌`
});