File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Greet Contributors
2
+
3
+ on :
4
+ issues :
5
+ types : [opened]
6
+ pull_request :
7
+ types : [opened]
8
+
9
+ jobs :
10
+ greet :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Print GitHub context
15
+ run : echo "${{ toJson(github) }}"
16
+
17
+ - name : Send greeting message for issues
18
+ if : github.event_name == 'issues'
19
+ uses : actions-ecosystem/action-create-comment@v1
20
+ with :
21
+ github_token : ${{ secrets.GITHUB_TOKEN }}
22
+ repo : ${{ github.repository }}
23
+ number : ${{ github.event.issue.number }}
24
+ body : |
25
+ Hi @${{ github.event.issue.user.login }}!
26
+ Thanks for opening this issue, would you like to work on this?
27
+
28
+ - name : Send greeting message for PRs
29
+ if : github.event_name == 'pull_request'
30
+ uses : actions-ecosystem/action-create-comment@v1
31
+ with :
32
+ github_token : ${{ secrets.GITHUB_TOKEN }}
33
+ repo : ${{ github.repository }}
34
+ number : ${{ github.event.pull_request.number }}
35
+ body : |
36
+ Hi @${{ github.event.pull_request.user.login }}! 🎉
37
+ Thanks for opening this pull request. We appreciate your contribution.
You can’t perform that action at this time.
0 commit comments