forked from Project-MONAI/MONAI
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1001 Bytes
/
chatops.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
# triggering the workflows by commenting `/black` and `/integration-test`
name: chatops
# currently dispatches /black command to project-monai/monai-code-formatter
on:
issue_comment:
types: [created, edited]
jobs:
dispatch_command:
runs-on: ubuntu-latest
steps:
- name: dispatch
uses: peter-evans/slash-command-dispatch@v4.0.0
with:
token: ${{ secrets.PR_MAINTAIN }}
reaction-token: ${{ secrets.GITHUB_TOKEN }}
reactions: false
config: >
[
{
"command": "black",
"permission": "none",
"issue_type": "pull-request",
"allow_edits": true,
"repository": "project-monai/monai-code-formatter"
},
{
"command": "integration-test",
"permission": "none",
"issue_type": "pull-request",
"allow_edits": true
}
]