{"action":"created","comment":{"url":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/comments/35046397","id":35046397,"diff_hunk":"@@ -0,0 +1,26 @@\n+$(function () {\n+  $(\".vote\").click(function() {\n+    var url = $(this).attr(\"href\");\n+\n+    $.ajax({\n+      method: \"PUT\",\n+      url: url,\n+      dataType: \"json\"\n+    })\n+\n+    .done(function(votes) {\n+      var new_url = url.split(\"/\");\n+      new_url.pop();\n+      if ($(\".vote\").text() == \"Undo\") {\n+      $(\".vote\").text(\"Favorite\");\n+      new_url.push(\"like\");\n+    } else {\n+      $(\".vote\").text(\"Undo\");\n+      new_url.push(\"dislike\");\n+    }\n+    new_url = new_url.join(\"/\");\n+    $(\".vote\").attr(\"href\", new_url)","path":"app/assets/javascripts/favorites.js","position":22,"original_position":22,"commit_id":"48a0ed40a2042f4ac1d28cb1a5e8535817f6ca40","original_commit_id":"48a0ed40a2042f4ac1d28cb1a5e8535817f6ca40","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Identifier 'new_url' is not in camel case.<br>Missing semicolon.","created_at":"2015-07-20T21:28:36Z","updated_at":"2015-07-20T21:28:36Z","html_url":"https://github.com/NoraDelaney/make-with-me/pull/11#discussion_r35046397","pull_request_url":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/comments/35046397"},"html":{"href":"https://github.com/NoraDelaney/make-with-me/pull/11#discussion_r35046397"},"pull_request":{"href":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/11","id":40399333,"html_url":"https://github.com/NoraDelaney/make-with-me/pull/11","diff_url":"https://github.com/NoraDelaney/make-with-me/pull/11.diff","patch_url":"https://github.com/NoraDelaney/make-with-me/pull/11.patch","issue_url":"https://api.github.com/repos/NoraDelaney/make-with-me/issues/11","number":11,"state":"open","locked":false,"title":"Ajax","user":{"login":"NoraDelaney","id":11383263,"avatar_url":"https://avatars.githubusercontent.com/u/11383263?v=3","gravatar_id":"","url":"https://api.github.com/users/NoraDelaney","html_url":"https://github.com/NoraDelaney","followers_url":"https://api.github.com/users/NoraDelaney/followers","following_url":"https://api.github.com/users/NoraDelaney/following{/other_user}","gists_url":"https://api.github.com/users/NoraDelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/NoraDelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoraDelaney/subscriptions","organizations_url":"https://api.github.com/users/NoraDelaney/orgs","repos_url":"https://api.github.com/users/NoraDelaney/repos","events_url":"https://api.github.com/users/NoraDelaney/events{/privacy}","received_events_url":"https://api.github.com/users/NoraDelaney/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-20T21:28:10Z","updated_at":"2015-07-20T21:28:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c3a006a8f670084925034c6966368cc6859473b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/11/commits","review_comments_url":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/11/comments","review_comment_url":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NoraDelaney/make-with-me/issues/11/comments","statuses_url":"https://api.github.com/repos/NoraDelaney/make-with-me/statuses/48a0ed40a2042f4ac1d28cb1a5e8535817f6ca40","head":{"label":"NoraDelaney:ajax","ref":"ajax","sha":"48a0ed40a2042f4ac1d28cb1a5e8535817f6ca40","user":{"login":"NoraDelaney","id":11383263,"avatar_url":"https://avatars.githubusercontent.com/u/11383263?v=3","gravatar_id":"","url":"https://api.github.com/users/NoraDelaney","html_url":"https://github.com/NoraDelaney","followers_url":"https://api.github.com/users/NoraDelaney/followers","following_url":"https://api.github.com/users/NoraDelaney/following{/other_user}","gists_url":"https://api.github.com/users/NoraDelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/NoraDelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoraDelaney/subscriptions","organizations_url":"https://api.github.com/users/NoraDelaney/orgs","repos_url":"https://api.github.com/users/NoraDelaney/repos","events_url":"https://api.github.com/users/NoraDelaney/events{/privacy}","received_events_url":"https://api.github.com/users/NoraDelaney/received_events","type":"User","site_admin":false},"repo":{"id":38657895,"name":"make-with-me","full_name":"NoraDelaney/make-with-me","owner":{"login":"NoraDelaney","id":11383263,"avatar_url":"https://avatars.githubusercontent.com/u/11383263?v=3","gravatar_id":"","url":"https://api.github.com/users/NoraDelaney","html_url":"https://github.com/NoraDelaney","followers_url":"https://api.github.com/users/NoraDelaney/followers","following_url":"https://api.github.com/users/NoraDelaney/following{/other_user}","gists_url":"https://api.github.com/users/NoraDelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/NoraDelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoraDelaney/subscriptions","organizations_url":"https://api.github.com/users/NoraDelaney/orgs","repos_url":"https://api.github.com/users/NoraDelaney/repos","events_url":"https://api.github.com/users/NoraDelaney/events{/privacy}","received_events_url":"https://api.github.com/users/NoraDelaney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NoraDelaney/make-with-me","description":"","fork":false,"url":"https://api.github.com/repos/NoraDelaney/make-with-me","forks_url":"https://api.github.com/repos/NoraDelaney/make-with-me/forks","keys_url":"https://api.github.com/repos/NoraDelaney/make-with-me/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NoraDelaney/make-with-me/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NoraDelaney/make-with-me/teams","hooks_url":"https://api.github.com/repos/NoraDelaney/make-with-me/hooks","issue_events_url":"https://api.github.com/repos/NoraDelaney/make-with-me/issues/events{/number}","events_url":"https://api.github.com/repos/NoraDelaney/make-with-me/events","assignees_url":"https://api.github.com/repos/NoraDelaney/make-with-me/assignees{/user}","branches_url":"https://api.github.com/repos/NoraDelaney/make-with-me/branches{/branch}","tags_url":"https://api.github.com/repos/NoraDelaney/make-with-me/tags","blobs_url":"https://api.github.com/repos/NoraDelaney/make-with-me/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NoraDelaney/make-with-me/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NoraDelaney/make-with-me/git/refs{/sha}","trees_url":"https://api.github.com/repos/NoraDelaney/make-with-me/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NoraDelaney/make-with-me/statuses/{sha}","languages_url":"https://api.github.com/repos/NoraDelaney/make-with-me/languages","stargazers_url":"https://api.github.com/repos/NoraDelaney/make-with-me/stargazers","contributors_url":"https://api.github.com/repos/NoraDelaney/make-with-me/contributors","subscribers_url":"https://api.github.com/repos/NoraDelaney/make-with-me/subscribers","subscription_url":"https://api.github.com/repos/NoraDelaney/make-with-me/subscription","commits_url":"https://api.github.com/repos/NoraDelaney/make-with-me/commits{/sha}","git_commits_url":"https://api.github.com/repos/NoraDelaney/make-with-me/git/commits{/sha}","comments_url":"https://api.github.com/repos/NoraDelaney/make-with-me/comments{/number}","issue_comment_url":"https://api.github.com/repos/NoraDelaney/make-with-me/issues/comments{/number}","contents_url":"https://api.github.com/repos/NoraDelaney/make-with-me/contents/{+path}","compare_url":"https://api.github.com/repos/NoraDelaney/make-with-me/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NoraDelaney/make-with-me/merges","archive_url":"https://api.github.com/repos/NoraDelaney/make-with-me/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NoraDelaney/make-with-me/downloads","issues_url":"https://api.github.com/repos/NoraDelaney/make-with-me/issues{/number}","pulls_url":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls{/number}","milestones_url":"https://api.github.com/repos/NoraDelaney/make-with-me/milestones{/number}","notifications_url":"https://api.github.com/repos/NoraDelaney/make-with-me/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NoraDelaney/make-with-me/labels{/name}","releases_url":"https://api.github.com/repos/NoraDelaney/make-with-me/releases{/id}","created_at":"2015-07-07T02:07:00Z","updated_at":"2015-07-19T01:37:42Z","pushed_at":"2015-07-20T21:28:10Z","git_url":"git://github.com/NoraDelaney/make-with-me.git","ssh_url":"git@github.com:NoraDelaney/make-with-me.git","clone_url":"https://github.com/NoraDelaney/make-with-me.git","svn_url":"https://github.com/NoraDelaney/make-with-me","homepage":null,"size":1064,"stargazers_count":2,"watchers_count":2,"language":"HTML","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":2,"default_branch":"master"}},"base":{"label":"NoraDelaney:master","ref":"master","sha":"d043396438c35714f496db63284bc4be8f36387b","user":{"login":"NoraDelaney","id":11383263,"avatar_url":"https://avatars.githubusercontent.com/u/11383263?v=3","gravatar_id":"","url":"https://api.github.com/users/NoraDelaney","html_url":"https://github.com/NoraDelaney","followers_url":"https://api.github.com/users/NoraDelaney/followers","following_url":"https://api.github.com/users/NoraDelaney/following{/other_user}","gists_url":"https://api.github.com/users/NoraDelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/NoraDelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoraDelaney/subscriptions","organizations_url":"https://api.github.com/users/NoraDelaney/orgs","repos_url":"https://api.github.com/users/NoraDelaney/repos","events_url":"https://api.github.com/users/NoraDelaney/events{/privacy}","received_events_url":"https://api.github.com/users/NoraDelaney/received_events","type":"User","site_admin":false},"repo":{"id":38657895,"name":"make-with-me","full_name":"NoraDelaney/make-with-me","owner":{"login":"NoraDelaney","id":11383263,"avatar_url":"https://avatars.githubusercontent.com/u/11383263?v=3","gravatar_id":"","url":"https://api.github.com/users/NoraDelaney","html_url":"https://github.com/NoraDelaney","followers_url":"https://api.github.com/users/NoraDelaney/followers","following_url":"https://api.github.com/users/NoraDelaney/following{/other_user}","gists_url":"https://api.github.com/users/NoraDelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/NoraDelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoraDelaney/subscriptions","organizations_url":"https://api.github.com/users/NoraDelaney/orgs","repos_url":"https://api.github.com/users/NoraDelaney/repos","events_url":"https://api.github.com/users/NoraDelaney/events{/privacy}","received_events_url":"https://api.github.com/users/NoraDelaney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NoraDelaney/make-with-me","description":"","fork":false,"url":"https://api.github.com/repos/NoraDelaney/make-with-me","forks_url":"https://api.github.com/repos/NoraDelaney/make-with-me/forks","keys_url":"https://api.github.com/repos/NoraDelaney/make-with-me/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NoraDelaney/make-with-me/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NoraDelaney/make-with-me/teams","hooks_url":"https://api.github.com/repos/NoraDelaney/make-with-me/hooks","issue_events_url":"https://api.github.com/repos/NoraDelaney/make-with-me/issues/events{/number}","events_url":"https://api.github.com/repos/NoraDelaney/make-with-me/events","assignees_url":"https://api.github.com/repos/NoraDelaney/make-with-me/assignees{/user}","branches_url":"https://api.github.com/repos/NoraDelaney/make-with-me/branches{/branch}","tags_url":"https://api.github.com/repos/NoraDelaney/make-with-me/tags","blobs_url":"https://api.github.com/repos/NoraDelaney/make-with-me/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NoraDelaney/make-with-me/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NoraDelaney/make-with-me/git/refs{/sha}","trees_url":"https://api.github.com/repos/NoraDelaney/make-with-me/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NoraDelaney/make-with-me/statuses/{sha}","languages_url":"https://api.github.com/repos/NoraDelaney/make-with-me/languages","stargazers_url":"https://api.github.com/repos/NoraDelaney/make-with-me/stargazers","contributors_url":"https://api.github.com/repos/NoraDelaney/make-with-me/contributors","subscribers_url":"https://api.github.com/repos/NoraDelaney/make-with-me/subscribers","subscription_url":"https://api.github.com/repos/NoraDelaney/make-with-me/subscription","commits_url":"https://api.github.com/repos/NoraDelaney/make-with-me/commits{/sha}","git_commits_url":"https://api.github.com/repos/NoraDelaney/make-with-me/git/commits{/sha}","comments_url":"https://api.github.com/repos/NoraDelaney/make-with-me/comments{/number}","issue_comment_url":"https://api.github.com/repos/NoraDelaney/make-with-me/issues/comments{/number}","contents_url":"https://api.github.com/repos/NoraDelaney/make-with-me/contents/{+path}","compare_url":"https://api.github.com/repos/NoraDelaney/make-with-me/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NoraDelaney/make-with-me/merges","archive_url":"https://api.github.com/repos/NoraDelaney/make-with-me/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NoraDelaney/make-with-me/downloads","issues_url":"https://api.github.com/repos/NoraDelaney/make-with-me/issues{/number}","pulls_url":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls{/number}","milestones_url":"https://api.github.com/repos/NoraDelaney/make-with-me/milestones{/number}","notifications_url":"https://api.github.com/repos/NoraDelaney/make-with-me/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NoraDelaney/make-with-me/labels{/name}","releases_url":"https://api.github.com/repos/NoraDelaney/make-with-me/releases{/id}","created_at":"2015-07-07T02:07:00Z","updated_at":"2015-07-19T01:37:42Z","pushed_at":"2015-07-20T21:28:10Z","git_url":"git://github.com/NoraDelaney/make-with-me.git","ssh_url":"git@github.com:NoraDelaney/make-with-me.git","clone_url":"https://github.com/NoraDelaney/make-with-me.git","svn_url":"https://github.com/NoraDelaney/make-with-me","homepage":null,"size":1064,"stargazers_count":2,"watchers_count":2,"language":"HTML","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":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/11"},"html":{"href":"https://github.com/NoraDelaney/make-with-me/pull/11"},"issue":{"href":"https://api.github.com/repos/NoraDelaney/make-with-me/issues/11"},"comments":{"href":"https://api.github.com/repos/NoraDelaney/make-with-me/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NoraDelaney/make-with-me/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/NoraDelaney/make-with-me/statuses/48a0ed40a2042f4ac1d28cb1a5e8535817f6ca40"}}}}