mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-05 12:12:29 +00:00
Add per-hook HTTP method restrictions
This commit is contained in:
parent
66562fdb41
commit
3414f34025
6 changed files with 217 additions and 184 deletions
|
@ -3,6 +3,7 @@
|
|||
"id": "github",
|
||||
"execute-command": "{{ .Hookecho }}",
|
||||
"command-working-directory": "/",
|
||||
"http-methods": ["POST"],
|
||||
"include-command-output-in-response": true,
|
||||
"trigger-rule-mismatch-http-response-code": 400,
|
||||
"pass-environment-to-command":
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
- id: github
|
||||
http-methods:
|
||||
- POST
|
||||
trigger-rule:
|
||||
and:
|
||||
- match:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue