diff --git a/tests/payload2.json b/tests/payload2.json new file mode 100644 index 00000000..272fc00f --- /dev/null +++ b/tests/payload2.json @@ -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 + } +} \ No newline at end of file diff --git a/tests/send_payload.sh b/tests/send_payload.sh old mode 100644 new mode 100755 index 28b285c7..092e2f58 --- a/tests/send_payload.sh +++ b/tests/send_payload.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file