{"action":"created","comment":{"url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments/83218129","pull_request_review_id":4074524,"id":83218129,"diff_hunk":"@@ -0,0 +1,50 @@\n+$(document).ready(function(){\n+\n+$('.Upvote').on('click', function(event) {\n+    event.preventDefault();\n+    let upvote = this.parentElement.action;\n+    var request = $.ajax({\n+      method: \"POST\",\n+      url: `${upvote}.json`\n+    });\n+\n+    request.done(function(data) {\n+      if (data.error === null) {\n+        let upcount = `Upvote-sum_${data.id}`;\n+        let upnewcount = `${data.upvotes}`;","path":"app/assets/javascripts/ajax_votes.js","position":14,"original_position":14,"commit_id":"4463aba9cef303cdcf569d3b7b62139f44f005bb","original_commit_id":"4463aba9cef303cdcf569d3b7b62139f44f005bb","user":{"login":"jennceng","id":17482937,"avatar_url":"https://avatars.githubusercontent.com/u/17482937?v=3","gravatar_id":"","url":"https://api.github.com/users/jennceng","html_url":"https://github.com/jennceng","followers_url":"https://api.github.com/users/jennceng/followers","following_url":"https://api.github.com/users/jennceng/following{/other_user}","gists_url":"https://api.github.com/users/jennceng/gists{/gist_id}","starred_url":"https://api.github.com/users/jennceng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennceng/subscriptions","organizations_url":"https://api.github.com/users/jennceng/orgs","repos_url":"https://api.github.com/users/jennceng/repos","events_url":"https://api.github.com/users/jennceng/events{/privacy}","received_events_url":"https://api.github.com/users/jennceng/received_events","type":"User","site_admin":false},"body":"I would camel case these multi word variables","created_at":"2016-10-13T13:41:55Z","updated_at":"2016-10-13T13:41:55Z","html_url":"https://github.com/noahmilstein/cinephile/pull/26#discussion_r83218129","pull_request_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments/83218129"},"html":{"href":"https://github.com/noahmilstein/cinephile/pull/26#discussion_r83218129"},"pull_request":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/26","id":89083333,"html_url":"https://github.com/noahmilstein/cinephile/pull/26","diff_url":"https://github.com/noahmilstein/cinephile/pull/26.diff","patch_url":"https://github.com/noahmilstein/cinephile/pull/26.patch","issue_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/26","number":26,"state":"open","locked":false,"title":"Ajax","user":{"login":"jsohpennstater","id":21065272,"avatar_url":"https://avatars.githubusercontent.com/u/21065272?v=3","gravatar_id":"","url":"https://api.github.com/users/jsohpennstater","html_url":"https://github.com/jsohpennstater","followers_url":"https://api.github.com/users/jsohpennstater/followers","following_url":"https://api.github.com/users/jsohpennstater/following{/other_user}","gists_url":"https://api.github.com/users/jsohpennstater/gists{/gist_id}","starred_url":"https://api.github.com/users/jsohpennstater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsohpennstater/subscriptions","organizations_url":"https://api.github.com/users/jsohpennstater/orgs","repos_url":"https://api.github.com/users/jsohpennstater/repos","events_url":"https://api.github.com/users/jsohpennstater/events{/privacy}","received_events_url":"https://api.github.com/users/jsohpennstater/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-12T20:01:18Z","updated_at":"2016-10-13T13:41:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1fb78fac6d670df1859694dec9387ca01d0902b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/26/commits","review_comments_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/26/comments","review_comment_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/26/comments","statuses_url":"https://api.github.com/repos/noahmilstein/cinephile/statuses/4463aba9cef303cdcf569d3b7b62139f44f005bb","head":{"label":"noahmilstein:ajax","ref":"ajax","sha":"4463aba9cef303cdcf569d3b7b62139f44f005bb","user":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"repo":{"id":69880248,"name":"cinephile","full_name":"noahmilstein/cinephile","owner":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/noahmilstein/cinephile","description":"Cinema review site","fork":false,"url":"https://api.github.com/repos/noahmilstein/cinephile","forks_url":"https://api.github.com/repos/noahmilstein/cinephile/forks","keys_url":"https://api.github.com/repos/noahmilstein/cinephile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noahmilstein/cinephile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noahmilstein/cinephile/teams","hooks_url":"https://api.github.com/repos/noahmilstein/cinephile/hooks","issue_events_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/events{/number}","events_url":"https://api.github.com/repos/noahmilstein/cinephile/events","assignees_url":"https://api.github.com/repos/noahmilstein/cinephile/assignees{/user}","branches_url":"https://api.github.com/repos/noahmilstein/cinephile/branches{/branch}","tags_url":"https://api.github.com/repos/noahmilstein/cinephile/tags","blobs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noahmilstein/cinephile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/refs{/sha}","trees_url":"https://api.github.com/repos/noahmilstein/cinephile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noahmilstein/cinephile/statuses/{sha}","languages_url":"https://api.github.com/repos/noahmilstein/cinephile/languages","stargazers_url":"https://api.github.com/repos/noahmilstein/cinephile/stargazers","contributors_url":"https://api.github.com/repos/noahmilstein/cinephile/contributors","subscribers_url":"https://api.github.com/repos/noahmilstein/cinephile/subscribers","subscription_url":"https://api.github.com/repos/noahmilstein/cinephile/subscription","commits_url":"https://api.github.com/repos/noahmilstein/cinephile/commits{/sha}","git_commits_url":"https://api.github.com/repos/noahmilstein/cinephile/git/commits{/sha}","comments_url":"https://api.github.com/repos/noahmilstein/cinephile/comments{/number}","issue_comment_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/comments{/number}","contents_url":"https://api.github.com/repos/noahmilstein/cinephile/contents/{+path}","compare_url":"https://api.github.com/repos/noahmilstein/cinephile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noahmilstein/cinephile/merges","archive_url":"https://api.github.com/repos/noahmilstein/cinephile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noahmilstein/cinephile/downloads","issues_url":"https://api.github.com/repos/noahmilstein/cinephile/issues{/number}","pulls_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls{/number}","milestones_url":"https://api.github.com/repos/noahmilstein/cinephile/milestones{/number}","notifications_url":"https://api.github.com/repos/noahmilstein/cinephile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noahmilstein/cinephile/labels{/name}","releases_url":"https://api.github.com/repos/noahmilstein/cinephile/releases{/id}","deployments_url":"https://api.github.com/repos/noahmilstein/cinephile/deployments","created_at":"2016-10-03T14:45:05Z","updated_at":"2016-10-03T15:08:29Z","pushed_at":"2016-10-12T20:59:26Z","git_url":"git://github.com/noahmilstein/cinephile.git","ssh_url":"git@github.com:noahmilstein/cinephile.git","clone_url":"https://github.com/noahmilstein/cinephile.git","svn_url":"https://github.com/noahmilstein/cinephile","homepage":null,"size":877,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"noahmilstein:master","ref":"master","sha":"61cec9b1654216a00ba072c2d56fd286d494a59e","user":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"repo":{"id":69880248,"name":"cinephile","full_name":"noahmilstein/cinephile","owner":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/noahmilstein/cinephile","description":"Cinema review site","fork":false,"url":"https://api.github.com/repos/noahmilstein/cinephile","forks_url":"https://api.github.com/repos/noahmilstein/cinephile/forks","keys_url":"https://api.github.com/repos/noahmilstein/cinephile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noahmilstein/cinephile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noahmilstein/cinephile/teams","hooks_url":"https://api.github.com/repos/noahmilstein/cinephile/hooks","issue_events_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/events{/number}","events_url":"https://api.github.com/repos/noahmilstein/cinephile/events","assignees_url":"https://api.github.com/repos/noahmilstein/cinephile/assignees{/user}","branches_url":"https://api.github.com/repos/noahmilstein/cinephile/branches{/branch}","tags_url":"https://api.github.com/repos/noahmilstein/cinephile/tags","blobs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noahmilstein/cinephile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/refs{/sha}","trees_url":"https://api.github.com/repos/noahmilstein/cinephile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noahmilstein/cinephile/statuses/{sha}","languages_url":"https://api.github.com/repos/noahmilstein/cinephile/languages","stargazers_url":"https://api.github.com/repos/noahmilstein/cinephile/stargazers","contributors_url":"https://api.github.com/repos/noahmilstein/cinephile/contributors","subscribers_url":"https://api.github.com/repos/noahmilstein/cinephile/subscribers","subscription_url":"https://api.github.com/repos/noahmilstein/cinephile/subscription","commits_url":"https://api.github.com/repos/noahmilstein/cinephile/commits{/sha}","git_commits_url":"https://api.github.com/repos/noahmilstein/cinephile/git/commits{/sha}","comments_url":"https://api.github.com/repos/noahmilstein/cinephile/comments{/number}","issue_comment_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/comments{/number}","contents_url":"https://api.github.com/repos/noahmilstein/cinephile/contents/{+path}","compare_url":"https://api.github.com/repos/noahmilstein/cinephile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noahmilstein/cinephile/merges","archive_url":"https://api.github.com/repos/noahmilstein/cinephile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noahmilstein/cinephile/downloads","issues_url":"https://api.github.com/repos/noahmilstein/cinephile/issues{/number}","pulls_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls{/number}","milestones_url":"https://api.github.com/repos/noahmilstein/cinephile/milestones{/number}","notifications_url":"https://api.github.com/repos/noahmilstein/cinephile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noahmilstein/cinephile/labels{/name}","releases_url":"https://api.github.com/repos/noahmilstein/cinephile/releases{/id}","deployments_url":"https://api.github.com/repos/noahmilstein/cinephile/deployments","created_at":"2016-10-03T14:45:05Z","updated_at":"2016-10-03T15:08:29Z","pushed_at":"2016-10-12T20:59:26Z","git_url":"git://github.com/noahmilstein/cinephile.git","ssh_url":"git@github.com:noahmilstein/cinephile.git","clone_url":"https://github.com/noahmilstein/cinephile.git","svn_url":"https://github.com/noahmilstein/cinephile","homepage":null,"size":877,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/26"},"html":{"href":"https://github.com/noahmilstein/cinephile/pull/26"},"issue":{"href":"https://api.github.com/repos/noahmilstein/cinephile/issues/26"},"comments":{"href":"https://api.github.com/repos/noahmilstein/cinephile/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/noahmilstein/cinephile/statuses/4463aba9cef303cdcf569d3b7b62139f44f005bb"}}}}
{"actor":{"display_login":"jennceng"}}