{"action":"created","comment":{"url":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/comments/61310184","id":61310184,"diff_hunk":"@@ -0,0 +1,48 @@\n+$(function() {\n+  $(\"form#new_note\").submit(function(event) {\n+    event.preventDefault();\n+    var targetUrl = $(this).attr('action');\n+    var newNoteBody = $('#note_body').val();\n+    var newNote = {\n+      note: {\n+        body: newNoteBody\n+      }\n+    };\n+\n+    var request = $.ajax({\n+      if (body == \"\") {\n+        window.alert(\"Note cannot be blank\");\n+      else\n+        method: \"POST\",\n+        data: newNote,","path":"app/assets/javascripts/notes.js","position":17,"original_position":17,"commit_id":"492adb83af47a7091e29554390cc566f240a1975","original_commit_id":"492adb83af47a7091e29554390cc566f240a1975","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected an assignment or function call and instead saw an expression.<br>Missing semicolon.<br>Expected '}' to match '{' from line 2 and instead saw ':'.<br>Expected ')' and instead saw 'newNote'.","created_at":"2016-04-27T18:21:20Z","updated_at":"2016-04-27T18:21:20Z","html_url":"https://github.com/mia-gaulin/far-far-away/pull/23#discussion_r61310184","pull_request_url":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/comments/61310184"},"html":{"href":"https://github.com/mia-gaulin/far-far-away/pull/23#discussion_r61310184"},"pull_request":{"href":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/23","id":68100120,"html_url":"https://github.com/mia-gaulin/far-far-away/pull/23","diff_url":"https://github.com/mia-gaulin/far-far-away/pull/23.diff","patch_url":"https://github.com/mia-gaulin/far-far-away/pull/23.patch","issue_url":"https://api.github.com/repos/mia-gaulin/far-far-away/issues/23","number":23,"state":"open","locked":false,"title":"ajax and minor styling","user":{"login":"mia-gaulin","id":17487532,"avatar_url":"https://avatars.githubusercontent.com/u/17487532?v=3","gravatar_id":"","url":"https://api.github.com/users/mia-gaulin","html_url":"https://github.com/mia-gaulin","followers_url":"https://api.github.com/users/mia-gaulin/followers","following_url":"https://api.github.com/users/mia-gaulin/following{/other_user}","gists_url":"https://api.github.com/users/mia-gaulin/gists{/gist_id}","starred_url":"https://api.github.com/users/mia-gaulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mia-gaulin/subscriptions","organizations_url":"https://api.github.com/users/mia-gaulin/orgs","repos_url":"https://api.github.com/users/mia-gaulin/repos","events_url":"https://api.github.com/users/mia-gaulin/events{/privacy}","received_events_url":"https://api.github.com/users/mia-gaulin/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-27T18:21:02Z","updated_at":"2016-04-27T18:21:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e666d95a3e15fc478bbeacc22bd0e5ae10c7a22c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/23/commits","review_comments_url":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/23/comments","review_comment_url":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mia-gaulin/far-far-away/issues/23/comments","statuses_url":"https://api.github.com/repos/mia-gaulin/far-far-away/statuses/492adb83af47a7091e29554390cc566f240a1975","head":{"label":"mia-gaulin:ajax-notes","ref":"ajax-notes","sha":"492adb83af47a7091e29554390cc566f240a1975","user":{"login":"mia-gaulin","id":17487532,"avatar_url":"https://avatars.githubusercontent.com/u/17487532?v=3","gravatar_id":"","url":"https://api.github.com/users/mia-gaulin","html_url":"https://github.com/mia-gaulin","followers_url":"https://api.github.com/users/mia-gaulin/followers","following_url":"https://api.github.com/users/mia-gaulin/following{/other_user}","gists_url":"https://api.github.com/users/mia-gaulin/gists{/gist_id}","starred_url":"https://api.github.com/users/mia-gaulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mia-gaulin/subscriptions","organizations_url":"https://api.github.com/users/mia-gaulin/orgs","repos_url":"https://api.github.com/users/mia-gaulin/repos","events_url":"https://api.github.com/users/mia-gaulin/events{/privacy}","received_events_url":"https://api.github.com/users/mia-gaulin/received_events","type":"User","site_admin":false},"repo":{"id":56450246,"name":"far-far-away","full_name":"mia-gaulin/far-far-away","owner":{"login":"mia-gaulin","id":17487532,"avatar_url":"https://avatars.githubusercontent.com/u/17487532?v=3","gravatar_id":"","url":"https://api.github.com/users/mia-gaulin","html_url":"https://github.com/mia-gaulin","followers_url":"https://api.github.com/users/mia-gaulin/followers","following_url":"https://api.github.com/users/mia-gaulin/following{/other_user}","gists_url":"https://api.github.com/users/mia-gaulin/gists{/gist_id}","starred_url":"https://api.github.com/users/mia-gaulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mia-gaulin/subscriptions","organizations_url":"https://api.github.com/users/mia-gaulin/orgs","repos_url":"https://api.github.com/users/mia-gaulin/repos","events_url":"https://api.github.com/users/mia-gaulin/events{/privacy}","received_events_url":"https://api.github.com/users/mia-gaulin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mia-gaulin/far-far-away","description":"","fork":false,"url":"https://api.github.com/repos/mia-gaulin/far-far-away","forks_url":"https://api.github.com/repos/mia-gaulin/far-far-away/forks","keys_url":"https://api.github.com/repos/mia-gaulin/far-far-away/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mia-gaulin/far-far-away/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mia-gaulin/far-far-away/teams","hooks_url":"https://api.github.com/repos/mia-gaulin/far-far-away/hooks","issue_events_url":"https://api.github.com/repos/mia-gaulin/far-far-away/issues/events{/number}","events_url":"https://api.github.com/repos/mia-gaulin/far-far-away/events","assignees_url":"https://api.github.com/repos/mia-gaulin/far-far-away/assignees{/user}","branches_url":"https://api.github.com/repos/mia-gaulin/far-far-away/branches{/branch}","tags_url":"https://api.github.com/repos/mia-gaulin/far-far-away/tags","blobs_url":"https://api.github.com/repos/mia-gaulin/far-far-away/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mia-gaulin/far-far-away/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mia-gaulin/far-far-away/git/refs{/sha}","trees_url":"https://api.github.com/repos/mia-gaulin/far-far-away/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mia-gaulin/far-far-away/statuses/{sha}","languages_url":"https://api.github.com/repos/mia-gaulin/far-far-away/languages","stargazers_url":"https://api.github.com/repos/mia-gaulin/far-far-away/stargazers","contributors_url":"https://api.github.com/repos/mia-gaulin/far-far-away/contributors","subscribers_url":"https://api.github.com/repos/mia-gaulin/far-far-away/subscribers","subscription_url":"https://api.github.com/repos/mia-gaulin/far-far-away/subscription","commits_url":"https://api.github.com/repos/mia-gaulin/far-far-away/commits{/sha}","git_commits_url":"https://api.github.com/repos/mia-gaulin/far-far-away/git/commits{/sha}","comments_url":"https://api.github.com/repos/mia-gaulin/far-far-away/comments{/number}","issue_comment_url":"https://api.github.com/repos/mia-gaulin/far-far-away/issues/comments{/number}","contents_url":"https://api.github.com/repos/mia-gaulin/far-far-away/contents/{+path}","compare_url":"https://api.github.com/repos/mia-gaulin/far-far-away/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mia-gaulin/far-far-away/merges","archive_url":"https://api.github.com/repos/mia-gaulin/far-far-away/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mia-gaulin/far-far-away/downloads","issues_url":"https://api.github.com/repos/mia-gaulin/far-far-away/issues{/number}","pulls_url":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls{/number}","milestones_url":"https://api.github.com/repos/mia-gaulin/far-far-away/milestones{/number}","notifications_url":"https://api.github.com/repos/mia-gaulin/far-far-away/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mia-gaulin/far-far-away/labels{/name}","releases_url":"https://api.github.com/repos/mia-gaulin/far-far-away/releases{/id}","deployments_url":"https://api.github.com/repos/mia-gaulin/far-far-away/deployments","created_at":"2016-04-17T17:50:47Z","updated_at":"2016-04-17T17:51:34Z","pushed_at":"2016-04-27T18:21:02Z","git_url":"git://github.com/mia-gaulin/far-far-away.git","ssh_url":"git@github.com:mia-gaulin/far-far-away.git","clone_url":"https://github.com/mia-gaulin/far-far-away.git","svn_url":"https://github.com/mia-gaulin/far-far-away","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mia-gaulin:master","ref":"master","sha":"d975831d778d62e8d15206c5e7bef24b126e8e90","user":{"login":"mia-gaulin","id":17487532,"avatar_url":"https://avatars.githubusercontent.com/u/17487532?v=3","gravatar_id":"","url":"https://api.github.com/users/mia-gaulin","html_url":"https://github.com/mia-gaulin","followers_url":"https://api.github.com/users/mia-gaulin/followers","following_url":"https://api.github.com/users/mia-gaulin/following{/other_user}","gists_url":"https://api.github.com/users/mia-gaulin/gists{/gist_id}","starred_url":"https://api.github.com/users/mia-gaulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mia-gaulin/subscriptions","organizations_url":"https://api.github.com/users/mia-gaulin/orgs","repos_url":"https://api.github.com/users/mia-gaulin/repos","events_url":"https://api.github.com/users/mia-gaulin/events{/privacy}","received_events_url":"https://api.github.com/users/mia-gaulin/received_events","type":"User","site_admin":false},"repo":{"id":56450246,"name":"far-far-away","full_name":"mia-gaulin/far-far-away","owner":{"login":"mia-gaulin","id":17487532,"avatar_url":"https://avatars.githubusercontent.com/u/17487532?v=3","gravatar_id":"","url":"https://api.github.com/users/mia-gaulin","html_url":"https://github.com/mia-gaulin","followers_url":"https://api.github.com/users/mia-gaulin/followers","following_url":"https://api.github.com/users/mia-gaulin/following{/other_user}","gists_url":"https://api.github.com/users/mia-gaulin/gists{/gist_id}","starred_url":"https://api.github.com/users/mia-gaulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mia-gaulin/subscriptions","organizations_url":"https://api.github.com/users/mia-gaulin/orgs","repos_url":"https://api.github.com/users/mia-gaulin/repos","events_url":"https://api.github.com/users/mia-gaulin/events{/privacy}","received_events_url":"https://api.github.com/users/mia-gaulin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mia-gaulin/far-far-away","description":"","fork":false,"url":"https://api.github.com/repos/mia-gaulin/far-far-away","forks_url":"https://api.github.com/repos/mia-gaulin/far-far-away/forks","keys_url":"https://api.github.com/repos/mia-gaulin/far-far-away/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mia-gaulin/far-far-away/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mia-gaulin/far-far-away/teams","hooks_url":"https://api.github.com/repos/mia-gaulin/far-far-away/hooks","issue_events_url":"https://api.github.com/repos/mia-gaulin/far-far-away/issues/events{/number}","events_url":"https://api.github.com/repos/mia-gaulin/far-far-away/events","assignees_url":"https://api.github.com/repos/mia-gaulin/far-far-away/assignees{/user}","branches_url":"https://api.github.com/repos/mia-gaulin/far-far-away/branches{/branch}","tags_url":"https://api.github.com/repos/mia-gaulin/far-far-away/tags","blobs_url":"https://api.github.com/repos/mia-gaulin/far-far-away/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mia-gaulin/far-far-away/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mia-gaulin/far-far-away/git/refs{/sha}","trees_url":"https://api.github.com/repos/mia-gaulin/far-far-away/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mia-gaulin/far-far-away/statuses/{sha}","languages_url":"https://api.github.com/repos/mia-gaulin/far-far-away/languages","stargazers_url":"https://api.github.com/repos/mia-gaulin/far-far-away/stargazers","contributors_url":"https://api.github.com/repos/mia-gaulin/far-far-away/contributors","subscribers_url":"https://api.github.com/repos/mia-gaulin/far-far-away/subscribers","subscription_url":"https://api.github.com/repos/mia-gaulin/far-far-away/subscription","commits_url":"https://api.github.com/repos/mia-gaulin/far-far-away/commits{/sha}","git_commits_url":"https://api.github.com/repos/mia-gaulin/far-far-away/git/commits{/sha}","comments_url":"https://api.github.com/repos/mia-gaulin/far-far-away/comments{/number}","issue_comment_url":"https://api.github.com/repos/mia-gaulin/far-far-away/issues/comments{/number}","contents_url":"https://api.github.com/repos/mia-gaulin/far-far-away/contents/{+path}","compare_url":"https://api.github.com/repos/mia-gaulin/far-far-away/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mia-gaulin/far-far-away/merges","archive_url":"https://api.github.com/repos/mia-gaulin/far-far-away/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mia-gaulin/far-far-away/downloads","issues_url":"https://api.github.com/repos/mia-gaulin/far-far-away/issues{/number}","pulls_url":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls{/number}","milestones_url":"https://api.github.com/repos/mia-gaulin/far-far-away/milestones{/number}","notifications_url":"https://api.github.com/repos/mia-gaulin/far-far-away/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mia-gaulin/far-far-away/labels{/name}","releases_url":"https://api.github.com/repos/mia-gaulin/far-far-away/releases{/id}","deployments_url":"https://api.github.com/repos/mia-gaulin/far-far-away/deployments","created_at":"2016-04-17T17:50:47Z","updated_at":"2016-04-17T17:51:34Z","pushed_at":"2016-04-27T18:21:02Z","git_url":"git://github.com/mia-gaulin/far-far-away.git","ssh_url":"git@github.com:mia-gaulin/far-far-away.git","clone_url":"https://github.com/mia-gaulin/far-far-away.git","svn_url":"https://github.com/mia-gaulin/far-far-away","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/23"},"html":{"href":"https://github.com/mia-gaulin/far-far-away/pull/23"},"issue":{"href":"https://api.github.com/repos/mia-gaulin/far-far-away/issues/23"},"comments":{"href":"https://api.github.com/repos/mia-gaulin/far-far-away/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mia-gaulin/far-far-away/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/mia-gaulin/far-far-away/statuses/492adb83af47a7091e29554390cc566f240a1975"}}}}