Skip to content

Commit db633fd

Browse files
committed
build: add thank you bot
Reduce the number of manual work. Signed-off-by: Daniel Wagner <wagi@kernel.org>
1 parent dfc5cdf commit db633fd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/thanks.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Comment on Merged PR
3+
4+
on:
5+
pull_request:
6+
types:
7+
- closed
8+
9+
jobs:
10+
comment-on-merge:
11+
if: github.event.pull_request.merged == true
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
17+
steps:
18+
- name: Comment on merged PR
19+
uses: actions/github-script@v7
20+
with:
21+
script: |
22+
const prNumber = context.payload.pull_request.number;
23+
const comment = 'Thanks for your contribution!';
24+
25+
await github.rest.issues.createComment({
26+
owner: context.repo.owner,
27+
repo: context.repo.repo,
28+
issue_number: prNumber,
29+
body: comment,
30+
});

0 commit comments

Comments
 (0)