Skip to content

Commit

Permalink
Add a ping webhook VCR record example
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Feb 9, 2020
1 parent 2939770 commit 9d39cae
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ repos:
- id: check-json
- id: check-symlinks
- id: check-yaml
args:
- --allow-multiple-documents
- id: detect-private-key

# Heavy checks:
Expand Down
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ repos:
- id: check-json
- id: check-symlinks
- id: check-yaml
args:
- --allow-multiple-documents
- id: detect-private-key

# Heavy checks:
Expand Down
13 changes: 13 additions & 0 deletions ping_event.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
# This needs to be a sequence of mappings;
# it cannot be just a mapping because headers
# may occur multiple times
- Content-Type: application/json
- X-GitHub-Delivery: 2791443c-641a-40fa-836d-031a26f0d45f
- X-GitHub-Event: ping
---
{
"hook": {"app_id": 0},
"hook_id": 0,
"zen": "Hey zen!"
}

0 comments on commit 9d39cae

Please sign in to comment.