-
Notifications
You must be signed in to change notification settings - Fork 160
49 lines (39 loc) · 1.28 KB
/
issue-welcome.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
44
45
46
47
on:
issues:
types:
- opened
# https://github.com/marketplace/actions/create-or-update-comment
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.issue.number }}
body: |
👋 Thanks for opening this issue!
Get help or engage by:
- `/help` : to print help messages.
- `/assignme` : to assign this issue to you.
# Another way: actions/github-script
# # https://github.com/actions/github-script#comment-on-an-issue
# jobs:
# welcome:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/github-script@v5
# with:
# script: |
# github.rest.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: [
# '👋 Thanks for opening this issue!',
# '',
# 'Get help or engage by:',
# '',
# '- `/help` : to print help messages.',
# '- `/assignme` : to assign this issue to you.',
# ].join('\n')
# })