We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfc5cdf commit db633fdCopy full SHA for db633fd
.github/workflows/thanks.yml
@@ -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