-
Notifications
You must be signed in to change notification settings - Fork 30
33 lines (30 loc) · 1.16 KB
/
pr-thank-you.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
27
28
29
30
31
32
33
name: PR Thank You Bot
on:
pull_request:
types: [opened, closed]
jobs:
thank_you:
runs-on: ubuntu-latest
steps:
- name: Send Welcome Comment
if: github.event.action == 'opened'
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Thank you for your contribution! 🎉 We appreciate your effort in making our project better. Please provide any additional information if needed.'
})
- name: Send Merge Comment
if: github.event.action == 'closed' && github.event.pull_request.merged == true
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Thank you for merging this PR! 🙌 Your contribution has been successfully integrated into the project. Great job!'
})