Skip to content

Commit 3992acc

Browse files
Add GitHub Action to comment on new pull requests
This workflow triggers on newly opened pull requests and posts a thank-you comment to the author. It aims to enhance contributor engagement by acknowledging their submissions promptly.
1 parent 1d53778 commit 3992acc

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Thank You Comment on New Pull Request
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
thank-you-pr:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Post thank you comment for the pull request author
13+
uses: actions/github-script@v6
14+
with:
15+
script: |
16+
github.issues.createComment({
17+
issue_number: context.issue.number,
18+
owner: context.repo.owner,
19+
repo: context.repo.repo,
20+
body: `Thank you @${context.payload.pull_request.user.login} for submitting this pull request! We greatly appreciate your contribution. Our team will review your PR soon. 🚀`
21+
});

0 commit comments

Comments
 (0)