{"action":"created","issue":{"url":"https://api.github.com/repos/DoSomething/gambit/issues/717","repository_url":"https://api.github.com/repos/DoSomething/gambit","labels_url":"https://api.github.com/repos/DoSomething/gambit/issues/717/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/gambit/issues/717/comments","events_url":"https://api.github.com/repos/DoSomething/gambit/issues/717/events","html_url":"https://github.com/DoSomething/gambit/issues/717","id":187153690,"number":717,"title":"Update logic for Yes response","user":{"login":"aaronschachter","id":1236811,"avatar_url":"https://avatars.githubusercontent.com/u/1236811?v=3","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},"labels":[{"id":475477967,"url":"https://api.github.com/repos/DoSomething/gambit/labels/%23campaignbot","name":"#campaignbot","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/DoSomething/gambit/milestones/5","html_url":"https://github.com/DoSomething/gambit/milestones/CampaignBot%201.1","labels_url":"https://api.github.com/repos/DoSomething/gambit/milestones/5/labels","id":2115420,"number":5,"title":"CampaignBot 1.1","description":"Support Signup broadcasts","creator":{"login":"aaronschachter","id":1236811,"avatar_url":"https://avatars.githubusercontent.com/u/1236811?v=3","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},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2016-11-04T18:01:49Z","updated_at":"2016-11-04T18:02:15Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-11-03T18:32:48Z","updated_at":"2016-11-08T23:06:41Z","closed_at":null,"body":"Current `isYesResponse` function (that we used for \"Can you send photos from your phone?\" legacy `/yes-no-path` endpoint) [works this way:](https://github.com/DoSomething/gambit/blob/031b37ace0fdb650ac516aabc9b3d9b19cd714ab/lib/helpers.js#L163\r\n)\r\n\r\nIf the first word isn't  'N', 'NA', 'NAH', 'NO', or 'NIL' (not case sensitive)-- consider the response a Yes. This added in #598 was to handle #513 -- adding support for different Yes variations like \"sure\", \"of course\", \"ya\", etc\r\n\r\nNeed product team to confirm logic or specify requirements. If we need to change current behavior, then this issue can remain open until we implement the changes in code.\r\n\r\nRefs #651 \r\n"},"comment":{"url":"https://api.github.com/repos/DoSomething/gambit/issues/comments/259288087","html_url":"https://github.com/DoSomething/gambit/issues/717#issuecomment-259288087","issue_url":"https://api.github.com/repos/DoSomething/gambit/issues/717","id":259288087,"user":{"login":"aaronschachter","id":1236811,"avatar_url":"https://avatars.githubusercontent.com/u/1236811?v=3","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},"created_at":"2016-11-08T23:06:41Z","updated_at":"2016-11-08T23:06:41Z","body":"Chatted with @jamjensen about this and repurposes this issue to make code changes.\r\n\r\nWe'll roll with Small T-shirt for MVP and to close out #651 and change the logic in `helpers.isYesResponse` to return `true` if the first word matches one of the responses above.\r\n\r\nTo keep things super simple for now, let's store the Yes responses in a GAMBIT_YES_RESPONSES config variable.\r\n\r\nA future releases should direct No responses to a yet-to-be-built Select Campaign menu (which we also need for #713 )\r\n\r\n"}}
{"actor":{"display_login":"aaronschachter"}}