{"action":"created","comment":{"url":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/comments/132508586","pull_request_review_id":55591055,"id":132508586,"diff_hunk":"@@ -1,6 +1,6 @@\n {\n   \"name\": \"gambit-conversations\",\n-  \"version\": \"0.2.2\",\n+  \"version\": \"0.3.0\",","path":"package.json","position":4,"original_position":4,"commit_id":"beb1c9b852fce37aaa8bd1b6203f3ed1495316bc","original_commit_id":"beb1c9b852fce37aaa8bd1b6203f3ed1495316bc","user":{"login":"aaronschachter","id":1236811,"avatar_url":"https://avatars2.githubusercontent.com/u/1236811?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronschachter","html_url":"https://github.com/aaronschachter","followers_url":"https://api.github.com/users/aaronschachter/followers","following_url":"https://api.github.com/users/aaronschachter/following{/other_user}","gists_url":"https://api.github.com/users/aaronschachter/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronschachter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronschachter/subscriptions","organizations_url":"https://api.github.com/users/aaronschachter/orgs","repos_url":"https://api.github.com/users/aaronschachter/repos","events_url":"https://api.github.com/users/aaronschachter/events{/privacy}","received_events_url":"https://api.github.com/users/aaronschachter/received_events","type":"User","site_admin":false},"body":"It's a little unclear to me in http://wunderflow.wunder.io/ when we change this version number, but wouldn't it be at the [same time we create the tag? (after merge)](http://wunderflow.wunder.io/#release)","created_at":"2017-08-10T16:51:25Z","updated_at":"2017-08-10T16:52:46Z","html_url":"https://github.com/DoSomething/gambit-conversations/pull/48#discussion_r132508586","pull_request_url":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/comments/132508586"},"html":{"href":"https://github.com/DoSomething/gambit-conversations/pull/48#discussion_r132508586"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/48","id":134917678,"html_url":"https://github.com/DoSomething/gambit-conversations/pull/48","diff_url":"https://github.com/DoSomething/gambit-conversations/pull/48.diff","patch_url":"https://github.com/DoSomething/gambit-conversations/pull/48.patch","issue_url":"https://api.github.com/repos/DoSomething/gambit-conversations/issues/48","number":48,"state":"open","locked":false,"title":"Import message","user":{"login":"rapala61","id":863301,"avatar_url":"https://avatars3.githubusercontent.com/u/863301?v=4","gravatar_id":"","url":"https://api.github.com/users/rapala61","html_url":"https://github.com/rapala61","followers_url":"https://api.github.com/users/rapala61/followers","following_url":"https://api.github.com/users/rapala61/following{/other_user}","gists_url":"https://api.github.com/users/rapala61/gists{/gist_id}","starred_url":"https://api.github.com/users/rapala61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapala61/subscriptions","organizations_url":"https://api.github.com/users/rapala61/orgs","repos_url":"https://api.github.com/users/rapala61/repos","events_url":"https://api.github.com/users/rapala61/events{/privacy}","received_events_url":"https://api.github.com/users/rapala61/received_events","type":"User","site_admin":false},"body":"## Summary\r\nThis PR implements the `import-message` endpoint. This endpoint is intended to import a message for a given user conversation without sending it to the user itself. As of now, the only medium accepted is `customerio`. I'm creating the PR for testing and review purposes, its not to be merged yet, until everyone feels like is the right time and its ready.\r\n\r\n## What's not tested yet\r\n- Yes/No responses after the conversation/message update\r\n\r\n## Testing\r\nYou can test this in 2 ways:\r\n\r\n1. By sending a webhook request via Customer.io - Complicated if you are not familiar with the steps, which include looking at Contentful, Customer.io, ngrok, etc.\r\n\r\n2. Using Postman, sent a POST request to your running Convo API: `http://puppet:totallysecret@<your localhost>/api/v1/import-message?medium=customerio`.\r\n    - The `Content-Type` should be `application/json` and the payload should be: \r\n```\r\n{\r\n\t\"broadcast_id\": \"7zU0Mb1k9GkWWI40o06Mic\",\r\n\t\"phone\": \"<THE PHONE NUMBER, EXP: +5556667788>\",\r\n\t\"fields\": [\r\n\t\t{\r\n\t\t\t\"customer.first_name\": \"<YOUR NAME>\"\r\n\t\t}\r\n\t]\r\n}\r\n```\r\n\r\n## Success\r\n- If a conversation for this user exists, the conversation should be updated and a new outbound message should have been created, as per this specs: #34 \r\n\r\n## Relevant Ticket\r\n- Fixes #34","created_at":"2017-08-09T15:10:15Z","updated_at":"2017-08-10T16:52:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69eda69006fb9cc69bd00471d9a23991012615e4","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/48/commits","review_comments_url":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/48/comments","review_comment_url":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoSomething/gambit-conversations/issues/48/comments","statuses_url":"https://api.github.com/repos/DoSomething/gambit-conversations/statuses/beb1c9b852fce37aaa8bd1b6203f3ed1495316bc","head":{"label":"DoSomething:import-message","ref":"import-message","sha":"beb1c9b852fce37aaa8bd1b6203f3ed1495316bc","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars2.githubusercontent.com/u/731685?v=4","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":93206005,"name":"gambit-conversations","full_name":"DoSomething/gambit-conversations","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars2.githubusercontent.com/u/731685?v=4","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/gambit-conversations","description":":black_joker: A multi-platform DoSomething.org chatbot API - stores Conversations and Messages","fork":false,"url":"https://api.github.com/repos/DoSomething/gambit-conversations","forks_url":"https://api.github.com/repos/DoSomething/gambit-conversations/forks","keys_url":"https://api.github.com/repos/DoSomething/gambit-conversations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/gambit-conversations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/gambit-conversations/teams","hooks_url":"https://api.github.com/repos/DoSomething/gambit-conversations/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/gambit-conversations/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/gambit-conversations/events","assignees_url":"https://api.github.com/repos/DoSomething/gambit-conversations/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/gambit-conversations/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/gambit-conversations/tags","blobs_url":"https://api.github.com/repos/DoSomething/gambit-conversations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/gambit-conversations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/gambit-conversations/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/gambit-conversations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/gambit-conversations/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/gambit-conversations/languages","stargazers_url":"https://api.github.com/repos/DoSomething/gambit-conversations/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/gambit-conversations/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/gambit-conversations/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/gambit-conversations/subscription","commits_url":"https://api.github.com/repos/DoSomething/gambit-conversations/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/gambit-conversations/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/gambit-conversations/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/gambit-conversations/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/gambit-conversations/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/gambit-conversations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/gambit-conversations/merges","archive_url":"https://api.github.com/repos/DoSomething/gambit-conversations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/gambit-conversations/downloads","issues_url":"https://api.github.com/repos/DoSomething/gambit-conversations/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/gambit-conversations/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/gambit-conversations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/gambit-conversations/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/gambit-conversations/releases{/id}","deployments_url":"https://api.github.com/repos/DoSomething/gambit-conversations/deployments","created_at":"2017-06-02T21:42:25Z","updated_at":"2017-08-01T18:42:57Z","pushed_at":"2017-08-09T21:38:49Z","git_url":"git://github.com/DoSomething/gambit-conversations.git","ssh_url":"git@github.com:DoSomething/gambit-conversations.git","clone_url":"https://github.com/DoSomething/gambit-conversations.git","svn_url":"https://github.com/DoSomething/gambit-conversations","homepage":"","size":261,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"DoSomething:master","ref":"master","sha":"24ab51ae32aa20d8470614de330b2756f000a812","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars2.githubusercontent.com/u/731685?v=4","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":93206005,"name":"gambit-conversations","full_name":"DoSomething/gambit-conversations","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars2.githubusercontent.com/u/731685?v=4","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/gambit-conversations","description":":black_joker: A multi-platform DoSomething.org chatbot API - stores Conversations and Messages","fork":false,"url":"https://api.github.com/repos/DoSomething/gambit-conversations","forks_url":"https://api.github.com/repos/DoSomething/gambit-conversations/forks","keys_url":"https://api.github.com/repos/DoSomething/gambit-conversations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/gambit-conversations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/gambit-conversations/teams","hooks_url":"https://api.github.com/repos/DoSomething/gambit-conversations/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/gambit-conversations/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/gambit-conversations/events","assignees_url":"https://api.github.com/repos/DoSomething/gambit-conversations/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/gambit-conversations/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/gambit-conversations/tags","blobs_url":"https://api.github.com/repos/DoSomething/gambit-conversations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/gambit-conversations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/gambit-conversations/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/gambit-conversations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/gambit-conversations/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/gambit-conversations/languages","stargazers_url":"https://api.github.com/repos/DoSomething/gambit-conversations/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/gambit-conversations/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/gambit-conversations/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/gambit-conversations/subscription","commits_url":"https://api.github.com/repos/DoSomething/gambit-conversations/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/gambit-conversations/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/gambit-conversations/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/gambit-conversations/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/gambit-conversations/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/gambit-conversations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/gambit-conversations/merges","archive_url":"https://api.github.com/repos/DoSomething/gambit-conversations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/gambit-conversations/downloads","issues_url":"https://api.github.com/repos/DoSomething/gambit-conversations/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/gambit-conversations/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/gambit-conversations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/gambit-conversations/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/gambit-conversations/releases{/id}","deployments_url":"https://api.github.com/repos/DoSomething/gambit-conversations/deployments","created_at":"2017-06-02T21:42:25Z","updated_at":"2017-08-01T18:42:57Z","pushed_at":"2017-08-09T21:38:49Z","git_url":"git://github.com/DoSomething/gambit-conversations.git","ssh_url":"git@github.com:DoSomething/gambit-conversations.git","clone_url":"https://github.com/DoSomething/gambit-conversations.git","svn_url":"https://github.com/DoSomething/gambit-conversations","homepage":"","size":261,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/48"},"html":{"href":"https://github.com/DoSomething/gambit-conversations/pull/48"},"issue":{"href":"https://api.github.com/repos/DoSomething/gambit-conversations/issues/48"},"comments":{"href":"https://api.github.com/repos/DoSomething/gambit-conversations/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/gambit-conversations/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/gambit-conversations/statuses/beb1c9b852fce37aaa8bd1b6203f3ed1495316bc"}}}}
{"actor":{"display_login":"aaronschachter"}}