{"action":"created","comment":{"url":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/comments/197820033","pull_request_review_id":131636901,"id":197820033,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzgyMDAzMw==","diff_hunk":"@@ -0,0 +1,43 @@\n+angular.module('missionhubApp').factory('surveyService', surveyService);\n+\n+function surveyService(\n+    httpProxy,\n+    modelsService,\n+) {\n+    var surveyService = {\n+        // Create a new survey\n+        createSurvey: function(title, organization) {\n+            var payload = {\n+                data: {\n+                    type: 'survey',\n+                    attributes: {\n+                        title: title,\n+                        post_survey_message: title","path":"app/assets/javascripts/angular/services/survey.service.js","position":15,"original_position":15,"commit_id":"a13f526ad3025294f9825000c7b9968463da7a96","original_commit_id":"a13f526ad3025294f9825000c7b9968463da7a96","user":{"login":"adammeyer","id":4603906,"node_id":"MDQ6VXNlcjQ2MDM5MDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4603906?v=4","gravatar_id":"","url":"https://api.github.com/users/adammeyer","html_url":"https://github.com/adammeyer","followers_url":"https://api.github.com/users/adammeyer/followers","following_url":"https://api.github.com/users/adammeyer/following{/other_user}","gists_url":"https://api.github.com/users/adammeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/adammeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammeyer/subscriptions","organizations_url":"https://api.github.com/users/adammeyer/orgs","repos_url":"https://api.github.com/users/adammeyer/repos","events_url":"https://api.github.com/users/adammeyer/events{/privacy}","received_events_url":"https://api.github.com/users/adammeyer/received_events","type":"User","site_admin":false},"body":"It didn't allow it to be empty.","created_at":"2018-06-25T14:35:10Z","updated_at":"2018-06-25T14:35:10Z","html_url":"https://github.com/CruGlobal/missionhub-web/pull/17#discussion_r197820033","pull_request_url":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/comments/197820033"},"html":{"href":"https://github.com/CruGlobal/missionhub-web/pull/17#discussion_r197820033"},"pull_request":{"href":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/17"}},"in_reply_to_id":197534676},"pull_request":{"url":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/17","id":196804337,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2ODA0MzM3","html_url":"https://github.com/CruGlobal/missionhub-web/pull/17","diff_url":"https://github.com/CruGlobal/missionhub-web/pull/17.diff","patch_url":"https://github.com/CruGlobal/missionhub-web/pull/17.patch","issue_url":"https://api.github.com/repos/CruGlobal/missionhub-web/issues/17","number":17,"state":"open","locked":false,"title":"init survey page","user":{"login":"adammeyer","id":4603906,"node_id":"MDQ6VXNlcjQ2MDM5MDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4603906?v=4","gravatar_id":"","url":"https://api.github.com/users/adammeyer","html_url":"https://github.com/adammeyer","followers_url":"https://api.github.com/users/adammeyer/followers","following_url":"https://api.github.com/users/adammeyer/following{/other_user}","gists_url":"https://api.github.com/users/adammeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/adammeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammeyer/subscriptions","organizations_url":"https://api.github.com/users/adammeyer/orgs","repos_url":"https://api.github.com/users/adammeyer/repos","events_url":"https://api.github.com/users/adammeyer/events{/privacy}","received_events_url":"https://api.github.com/users/adammeyer/received_events","type":"User","site_admin":false},"body":"create new survey modal","created_at":"2018-06-22T17:53:01Z","updated_at":"2018-06-25T14:35:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5c7152d7a52b696a3ecc40b49ff569cd35035cf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/17/commits","review_comments_url":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/17/comments","review_comment_url":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CruGlobal/missionhub-web/issues/17/comments","statuses_url":"https://api.github.com/repos/CruGlobal/missionhub-web/statuses/a13f526ad3025294f9825000c7b9968463da7a96","head":{"label":"CruGlobal:surveyOverview","ref":"surveyOverview","sha":"a13f526ad3025294f9825000c7b9968463da7a96","user":{"login":"CruGlobal","id":1785912,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3ODU5MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1785912?v=4","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"repo":{"id":110785168,"node_id":"MDEwOlJlcG9zaXRvcnkxMTA3ODUxNjg=","name":"missionhub-web","full_name":"CruGlobal/missionhub-web","owner":{"login":"CruGlobal","id":1785912,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3ODU5MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1785912?v=4","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CruGlobal/missionhub-web","description":null,"fork":false,"url":"https://api.github.com/repos/CruGlobal/missionhub-web","forks_url":"https://api.github.com/repos/CruGlobal/missionhub-web/forks","keys_url":"https://api.github.com/repos/CruGlobal/missionhub-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CruGlobal/missionhub-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CruGlobal/missionhub-web/teams","hooks_url":"https://api.github.com/repos/CruGlobal/missionhub-web/hooks","issue_events_url":"https://api.github.com/repos/CruGlobal/missionhub-web/issues/events{/number}","events_url":"https://api.github.com/repos/CruGlobal/missionhub-web/events","assignees_url":"https://api.github.com/repos/CruGlobal/missionhub-web/assignees{/user}","branches_url":"https://api.github.com/repos/CruGlobal/missionhub-web/branches{/branch}","tags_url":"https://api.github.com/repos/CruGlobal/missionhub-web/tags","blobs_url":"https://api.github.com/repos/CruGlobal/missionhub-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CruGlobal/missionhub-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CruGlobal/missionhub-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/CruGlobal/missionhub-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CruGlobal/missionhub-web/statuses/{sha}","languages_url":"https://api.github.com/repos/CruGlobal/missionhub-web/languages","stargazers_url":"https://api.github.com/repos/CruGlobal/missionhub-web/stargazers","contributors_url":"https://api.github.com/repos/CruGlobal/missionhub-web/contributors","subscribers_url":"https://api.github.com/repos/CruGlobal/missionhub-web/subscribers","subscription_url":"https://api.github.com/repos/CruGlobal/missionhub-web/subscription","commits_url":"https://api.github.com/repos/CruGlobal/missionhub-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/CruGlobal/missionhub-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/CruGlobal/missionhub-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/CruGlobal/missionhub-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/CruGlobal/missionhub-web/contents/{+path}","compare_url":"https://api.github.com/repos/CruGlobal/missionhub-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CruGlobal/missionhub-web/merges","archive_url":"https://api.github.com/repos/CruGlobal/missionhub-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CruGlobal/missionhub-web/downloads","issues_url":"https://api.github.com/repos/CruGlobal/missionhub-web/issues{/number}","pulls_url":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls{/number}","milestones_url":"https://api.github.com/repos/CruGlobal/missionhub-web/milestones{/number}","notifications_url":"https://api.github.com/repos/CruGlobal/missionhub-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CruGlobal/missionhub-web/labels{/name}","releases_url":"https://api.github.com/repos/CruGlobal/missionhub-web/releases{/id}","deployments_url":"https://api.github.com/repos/CruGlobal/missionhub-web/deployments","created_at":"2017-11-15T04:53:02Z","updated_at":"2018-06-22T18:54:28Z","pushed_at":"2018-06-22T18:54:29Z","git_url":"git://github.com/CruGlobal/missionhub-web.git","ssh_url":"git@github.com:CruGlobal/missionhub-web.git","clone_url":"https://github.com/CruGlobal/missionhub-web.git","svn_url":"https://github.com/CruGlobal/missionhub-web","homepage":null,"size":383300,"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":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"CruGlobal:master","ref":"master","sha":"6f019c016a5559d4ee356bebdc20eee43b80807a","user":{"login":"CruGlobal","id":1785912,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3ODU5MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1785912?v=4","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"repo":{"id":110785168,"node_id":"MDEwOlJlcG9zaXRvcnkxMTA3ODUxNjg=","name":"missionhub-web","full_name":"CruGlobal/missionhub-web","owner":{"login":"CruGlobal","id":1785912,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3ODU5MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1785912?v=4","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CruGlobal/missionhub-web","description":null,"fork":false,"url":"https://api.github.com/repos/CruGlobal/missionhub-web","forks_url":"https://api.github.com/repos/CruGlobal/missionhub-web/forks","keys_url":"https://api.github.com/repos/CruGlobal/missionhub-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CruGlobal/missionhub-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CruGlobal/missionhub-web/teams","hooks_url":"https://api.github.com/repos/CruGlobal/missionhub-web/hooks","issue_events_url":"https://api.github.com/repos/CruGlobal/missionhub-web/issues/events{/number}","events_url":"https://api.github.com/repos/CruGlobal/missionhub-web/events","assignees_url":"https://api.github.com/repos/CruGlobal/missionhub-web/assignees{/user}","branches_url":"https://api.github.com/repos/CruGlobal/missionhub-web/branches{/branch}","tags_url":"https://api.github.com/repos/CruGlobal/missionhub-web/tags","blobs_url":"https://api.github.com/repos/CruGlobal/missionhub-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CruGlobal/missionhub-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CruGlobal/missionhub-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/CruGlobal/missionhub-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CruGlobal/missionhub-web/statuses/{sha}","languages_url":"https://api.github.com/repos/CruGlobal/missionhub-web/languages","stargazers_url":"https://api.github.com/repos/CruGlobal/missionhub-web/stargazers","contributors_url":"https://api.github.com/repos/CruGlobal/missionhub-web/contributors","subscribers_url":"https://api.github.com/repos/CruGlobal/missionhub-web/subscribers","subscription_url":"https://api.github.com/repos/CruGlobal/missionhub-web/subscription","commits_url":"https://api.github.com/repos/CruGlobal/missionhub-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/CruGlobal/missionhub-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/CruGlobal/missionhub-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/CruGlobal/missionhub-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/CruGlobal/missionhub-web/contents/{+path}","compare_url":"https://api.github.com/repos/CruGlobal/missionhub-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CruGlobal/missionhub-web/merges","archive_url":"https://api.github.com/repos/CruGlobal/missionhub-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CruGlobal/missionhub-web/downloads","issues_url":"https://api.github.com/repos/CruGlobal/missionhub-web/issues{/number}","pulls_url":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls{/number}","milestones_url":"https://api.github.com/repos/CruGlobal/missionhub-web/milestones{/number}","notifications_url":"https://api.github.com/repos/CruGlobal/missionhub-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CruGlobal/missionhub-web/labels{/name}","releases_url":"https://api.github.com/repos/CruGlobal/missionhub-web/releases{/id}","deployments_url":"https://api.github.com/repos/CruGlobal/missionhub-web/deployments","created_at":"2017-11-15T04:53:02Z","updated_at":"2018-06-22T18:54:28Z","pushed_at":"2018-06-22T18:54:29Z","git_url":"git://github.com/CruGlobal/missionhub-web.git","ssh_url":"git@github.com:CruGlobal/missionhub-web.git","clone_url":"https://github.com/CruGlobal/missionhub-web.git","svn_url":"https://github.com/CruGlobal/missionhub-web","homepage":null,"size":383300,"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":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/17"},"html":{"href":"https://github.com/CruGlobal/missionhub-web/pull/17"},"issue":{"href":"https://api.github.com/repos/CruGlobal/missionhub-web/issues/17"},"comments":{"href":"https://api.github.com/repos/CruGlobal/missionhub-web/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CruGlobal/missionhub-web/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/CruGlobal/missionhub-web/statuses/a13f526ad3025294f9825000c7b9968463da7a96"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"adammeyer"}}