-
Notifications
You must be signed in to change notification settings - Fork 76
46 lines (39 loc) · 1.15 KB
/
issue-cmds.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
on:
issue_comment:
types:
- created
jobs:
assignme:
name: /assignme
runs-on: ubuntu-latest
if: startsWith(github.event.comment.body, '/assignme')
steps:
- uses: xt0rted/slash-command-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: assignme
reaction: "true"
reaction-type: "rocket"
permission-level: read
- uses: actions-ecosystem/action-add-assignees@v1
with:
github_token: ${{ secrets.github_token }}
assignees: ${{ github.actor }}
help:
name: /help
runs-on: ubuntu-latest
if: startsWith(github.event.comment.body, '/help')
steps:
- uses: xt0rted/slash-command-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: help
reaction: "true"
reaction-type: "rocket"
- uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.issue.number }}
body: |
Get help or engage by:
- `/help` : to print help messages.
- `/assignme` : to assign this issue to you.