-
Notifications
You must be signed in to change notification settings - Fork 17
36 lines (29 loc) · 1 KB
/
main.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
name: Welcome new contributors
on:
pull_request:
types: [opened]
branches: [main]
issues:
types: [opened]
jobs:
welcome-contributor:
runs-on: ubuntu-latest
steps:
- name: Get the PR creator
uses: actions/github-script@v5
with:
script: |
github.event.repository.owner.login;
result-variable: pr_creator
- name: Post a comment on the PR
uses: actions/github-script@v5
with:
script: |
github.issues.createComment({
issue_number: github.event.number,
body: |
Hi @${pr_creator},
Thank you for your first contribution to ${github.repository.name}! We appreciate your time and effort.
We're excited to have you as part of our community, and we encourage you to continue participating. If you have any questions or need help getting started, please don't hesitate to ask.
Welcome to the team!
});