mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-21 01:15:37 +00:00
added slack slash command
parent
d59fe71955
commit
50856ca475
1 changed files with 25 additions and 0 deletions
|
|
@ -56,3 +56,28 @@ This page is still work in progress. Feel free to contribute!
|
|||
}
|
||||
]
|
||||
```
|
||||
|
||||
# Slack slash command
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "redeploy-webhook",
|
||||
"execute-command": "/home/adnan/redeploy-go-webhook.sh",
|
||||
"command-working-directory": "/home/adnan/go",
|
||||
"response-message": "Executing redeploy script",
|
||||
"trigger-rule":
|
||||
{
|
||||
"match":
|
||||
{
|
||||
"type": "value",
|
||||
"value": "<YOUR-GENERATED-TOKEN>",
|
||||
"parameter":
|
||||
{
|
||||
"source": "payload",
|
||||
"name": "token"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue