{"action":"created","comment":{"url":"https://api.github.com/repos/trporter/blogreview/pulls/comments/71449384","id":71449384,"diff_hunk":"@@ -0,0 +1,14 @@\n+<!-- finish the other scenarios, in the untitled folder -->\n+<% if post.voted_up_by?(current_user) %>\n+  <%= link_to \"Undo vote Up\", post_votes_path(post, {vote: {is_up: true}}), remote: true, method: :delete %>\n+  (<%= post.vote_sum %>)\n+  <%= link_to \"Vote Down\", post_vote_path(post, post.votes.find_by_user_id(current_user.id), {vote: {is_up: false}}), method: :patch, remote: true %><br>\n+<% elsif post.voted_down_by?(current_user)%>\n+  <%= link_to \"Vote Up\", post_vote_path( post, post.votes.find_by_user_id(current_user.id), {vote: {is_up: true}}), method: :patch, remote: true %>\n+  (<%= post.vote_sum %>)\n+  <%= link_to \"Undo vote down\", post_vote_path(post, post.votes.find_by_user_id(current_user.id), {vote: {is_up: false}} ), method: :delete, remote: true, data: {disable_with: \"...\"} %><br>\n+<% else %>\n+  <%= link_to \"Vote Up\", post_votes_path(post, vote: {is_up: true}), method: :post, remote: true %>\n+  (<%= post.vote_sum %>)\n+  <%= link_to \"Vote Down\", post_votes_path(post, {vote: {is_up: false}}), method: :post, remote: true %><br>\n+<% end %>","path":"app/views/votes/_vote.html.erb","position":14,"original_position":14,"commit_id":"86be1d980124f6c86b1c25e1e02bd0c865ba5328","original_commit_id":"86be1d980124f6c86b1c25e1e02bd0c865ba5328","user":{"login":"anusaroha","id":19422744,"avatar_url":"https://avatars.githubusercontent.com/u/19422744?v=3","gravatar_id":"","url":"https://api.github.com/users/anusaroha","html_url":"https://github.com/anusaroha","followers_url":"https://api.github.com/users/anusaroha/followers","following_url":"https://api.github.com/users/anusaroha/following{/other_user}","gists_url":"https://api.github.com/users/anusaroha/gists{/gist_id}","starred_url":"https://api.github.com/users/anusaroha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anusaroha/subscriptions","organizations_url":"https://api.github.com/users/anusaroha/orgs","repos_url":"https://api.github.com/users/anusaroha/repos","events_url":"https://api.github.com/users/anusaroha/events{/privacy}","received_events_url":"https://api.github.com/users/anusaroha/received_events","type":"User","site_admin":false},"body":"// fix the vote up and vote down here","created_at":"2016-07-20T00:42:59Z","updated_at":"2016-07-20T00:42:59Z","html_url":"https://github.com/trporter/blogreview/pull/1#discussion_r71449384","pull_request_url":"https://api.github.com/repos/trporter/blogreview/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/trporter/blogreview/pulls/comments/71449384"},"html":{"href":"https://github.com/trporter/blogreview/pull/1#discussion_r71449384"},"pull_request":{"href":"https://api.github.com/repos/trporter/blogreview/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/trporter/blogreview/pulls/1","id":78070153,"html_url":"https://github.com/trporter/blogreview/pull/1","diff_url":"https://github.com/trporter/blogreview/pull/1.diff","patch_url":"https://github.com/trporter/blogreview/pull/1.patch","issue_url":"https://api.github.com/repos/trporter/blogreview/issues/1","number":1,"state":"open","locked":false,"title":"bring dummy up to date","user":{"login":"anusaroha","id":19422744,"avatar_url":"https://avatars.githubusercontent.com/u/19422744?v=3","gravatar_id":"","url":"https://api.github.com/users/anusaroha","html_url":"https://github.com/anusaroha","followers_url":"https://api.github.com/users/anusaroha/followers","following_url":"https://api.github.com/users/anusaroha/following{/other_user}","gists_url":"https://api.github.com/users/anusaroha/gists{/gist_id}","starred_url":"https://api.github.com/users/anusaroha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anusaroha/subscriptions","organizations_url":"https://api.github.com/users/anusaroha/orgs","repos_url":"https://api.github.com/users/anusaroha/repos","events_url":"https://api.github.com/users/anusaroha/events{/privacy}","received_events_url":"https://api.github.com/users/anusaroha/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-20T00:11:50Z","updated_at":"2016-07-20T00:42:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"713d68d4bf84f4256dd230b94d15cc1052148a32","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/trporter/blogreview/pulls/1/commits","review_comments_url":"https://api.github.com/repos/trporter/blogreview/pulls/1/comments","review_comment_url":"https://api.github.com/repos/trporter/blogreview/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trporter/blogreview/issues/1/comments","statuses_url":"https://api.github.com/repos/trporter/blogreview/statuses/86be1d980124f6c86b1c25e1e02bd0c865ba5328","head":{"label":"trporter:review","ref":"review","sha":"86be1d980124f6c86b1c25e1e02bd0c865ba5328","user":{"login":"trporter","id":18544338,"avatar_url":"https://avatars.githubusercontent.com/u/18544338?v=3","gravatar_id":"","url":"https://api.github.com/users/trporter","html_url":"https://github.com/trporter","followers_url":"https://api.github.com/users/trporter/followers","following_url":"https://api.github.com/users/trporter/following{/other_user}","gists_url":"https://api.github.com/users/trporter/gists{/gist_id}","starred_url":"https://api.github.com/users/trporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trporter/subscriptions","organizations_url":"https://api.github.com/users/trporter/orgs","repos_url":"https://api.github.com/users/trporter/repos","events_url":"https://api.github.com/users/trporter/events{/privacy}","received_events_url":"https://api.github.com/users/trporter/received_events","type":"User","site_admin":false},"repo":{"id":63735532,"name":"blogreview","full_name":"trporter/blogreview","owner":{"login":"trporter","id":18544338,"avatar_url":"https://avatars.githubusercontent.com/u/18544338?v=3","gravatar_id":"","url":"https://api.github.com/users/trporter","html_url":"https://github.com/trporter","followers_url":"https://api.github.com/users/trporter/followers","following_url":"https://api.github.com/users/trporter/following{/other_user}","gists_url":"https://api.github.com/users/trporter/gists{/gist_id}","starred_url":"https://api.github.com/users/trporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trporter/subscriptions","organizations_url":"https://api.github.com/users/trporter/orgs","repos_url":"https://api.github.com/users/trporter/repos","events_url":"https://api.github.com/users/trporter/events{/privacy}","received_events_url":"https://api.github.com/users/trporter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trporter/blogreview","description":null,"fork":false,"url":"https://api.github.com/repos/trporter/blogreview","forks_url":"https://api.github.com/repos/trporter/blogreview/forks","keys_url":"https://api.github.com/repos/trporter/blogreview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trporter/blogreview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trporter/blogreview/teams","hooks_url":"https://api.github.com/repos/trporter/blogreview/hooks","issue_events_url":"https://api.github.com/repos/trporter/blogreview/issues/events{/number}","events_url":"https://api.github.com/repos/trporter/blogreview/events","assignees_url":"https://api.github.com/repos/trporter/blogreview/assignees{/user}","branches_url":"https://api.github.com/repos/trporter/blogreview/branches{/branch}","tags_url":"https://api.github.com/repos/trporter/blogreview/tags","blobs_url":"https://api.github.com/repos/trporter/blogreview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trporter/blogreview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trporter/blogreview/git/refs{/sha}","trees_url":"https://api.github.com/repos/trporter/blogreview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trporter/blogreview/statuses/{sha}","languages_url":"https://api.github.com/repos/trporter/blogreview/languages","stargazers_url":"https://api.github.com/repos/trporter/blogreview/stargazers","contributors_url":"https://api.github.com/repos/trporter/blogreview/contributors","subscribers_url":"https://api.github.com/repos/trporter/blogreview/subscribers","subscription_url":"https://api.github.com/repos/trporter/blogreview/subscription","commits_url":"https://api.github.com/repos/trporter/blogreview/commits{/sha}","git_commits_url":"https://api.github.com/repos/trporter/blogreview/git/commits{/sha}","comments_url":"https://api.github.com/repos/trporter/blogreview/comments{/number}","issue_comment_url":"https://api.github.com/repos/trporter/blogreview/issues/comments{/number}","contents_url":"https://api.github.com/repos/trporter/blogreview/contents/{+path}","compare_url":"https://api.github.com/repos/trporter/blogreview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trporter/blogreview/merges","archive_url":"https://api.github.com/repos/trporter/blogreview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trporter/blogreview/downloads","issues_url":"https://api.github.com/repos/trporter/blogreview/issues{/number}","pulls_url":"https://api.github.com/repos/trporter/blogreview/pulls{/number}","milestones_url":"https://api.github.com/repos/trporter/blogreview/milestones{/number}","notifications_url":"https://api.github.com/repos/trporter/blogreview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trporter/blogreview/labels{/name}","releases_url":"https://api.github.com/repos/trporter/blogreview/releases{/id}","deployments_url":"https://api.github.com/repos/trporter/blogreview/deployments","created_at":"2016-07-19T23:54:44Z","updated_at":"2016-07-20T00:11:01Z","pushed_at":"2016-07-20T00:42:51Z","git_url":"git://github.com/trporter/blogreview.git","ssh_url":"git@github.com:trporter/blogreview.git","clone_url":"https://github.com/trporter/blogreview.git","svn_url":"https://github.com/trporter/blogreview","homepage":null,"size":0,"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":"trporter:master","ref":"master","sha":"14434deee759edae6d16beec539e5b088a6abfb6","user":{"login":"trporter","id":18544338,"avatar_url":"https://avatars.githubusercontent.com/u/18544338?v=3","gravatar_id":"","url":"https://api.github.com/users/trporter","html_url":"https://github.com/trporter","followers_url":"https://api.github.com/users/trporter/followers","following_url":"https://api.github.com/users/trporter/following{/other_user}","gists_url":"https://api.github.com/users/trporter/gists{/gist_id}","starred_url":"https://api.github.com/users/trporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trporter/subscriptions","organizations_url":"https://api.github.com/users/trporter/orgs","repos_url":"https://api.github.com/users/trporter/repos","events_url":"https://api.github.com/users/trporter/events{/privacy}","received_events_url":"https://api.github.com/users/trporter/received_events","type":"User","site_admin":false},"repo":{"id":63735532,"name":"blogreview","full_name":"trporter/blogreview","owner":{"login":"trporter","id":18544338,"avatar_url":"https://avatars.githubusercontent.com/u/18544338?v=3","gravatar_id":"","url":"https://api.github.com/users/trporter","html_url":"https://github.com/trporter","followers_url":"https://api.github.com/users/trporter/followers","following_url":"https://api.github.com/users/trporter/following{/other_user}","gists_url":"https://api.github.com/users/trporter/gists{/gist_id}","starred_url":"https://api.github.com/users/trporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trporter/subscriptions","organizations_url":"https://api.github.com/users/trporter/orgs","repos_url":"https://api.github.com/users/trporter/repos","events_url":"https://api.github.com/users/trporter/events{/privacy}","received_events_url":"https://api.github.com/users/trporter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trporter/blogreview","description":null,"fork":false,"url":"https://api.github.com/repos/trporter/blogreview","forks_url":"https://api.github.com/repos/trporter/blogreview/forks","keys_url":"https://api.github.com/repos/trporter/blogreview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trporter/blogreview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trporter/blogreview/teams","hooks_url":"https://api.github.com/repos/trporter/blogreview/hooks","issue_events_url":"https://api.github.com/repos/trporter/blogreview/issues/events{/number}","events_url":"https://api.github.com/repos/trporter/blogreview/events","assignees_url":"https://api.github.com/repos/trporter/blogreview/assignees{/user}","branches_url":"https://api.github.com/repos/trporter/blogreview/branches{/branch}","tags_url":"https://api.github.com/repos/trporter/blogreview/tags","blobs_url":"https://api.github.com/repos/trporter/blogreview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trporter/blogreview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trporter/blogreview/git/refs{/sha}","trees_url":"https://api.github.com/repos/trporter/blogreview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trporter/blogreview/statuses/{sha}","languages_url":"https://api.github.com/repos/trporter/blogreview/languages","stargazers_url":"https://api.github.com/repos/trporter/blogreview/stargazers","contributors_url":"https://api.github.com/repos/trporter/blogreview/contributors","subscribers_url":"https://api.github.com/repos/trporter/blogreview/subscribers","subscription_url":"https://api.github.com/repos/trporter/blogreview/subscription","commits_url":"https://api.github.com/repos/trporter/blogreview/commits{/sha}","git_commits_url":"https://api.github.com/repos/trporter/blogreview/git/commits{/sha}","comments_url":"https://api.github.com/repos/trporter/blogreview/comments{/number}","issue_comment_url":"https://api.github.com/repos/trporter/blogreview/issues/comments{/number}","contents_url":"https://api.github.com/repos/trporter/blogreview/contents/{+path}","compare_url":"https://api.github.com/repos/trporter/blogreview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trporter/blogreview/merges","archive_url":"https://api.github.com/repos/trporter/blogreview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trporter/blogreview/downloads","issues_url":"https://api.github.com/repos/trporter/blogreview/issues{/number}","pulls_url":"https://api.github.com/repos/trporter/blogreview/pulls{/number}","milestones_url":"https://api.github.com/repos/trporter/blogreview/milestones{/number}","notifications_url":"https://api.github.com/repos/trporter/blogreview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trporter/blogreview/labels{/name}","releases_url":"https://api.github.com/repos/trporter/blogreview/releases{/id}","deployments_url":"https://api.github.com/repos/trporter/blogreview/deployments","created_at":"2016-07-19T23:54:44Z","updated_at":"2016-07-20T00:11:01Z","pushed_at":"2016-07-20T00:42:51Z","git_url":"git://github.com/trporter/blogreview.git","ssh_url":"git@github.com:trporter/blogreview.git","clone_url":"https://github.com/trporter/blogreview.git","svn_url":"https://github.com/trporter/blogreview","homepage":null,"size":0,"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/trporter/blogreview/pulls/1"},"html":{"href":"https://github.com/trporter/blogreview/pull/1"},"issue":{"href":"https://api.github.com/repos/trporter/blogreview/issues/1"},"comments":{"href":"https://api.github.com/repos/trporter/blogreview/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/trporter/blogreview/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/trporter/blogreview/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trporter/blogreview/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/trporter/blogreview/statuses/86be1d980124f6c86b1c25e1e02bd0c865ba5328"}}}}
{"actor":{"display_login":"anusaroha"}}