Skip to content

Commit 5e28608

Browse files
committed
fix: AOSSIE-Org#247 added yaml file
1 parent 1e9f3a9 commit 5e28608

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.

0 commit comments

Comments
 (0)