-
Notifications
You must be signed in to change notification settings - Fork 23
48 lines (48 loc) · 1.32 KB
/
command-dispatcher.yaml
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
48
name: command-dispatch
on:
issue_comment:
types: [created]
permissions:
contents: write
pull-requests: write
actions: write
#permissions: write-all
jobs:
slashCommandDispatch:
runs-on: ubuntu-latest
if: |
contains(FromJSON('["carlspring", "steve-todorov"]'), github.triggering_actor) &&
github.event.issue.pull_request
steps:
- name: Slash Command Dispatch
uses: peter-evans/slash-command-dispatch@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
config: >
[
{
"command": "merge-snapshot",
"permission": "write",
"issue_type": "pull-request"
},
{
"command": "merge-release",
"permission": "write",
"issue_type": "pull-request"
},
{
"command": "update-release",
"permission": "write",
"issue_type": "pull-request"
},
{
"command": "deploy-pr",
"permission": "write",
"issue_type": "pull-request"
},
{
"command": "help",
"permission": "write",
"issue_type": "pull-request"
}
]