Skip to content

Commit 6e70c71

Browse files
build: greet on issue and pull request
1 parent b31f29c commit 6e70c71

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/greetings.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: greetings
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
issue_comment:
9+
types:
10+
- created
11+
12+
pull_request_target:
13+
types:
14+
- opened
15+
16+
pull_request_review_comment:
17+
types:
18+
- created
19+
20+
jobs:
21+
22+
greeting:
23+
runs-on: ubuntu-latest
24+
25+
permissions:
26+
issues: write
27+
pull-requests: write
28+
29+
steps:
30+
31+
- uses: actions/first-interaction@v1
32+
with:
33+
repo-token: ${{ secrets.GITHUB_TOKEN }}
34+
35+
issue-message: |
36+
Hello @${{ github.actor }} , thank you for submitting an issue! A project committer will shortly review the issue.
37+
38+
pr-message: |
39+
Thank you @${{ github.actor }} , for contributing to this project, your support is much appreciated. A project committer will shortly review your contribution.

0 commit comments

Comments
 (0)