-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.23 KB
/
command-dispatcher.yml
File metadata and controls
43 lines (40 loc) · 1.23 KB
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: command-dispatcher
on:
issue_comment:
types: [created]
##
## This does not work for private repositories anymore.
## You must use a bot token or you will receive the following error:
## Command 'XYZ' is not configured for the user's permission level 'none'.
##
#permissions:
# actions: write
# contents: write # For executing the repository_dispatch event
# issues: write # For doing the emoji reaction on an issue comment
# pull-requests: write # For doing the emoji reaction on a PR comment
# repository-projects: read
# checks: read
# statuses: read
jobs:
dispatcher:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request }}
steps:
- name: Dispatching command
uses: peter-evans/slash-command-dispatch@v3
with:
reaction-token: ${{ secrets.CS_DEVOPS_BOT_TOKEN }}
token: ${{ secrets.CS_DEVOPS_BOT_TOKEN }}
config: >
[
{
"command": "ql:publish",
"permission": "write",
"issue_type": "pull-request"
},
{
"command": "help",
"permission": "write",
"issue_type": "pull-request"
}
]