{"action":"created","comment":{"url":"https://api.github.com/repos/skitial/qna/pulls/comments/156465073","pull_request_review_id":82940019,"id":156465073,"diff_hunk":"@@ -0,0 +1,10 @@\n+.vote data-id=\"#{resource.id}\"\n+  - if user_signed_in? && ! current_user.owner_of?(resource)\n+    = button_to '-', '', remote: true, id: 'vote-down-btn', class: \"#{'btn_hide' if resource.voted?(current_user)}\"\n+    .vote_score\n+      =resource.vote_score\n+    = button_to '+', '', remote: true, id: 'vote-up-btn', class: \"#{'btn_hide' if resource.voted?(current_user)}\"\n+    = button_to 'reset', '', id: 'vote-reset-btn', remote: true, class: \"#{'btn_hide' if !resource.voted?(current_user)}\"","path":"app/views/common/_rating.html.slim","position":7,"original_position":7,"commit_id":"3aec1cff266fe8fcd4d4c9ed39fb83abef590601","original_commit_id":"3aec1cff266fe8fcd4d4c9ed39fb83abef590601","user":{"login":"iBublik","id":11278497,"avatar_url":"https://avatars1.githubusercontent.com/u/11278497?v=4","gravatar_id":"","url":"https://api.github.com/users/iBublik","html_url":"https://github.com/iBublik","followers_url":"https://api.github.com/users/iBublik/followers","following_url":"https://api.github.com/users/iBublik/following{/other_user}","gists_url":"https://api.github.com/users/iBublik/gists{/gist_id}","starred_url":"https://api.github.com/users/iBublik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iBublik/subscriptions","organizations_url":"https://api.github.com/users/iBublik/orgs","repos_url":"https://api.github.com/users/iBublik/repos","events_url":"https://api.github.com/users/iBublik/events{/privacy}","received_events_url":"https://api.github.com/users/iBublik/received_events","type":"User","site_admin":false},"body":"Вместо простых отрицаний лучше `unless` использовать","created_at":"2017-12-12T19:08:20Z","updated_at":"2017-12-12T19:31:15Z","html_url":"https://github.com/skitial/qna/pull/9#discussion_r156465073","pull_request_url":"https://api.github.com/repos/skitial/qna/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/skitial/qna/pulls/comments/156465073"},"html":{"href":"https://github.com/skitial/qna/pull/9#discussion_r156465073"},"pull_request":{"href":"https://api.github.com/repos/skitial/qna/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/skitial/qna/pulls/9","id":157766077,"html_url":"https://github.com/skitial/qna/pull/9","diff_url":"https://github.com/skitial/qna/pull/9.diff","patch_url":"https://github.com/skitial/qna/pull/9.patch","issue_url":"https://api.github.com/repos/skitial/qna/issues/9","number":9,"state":"open","locked":false,"title":"Karma","user":{"login":"skitial","id":30797333,"avatar_url":"https://avatars0.githubusercontent.com/u/30797333?v=4","gravatar_id":"","url":"https://api.github.com/users/skitial","html_url":"https://github.com/skitial","followers_url":"https://api.github.com/users/skitial/followers","following_url":"https://api.github.com/users/skitial/following{/other_user}","gists_url":"https://api.github.com/users/skitial/gists{/gist_id}","starred_url":"https://api.github.com/users/skitial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skitial/subscriptions","organizations_url":"https://api.github.com/users/skitial/orgs","repos_url":"https://api.github.com/users/skitial/repos","events_url":"https://api.github.com/users/skitial/events{/privacy}","received_events_url":"https://api.github.com/users/skitial/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-12T08:37:59Z","updated_at":"2017-12-12T19:31:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2769eeba91525f927c44e4a5e031c7c3bf7cd409","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/skitial/qna/pulls/9/commits","review_comments_url":"https://api.github.com/repos/skitial/qna/pulls/9/comments","review_comment_url":"https://api.github.com/repos/skitial/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/skitial/qna/issues/9/comments","statuses_url":"https://api.github.com/repos/skitial/qna/statuses/3aec1cff266fe8fcd4d4c9ed39fb83abef590601","head":{"label":"skitial:Karma","ref":"Karma","sha":"3aec1cff266fe8fcd4d4c9ed39fb83abef590601","user":{"login":"skitial","id":30797333,"avatar_url":"https://avatars0.githubusercontent.com/u/30797333?v=4","gravatar_id":"","url":"https://api.github.com/users/skitial","html_url":"https://github.com/skitial","followers_url":"https://api.github.com/users/skitial/followers","following_url":"https://api.github.com/users/skitial/following{/other_user}","gists_url":"https://api.github.com/users/skitial/gists{/gist_id}","starred_url":"https://api.github.com/users/skitial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skitial/subscriptions","organizations_url":"https://api.github.com/users/skitial/orgs","repos_url":"https://api.github.com/users/skitial/repos","events_url":"https://api.github.com/users/skitial/events{/privacy}","received_events_url":"https://api.github.com/users/skitial/received_events","type":"User","site_admin":false},"repo":{"id":110205923,"name":"qna","full_name":"skitial/qna","owner":{"login":"skitial","id":30797333,"avatar_url":"https://avatars0.githubusercontent.com/u/30797333?v=4","gravatar_id":"","url":"https://api.github.com/users/skitial","html_url":"https://github.com/skitial","followers_url":"https://api.github.com/users/skitial/followers","following_url":"https://api.github.com/users/skitial/following{/other_user}","gists_url":"https://api.github.com/users/skitial/gists{/gist_id}","starred_url":"https://api.github.com/users/skitial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skitial/subscriptions","organizations_url":"https://api.github.com/users/skitial/orgs","repos_url":"https://api.github.com/users/skitial/repos","events_url":"https://api.github.com/users/skitial/events{/privacy}","received_events_url":"https://api.github.com/users/skitial/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skitial/qna","description":null,"fork":false,"url":"https://api.github.com/repos/skitial/qna","forks_url":"https://api.github.com/repos/skitial/qna/forks","keys_url":"https://api.github.com/repos/skitial/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skitial/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skitial/qna/teams","hooks_url":"https://api.github.com/repos/skitial/qna/hooks","issue_events_url":"https://api.github.com/repos/skitial/qna/issues/events{/number}","events_url":"https://api.github.com/repos/skitial/qna/events","assignees_url":"https://api.github.com/repos/skitial/qna/assignees{/user}","branches_url":"https://api.github.com/repos/skitial/qna/branches{/branch}","tags_url":"https://api.github.com/repos/skitial/qna/tags","blobs_url":"https://api.github.com/repos/skitial/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skitial/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skitial/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/skitial/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skitial/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/skitial/qna/languages","stargazers_url":"https://api.github.com/repos/skitial/qna/stargazers","contributors_url":"https://api.github.com/repos/skitial/qna/contributors","subscribers_url":"https://api.github.com/repos/skitial/qna/subscribers","subscription_url":"https://api.github.com/repos/skitial/qna/subscription","commits_url":"https://api.github.com/repos/skitial/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/skitial/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/skitial/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/skitial/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/skitial/qna/contents/{+path}","compare_url":"https://api.github.com/repos/skitial/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skitial/qna/merges","archive_url":"https://api.github.com/repos/skitial/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skitial/qna/downloads","issues_url":"https://api.github.com/repos/skitial/qna/issues{/number}","pulls_url":"https://api.github.com/repos/skitial/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/skitial/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/skitial/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skitial/qna/labels{/name}","releases_url":"https://api.github.com/repos/skitial/qna/releases{/id}","deployments_url":"https://api.github.com/repos/skitial/qna/deployments","created_at":"2017-11-10T05:17:21Z","updated_at":"2017-11-10T05:18:41Z","pushed_at":"2017-12-12T08:37:59Z","git_url":"git://github.com/skitial/qna.git","ssh_url":"git@github.com:skitial/qna.git","clone_url":"https://github.com/skitial/qna.git","svn_url":"https://github.com/skitial/qna","homepage":null,"size":174,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"skitial:master","ref":"master","sha":"16398721770ab9374aa0d7ae1571a0b4231cb5a4","user":{"login":"skitial","id":30797333,"avatar_url":"https://avatars0.githubusercontent.com/u/30797333?v=4","gravatar_id":"","url":"https://api.github.com/users/skitial","html_url":"https://github.com/skitial","followers_url":"https://api.github.com/users/skitial/followers","following_url":"https://api.github.com/users/skitial/following{/other_user}","gists_url":"https://api.github.com/users/skitial/gists{/gist_id}","starred_url":"https://api.github.com/users/skitial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skitial/subscriptions","organizations_url":"https://api.github.com/users/skitial/orgs","repos_url":"https://api.github.com/users/skitial/repos","events_url":"https://api.github.com/users/skitial/events{/privacy}","received_events_url":"https://api.github.com/users/skitial/received_events","type":"User","site_admin":false},"repo":{"id":110205923,"name":"qna","full_name":"skitial/qna","owner":{"login":"skitial","id":30797333,"avatar_url":"https://avatars0.githubusercontent.com/u/30797333?v=4","gravatar_id":"","url":"https://api.github.com/users/skitial","html_url":"https://github.com/skitial","followers_url":"https://api.github.com/users/skitial/followers","following_url":"https://api.github.com/users/skitial/following{/other_user}","gists_url":"https://api.github.com/users/skitial/gists{/gist_id}","starred_url":"https://api.github.com/users/skitial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skitial/subscriptions","organizations_url":"https://api.github.com/users/skitial/orgs","repos_url":"https://api.github.com/users/skitial/repos","events_url":"https://api.github.com/users/skitial/events{/privacy}","received_events_url":"https://api.github.com/users/skitial/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skitial/qna","description":null,"fork":false,"url":"https://api.github.com/repos/skitial/qna","forks_url":"https://api.github.com/repos/skitial/qna/forks","keys_url":"https://api.github.com/repos/skitial/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skitial/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skitial/qna/teams","hooks_url":"https://api.github.com/repos/skitial/qna/hooks","issue_events_url":"https://api.github.com/repos/skitial/qna/issues/events{/number}","events_url":"https://api.github.com/repos/skitial/qna/events","assignees_url":"https://api.github.com/repos/skitial/qna/assignees{/user}","branches_url":"https://api.github.com/repos/skitial/qna/branches{/branch}","tags_url":"https://api.github.com/repos/skitial/qna/tags","blobs_url":"https://api.github.com/repos/skitial/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skitial/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skitial/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/skitial/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skitial/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/skitial/qna/languages","stargazers_url":"https://api.github.com/repos/skitial/qna/stargazers","contributors_url":"https://api.github.com/repos/skitial/qna/contributors","subscribers_url":"https://api.github.com/repos/skitial/qna/subscribers","subscription_url":"https://api.github.com/repos/skitial/qna/subscription","commits_url":"https://api.github.com/repos/skitial/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/skitial/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/skitial/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/skitial/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/skitial/qna/contents/{+path}","compare_url":"https://api.github.com/repos/skitial/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skitial/qna/merges","archive_url":"https://api.github.com/repos/skitial/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skitial/qna/downloads","issues_url":"https://api.github.com/repos/skitial/qna/issues{/number}","pulls_url":"https://api.github.com/repos/skitial/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/skitial/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/skitial/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skitial/qna/labels{/name}","releases_url":"https://api.github.com/repos/skitial/qna/releases{/id}","deployments_url":"https://api.github.com/repos/skitial/qna/deployments","created_at":"2017-11-10T05:17:21Z","updated_at":"2017-11-10T05:18:41Z","pushed_at":"2017-12-12T08:37:59Z","git_url":"git://github.com/skitial/qna.git","ssh_url":"git@github.com:skitial/qna.git","clone_url":"https://github.com/skitial/qna.git","svn_url":"https://github.com/skitial/qna","homepage":null,"size":174,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/skitial/qna/pulls/9"},"html":{"href":"https://github.com/skitial/qna/pull/9"},"issue":{"href":"https://api.github.com/repos/skitial/qna/issues/9"},"comments":{"href":"https://api.github.com/repos/skitial/qna/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/skitial/qna/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/skitial/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/skitial/qna/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/skitial/qna/statuses/3aec1cff266fe8fcd4d4c9ed39fb83abef590601"}},"author_association":"OWNER"}}
{"actor":{"display_login":"iBublik"}}