{"action":"created","comment":{"url":"https://api.github.com/repos/miheykrug/qna/pulls/comments/186401676","pull_request_review_id":117970220,"id":186401676,"diff_hunk":"@@ -3,4 +3,9 @@ class Answer < ApplicationRecord\n   belongs_to :user\n \n   validates :body, presence: true\n+\n+  def set_best_answer","path":"app/models/answer.rb","position":5,"original_position":5,"commit_id":"8af6c38027a0518901cbf9efcbf3e0d7ce49bc65","original_commit_id":"8af6c38027a0518901cbf9efcbf3e0d7ce49bc65","user":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars3.githubusercontent.com/u/968537?v=4","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"body":"А где же тесты модели на этот метод? Любой метод, который ты пишешь в моделях/контроллере должен покрываться тестами","created_at":"2018-05-07T11:58:33Z","updated_at":"2018-05-07T11:58:36Z","html_url":"https://github.com/miheykrug/qna/pull/5#discussion_r186401676","pull_request_url":"https://api.github.com/repos/miheykrug/qna/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/miheykrug/qna/pulls/comments/186401676"},"html":{"href":"https://github.com/miheykrug/qna/pull/5#discussion_r186401676"},"pull_request":{"href":"https://api.github.com/repos/miheykrug/qna/pulls/5"}},"in_reply_to_id":186401216},"pull_request":{"url":"https://api.github.com/repos/miheykrug/qna/pulls/5","id":186158968,"html_url":"https://github.com/miheykrug/qna/pull/5","diff_url":"https://github.com/miheykrug/qna/pull/5.diff","patch_url":"https://github.com/miheykrug/qna/pull/5.patch","issue_url":"https://api.github.com/repos/miheykrug/qna/issues/5","number":5,"state":"open","locked":false,"title":"Lesson7","user":{"login":"miheykrug","id":23484059,"avatar_url":"https://avatars0.githubusercontent.com/u/23484059?v=4","gravatar_id":"","url":"https://api.github.com/users/miheykrug","html_url":"https://github.com/miheykrug","followers_url":"https://api.github.com/users/miheykrug/followers","following_url":"https://api.github.com/users/miheykrug/following{/other_user}","gists_url":"https://api.github.com/users/miheykrug/gists{/gist_id}","starred_url":"https://api.github.com/users/miheykrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miheykrug/subscriptions","organizations_url":"https://api.github.com/users/miheykrug/orgs","repos_url":"https://api.github.com/users/miheykrug/repos","events_url":"https://api.github.com/users/miheykrug/events{/privacy}","received_events_url":"https://api.github.com/users/miheykrug/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-05T14:24:59Z","updated_at":"2018-05-07T11:58:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3166d34a0a9bc659dd75fb97d1ecdf423b92f486","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/miheykrug/qna/pulls/5/commits","review_comments_url":"https://api.github.com/repos/miheykrug/qna/pulls/5/comments","review_comment_url":"https://api.github.com/repos/miheykrug/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/miheykrug/qna/issues/5/comments","statuses_url":"https://api.github.com/repos/miheykrug/qna/statuses/8af6c38027a0518901cbf9efcbf3e0d7ce49bc65","head":{"label":"miheykrug:lesson7","ref":"lesson7","sha":"8af6c38027a0518901cbf9efcbf3e0d7ce49bc65","user":{"login":"miheykrug","id":23484059,"avatar_url":"https://avatars0.githubusercontent.com/u/23484059?v=4","gravatar_id":"","url":"https://api.github.com/users/miheykrug","html_url":"https://github.com/miheykrug","followers_url":"https://api.github.com/users/miheykrug/followers","following_url":"https://api.github.com/users/miheykrug/following{/other_user}","gists_url":"https://api.github.com/users/miheykrug/gists{/gist_id}","starred_url":"https://api.github.com/users/miheykrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miheykrug/subscriptions","organizations_url":"https://api.github.com/users/miheykrug/orgs","repos_url":"https://api.github.com/users/miheykrug/repos","events_url":"https://api.github.com/users/miheykrug/events{/privacy}","received_events_url":"https://api.github.com/users/miheykrug/received_events","type":"User","site_admin":false},"repo":{"id":130740915,"name":"qna","full_name":"miheykrug/qna","owner":{"login":"miheykrug","id":23484059,"avatar_url":"https://avatars0.githubusercontent.com/u/23484059?v=4","gravatar_id":"","url":"https://api.github.com/users/miheykrug","html_url":"https://github.com/miheykrug","followers_url":"https://api.github.com/users/miheykrug/followers","following_url":"https://api.github.com/users/miheykrug/following{/other_user}","gists_url":"https://api.github.com/users/miheykrug/gists{/gist_id}","starred_url":"https://api.github.com/users/miheykrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miheykrug/subscriptions","organizations_url":"https://api.github.com/users/miheykrug/orgs","repos_url":"https://api.github.com/users/miheykrug/repos","events_url":"https://api.github.com/users/miheykrug/events{/privacy}","received_events_url":"https://api.github.com/users/miheykrug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miheykrug/qna","description":null,"fork":false,"url":"https://api.github.com/repos/miheykrug/qna","forks_url":"https://api.github.com/repos/miheykrug/qna/forks","keys_url":"https://api.github.com/repos/miheykrug/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miheykrug/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miheykrug/qna/teams","hooks_url":"https://api.github.com/repos/miheykrug/qna/hooks","issue_events_url":"https://api.github.com/repos/miheykrug/qna/issues/events{/number}","events_url":"https://api.github.com/repos/miheykrug/qna/events","assignees_url":"https://api.github.com/repos/miheykrug/qna/assignees{/user}","branches_url":"https://api.github.com/repos/miheykrug/qna/branches{/branch}","tags_url":"https://api.github.com/repos/miheykrug/qna/tags","blobs_url":"https://api.github.com/repos/miheykrug/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miheykrug/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miheykrug/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/miheykrug/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miheykrug/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/miheykrug/qna/languages","stargazers_url":"https://api.github.com/repos/miheykrug/qna/stargazers","contributors_url":"https://api.github.com/repos/miheykrug/qna/contributors","subscribers_url":"https://api.github.com/repos/miheykrug/qna/subscribers","subscription_url":"https://api.github.com/repos/miheykrug/qna/subscription","commits_url":"https://api.github.com/repos/miheykrug/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/miheykrug/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/miheykrug/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/miheykrug/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/miheykrug/qna/contents/{+path}","compare_url":"https://api.github.com/repos/miheykrug/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miheykrug/qna/merges","archive_url":"https://api.github.com/repos/miheykrug/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miheykrug/qna/downloads","issues_url":"https://api.github.com/repos/miheykrug/qna/issues{/number}","pulls_url":"https://api.github.com/repos/miheykrug/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/miheykrug/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/miheykrug/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miheykrug/qna/labels{/name}","releases_url":"https://api.github.com/repos/miheykrug/qna/releases{/id}","deployments_url":"https://api.github.com/repos/miheykrug/qna/deployments","created_at":"2018-04-23T18:40:29Z","updated_at":"2018-05-02T18:02:55Z","pushed_at":"2018-05-06T15:02:46Z","git_url":"git://github.com/miheykrug/qna.git","ssh_url":"git@github.com:miheykrug/qna.git","clone_url":"https://github.com/miheykrug/qna.git","svn_url":"https://github.com/miheykrug/qna","homepage":null,"size":116,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"miheykrug:master","ref":"master","sha":"f667d1939baafb4cd6439077323539093c3eaef2","user":{"login":"miheykrug","id":23484059,"avatar_url":"https://avatars0.githubusercontent.com/u/23484059?v=4","gravatar_id":"","url":"https://api.github.com/users/miheykrug","html_url":"https://github.com/miheykrug","followers_url":"https://api.github.com/users/miheykrug/followers","following_url":"https://api.github.com/users/miheykrug/following{/other_user}","gists_url":"https://api.github.com/users/miheykrug/gists{/gist_id}","starred_url":"https://api.github.com/users/miheykrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miheykrug/subscriptions","organizations_url":"https://api.github.com/users/miheykrug/orgs","repos_url":"https://api.github.com/users/miheykrug/repos","events_url":"https://api.github.com/users/miheykrug/events{/privacy}","received_events_url":"https://api.github.com/users/miheykrug/received_events","type":"User","site_admin":false},"repo":{"id":130740915,"name":"qna","full_name":"miheykrug/qna","owner":{"login":"miheykrug","id":23484059,"avatar_url":"https://avatars0.githubusercontent.com/u/23484059?v=4","gravatar_id":"","url":"https://api.github.com/users/miheykrug","html_url":"https://github.com/miheykrug","followers_url":"https://api.github.com/users/miheykrug/followers","following_url":"https://api.github.com/users/miheykrug/following{/other_user}","gists_url":"https://api.github.com/users/miheykrug/gists{/gist_id}","starred_url":"https://api.github.com/users/miheykrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miheykrug/subscriptions","organizations_url":"https://api.github.com/users/miheykrug/orgs","repos_url":"https://api.github.com/users/miheykrug/repos","events_url":"https://api.github.com/users/miheykrug/events{/privacy}","received_events_url":"https://api.github.com/users/miheykrug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miheykrug/qna","description":null,"fork":false,"url":"https://api.github.com/repos/miheykrug/qna","forks_url":"https://api.github.com/repos/miheykrug/qna/forks","keys_url":"https://api.github.com/repos/miheykrug/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miheykrug/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miheykrug/qna/teams","hooks_url":"https://api.github.com/repos/miheykrug/qna/hooks","issue_events_url":"https://api.github.com/repos/miheykrug/qna/issues/events{/number}","events_url":"https://api.github.com/repos/miheykrug/qna/events","assignees_url":"https://api.github.com/repos/miheykrug/qna/assignees{/user}","branches_url":"https://api.github.com/repos/miheykrug/qna/branches{/branch}","tags_url":"https://api.github.com/repos/miheykrug/qna/tags","blobs_url":"https://api.github.com/repos/miheykrug/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miheykrug/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miheykrug/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/miheykrug/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miheykrug/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/miheykrug/qna/languages","stargazers_url":"https://api.github.com/repos/miheykrug/qna/stargazers","contributors_url":"https://api.github.com/repos/miheykrug/qna/contributors","subscribers_url":"https://api.github.com/repos/miheykrug/qna/subscribers","subscription_url":"https://api.github.com/repos/miheykrug/qna/subscription","commits_url":"https://api.github.com/repos/miheykrug/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/miheykrug/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/miheykrug/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/miheykrug/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/miheykrug/qna/contents/{+path}","compare_url":"https://api.github.com/repos/miheykrug/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miheykrug/qna/merges","archive_url":"https://api.github.com/repos/miheykrug/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miheykrug/qna/downloads","issues_url":"https://api.github.com/repos/miheykrug/qna/issues{/number}","pulls_url":"https://api.github.com/repos/miheykrug/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/miheykrug/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/miheykrug/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miheykrug/qna/labels{/name}","releases_url":"https://api.github.com/repos/miheykrug/qna/releases{/id}","deployments_url":"https://api.github.com/repos/miheykrug/qna/deployments","created_at":"2018-04-23T18:40:29Z","updated_at":"2018-05-02T18:02:55Z","pushed_at":"2018-05-06T15:02:46Z","git_url":"git://github.com/miheykrug/qna.git","ssh_url":"git@github.com:miheykrug/qna.git","clone_url":"https://github.com/miheykrug/qna.git","svn_url":"https://github.com/miheykrug/qna","homepage":null,"size":116,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/miheykrug/qna/pulls/5"},"html":{"href":"https://github.com/miheykrug/qna/pull/5"},"issue":{"href":"https://api.github.com/repos/miheykrug/qna/issues/5"},"comments":{"href":"https://api.github.com/repos/miheykrug/qna/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/miheykrug/qna/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/miheykrug/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/miheykrug/qna/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/miheykrug/qna/statuses/8af6c38027a0518901cbf9efcbf3e0d7ce49bc65"}},"author_association":"OWNER"}}
{"actor":{"display_login":"vkurennov"}}