Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
update payload script to send different kinds of payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu committed Aug 23, 2019
1 parent 8e7e26a commit 8d3ceb7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions tests/payload2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"action": "opened",
"issue": {
"number": 5,
"title": "TESTING THIS",
"body": "Testing the app with the payload."
},
"repository": {
"full_name": "abcdefgs0324/Issue-Label-Bot",
"private": false
},
"installation": {
"id": 1585757
}
}
3 changes: 2 additions & 1 deletion tests/send_payload.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
curl -X POST -H "Content-Type: application/json" -H "X-GitHub-Event: issues" -H "X-Hub-Signature: sha1=fakedontneedfortesting" -d "@payload.json" http://localhost:3000/event_handler
curl -X POST -H "Content-Type: application/json" -H "X-GitHub-Event: issues" -H "X-Hub-Signature: sha1=fakedontneedfortesting" -d "@payload.json" http://localhost:3000/event_handler
curl -X POST -H "Content-Type: application/json" -H "X-GitHub-Event: issues" -H "X-Hub-Signature: sha1=fakedontneedfortesting" -d "@payload2.json" http://localhost:3000/event_handler

0 comments on commit 8d3ceb7

Please sign in to comment.