mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-14 01:24:54 +00:00
Merge pull request #447 from moorereason/feature/docs-toc
Add a table of contents to some of the docs
This commit is contained in:
commit
47e5ae5527
2 changed files with 32 additions and 1 deletions
|
@ -1,6 +1,22 @@
|
||||||
# Hook examples
|
# Hook examples
|
||||||
This page is still work in progress. Feel free to contribute!
|
This page is still work in progress. Feel free to contribute!
|
||||||
|
|
||||||
|
### Table of Contents
|
||||||
|
|
||||||
|
* [Incoming Github webhook](#incoming-github-webhook)
|
||||||
|
* [Incoming Bitbucket webhook](#incoming-bitbucket-webhook)
|
||||||
|
* [Incoming Gitlab webhook](#incoming-gitlab-webhook)
|
||||||
|
* [Incoming Gogs webhook](#incoming-gogs-webhook)
|
||||||
|
* [Incoming Gitea webhook](#incoming-gitea-webhook)
|
||||||
|
* [Slack slash command](#slack-slash-command)
|
||||||
|
* [A simple webhook with a secret key in GET query](#a-simple-webhook-with-a-secret-key-in-get-query)
|
||||||
|
* [JIRA Webhooks](#jira-webhooks)
|
||||||
|
* [Pass File-to-command sample](#pass-file-to-command-sample)
|
||||||
|
* [Incoming Scalr Webhook](#incoming-scalr-webhook)
|
||||||
|
* [Travis CI webhook](#travis-ci-webhook)
|
||||||
|
* [XML Payload](#xml-payload)
|
||||||
|
* [Multipart Form Data](#multipart-form-data)
|
||||||
|
|
||||||
## Incoming Github webhook
|
## Incoming Github webhook
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
|
|
|
@ -1,5 +1,20 @@
|
||||||
# Hook rules
|
# Hook rules
|
||||||
|
|
||||||
|
### Table of Contents
|
||||||
|
|
||||||
|
* [And](#and)
|
||||||
|
* [Or](#or)
|
||||||
|
* [Not](#not)
|
||||||
|
* [Multi-level](#multi-level)
|
||||||
|
* [Match](#match)
|
||||||
|
* [Match value](#match-value)
|
||||||
|
* [Match regex](#match-regex)
|
||||||
|
* [Match payload-hash-sha1](#match-payload-hash-sha1)
|
||||||
|
* [Match payload-hash-sha256](#match-payload-hash-sha256)
|
||||||
|
* [Match payload-hash-sha512](#match-payload-hash-sha512)
|
||||||
|
* [Match Whitelisted IP range](#match-whitelisted-ip-range)
|
||||||
|
* [Match scalr-signature](#match-scalr-signature)
|
||||||
|
|
||||||
## And
|
## And
|
||||||
*And rule* will evaluate to _true_, if and only if all of the sub rules evaluate to _true_.
|
*And rule* will evaluate to _true_, if and only if all of the sub rules evaluate to _true_.
|
||||||
```json
|
```json
|
||||||
|
@ -267,4 +282,4 @@ Given the time check make sure that NTP is enabled on both your Scalr and webhoo
|
||||||
"secret": "Scalr-provided signing key"
|
"secret": "Scalr-provided signing key"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue