-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (39 loc) · 1.55 KB
/
greet-contributors.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Greet Contributor
on:
issues:
types: [opened]
pull_request_target:
types: [opened]
jobs:
welcome-issue:
permissions: write-all
runs-on: ubuntu-latest
if: ${{ github.event_name == 'issues' }}
steps:
- uses: actions/github-script@v6
if: ${{ github.event.sender.login != github.repository_owner }}
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `### Hello @${{ github.actor }}, Thank you for raising the issue.
Soon the maintainers/owner will review it and offer feedback and suggestions. If you enjoy contributing to the project, please consider giving it a star ⭐.`
})
welcome-pull_request:
permissions: write-all
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request_target' }}
steps:
- uses: actions/github-script@v6
if: ${{ github.event.sender.login != github.repository_owner }}
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `### Hello @${{ github.actor }}, Thank you for raising a pull request.
Soon the maintainers/owner will review it and offer feedback and suggestions. If you enjoy contributing to the project, please consider giving it a star ⭐.`
})