{"action":"created","comment":{"url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/comments/180298590","pull_request_review_id":110694357,"id":180298590,"diff_hunk":"@@ -0,0 +1,47 @@\n+class QuestionsController < ApplicationController\n+  before_action :find_test, only: [:index, :create]\n+  before_action :find_question, only: [:show, :destroy]\n+\n+  rescue_from ActiveRecord::RecordNotFound, with: :question_not_found\n+\n+  def index\n+    render plain: @test.questions.pluck(:body)\n+  end\n+\n+  def show\n+    render plain: \"Question: #{@question.body}.\\nAnswers: #{@question.answers.pluck(:body)}\"\n+  end\n+\n+  def new\n+  end\n+\n+  def create\n+    question = @test.questions.create(question_params)\n+    question.save!\n+    render plain: question.inspect\n+  end\n+\n+  def destroy\n+    render plain: @question.destroy\n+    sleep(5)","path":"app/controllers/questions_controller.rb","position":26,"original_position":26,"commit_id":"f9aa4db7413e243a8c1fffb44cf7185526ed6142","original_commit_id":"f9aa4db7413e243a8c1fffb44cf7185526ed6142","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":"Зачем?","created_at":"2018-04-10T05:10:34Z","updated_at":"2018-04-10T05:13:14Z","html_url":"https://github.com/d1ma-angel/tn-test-guru/pull/6#discussion_r180298590","pull_request_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/comments/180298590"},"html":{"href":"https://github.com/d1ma-angel/tn-test-guru/pull/6#discussion_r180298590"},"pull_request":{"href":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/6","id":180439629,"html_url":"https://github.com/d1ma-angel/tn-test-guru/pull/6","diff_url":"https://github.com/d1ma-angel/tn-test-guru/pull/6.diff","patch_url":"https://github.com/d1ma-angel/tn-test-guru/pull/6.patch","issue_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/issues/6","number":6,"state":"open","locked":false,"title":"Part 7 solve","user":{"login":"d1ma-angel","id":6829684,"avatar_url":"https://avatars2.githubusercontent.com/u/6829684?v=4","gravatar_id":"","url":"https://api.github.com/users/d1ma-angel","html_url":"https://github.com/d1ma-angel","followers_url":"https://api.github.com/users/d1ma-angel/followers","following_url":"https://api.github.com/users/d1ma-angel/following{/other_user}","gists_url":"https://api.github.com/users/d1ma-angel/gists{/gist_id}","starred_url":"https://api.github.com/users/d1ma-angel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d1ma-angel/subscriptions","organizations_url":"https://api.github.com/users/d1ma-angel/orgs","repos_url":"https://api.github.com/users/d1ma-angel/repos","events_url":"https://api.github.com/users/d1ma-angel/events{/privacy}","received_events_url":"https://api.github.com/users/d1ma-angel/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-09T22:02:34Z","updated_at":"2018-04-10T05:13:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03762b461b51796599b0bdfb65e507097565d0d6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/6/commits","review_comments_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/6/comments","review_comment_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/comments{/number}","comments_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/issues/6/comments","statuses_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/statuses/f9aa4db7413e243a8c1fffb44cf7185526ed6142","head":{"label":"d1ma-angel:part-7","ref":"part-7","sha":"f9aa4db7413e243a8c1fffb44cf7185526ed6142","user":{"login":"d1ma-angel","id":6829684,"avatar_url":"https://avatars2.githubusercontent.com/u/6829684?v=4","gravatar_id":"","url":"https://api.github.com/users/d1ma-angel","html_url":"https://github.com/d1ma-angel","followers_url":"https://api.github.com/users/d1ma-angel/followers","following_url":"https://api.github.com/users/d1ma-angel/following{/other_user}","gists_url":"https://api.github.com/users/d1ma-angel/gists{/gist_id}","starred_url":"https://api.github.com/users/d1ma-angel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d1ma-angel/subscriptions","organizations_url":"https://api.github.com/users/d1ma-angel/orgs","repos_url":"https://api.github.com/users/d1ma-angel/repos","events_url":"https://api.github.com/users/d1ma-angel/events{/privacy}","received_events_url":"https://api.github.com/users/d1ma-angel/received_events","type":"User","site_admin":false},"repo":{"id":126224204,"name":"tn-test-guru","full_name":"d1ma-angel/tn-test-guru","owner":{"login":"d1ma-angel","id":6829684,"avatar_url":"https://avatars2.githubusercontent.com/u/6829684?v=4","gravatar_id":"","url":"https://api.github.com/users/d1ma-angel","html_url":"https://github.com/d1ma-angel","followers_url":"https://api.github.com/users/d1ma-angel/followers","following_url":"https://api.github.com/users/d1ma-angel/following{/other_user}","gists_url":"https://api.github.com/users/d1ma-angel/gists{/gist_id}","starred_url":"https://api.github.com/users/d1ma-angel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d1ma-angel/subscriptions","organizations_url":"https://api.github.com/users/d1ma-angel/orgs","repos_url":"https://api.github.com/users/d1ma-angel/repos","events_url":"https://api.github.com/users/d1ma-angel/events{/privacy}","received_events_url":"https://api.github.com/users/d1ma-angel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/d1ma-angel/tn-test-guru","description":null,"fork":false,"url":"https://api.github.com/repos/d1ma-angel/tn-test-guru","forks_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/forks","keys_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/teams","hooks_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/hooks","issue_events_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/issues/events{/number}","events_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/events","assignees_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/assignees{/user}","branches_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/branches{/branch}","tags_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/tags","blobs_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/git/refs{/sha}","trees_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/statuses/{sha}","languages_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/languages","stargazers_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/stargazers","contributors_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/contributors","subscribers_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/subscribers","subscription_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/subscription","commits_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/commits{/sha}","git_commits_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/git/commits{/sha}","comments_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/comments{/number}","issue_comment_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/issues/comments{/number}","contents_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/contents/{+path}","compare_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/merges","archive_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/downloads","issues_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/issues{/number}","pulls_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls{/number}","milestones_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/milestones{/number}","notifications_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/labels{/name}","releases_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/releases{/id}","deployments_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/deployments","created_at":"2018-03-21T18:34:58Z","updated_at":"2018-04-05T04:30:26Z","pushed_at":"2018-04-09T22:02:35Z","git_url":"git://github.com/d1ma-angel/tn-test-guru.git","ssh_url":"git@github.com:d1ma-angel/tn-test-guru.git","clone_url":"https://github.com/d1ma-angel/tn-test-guru.git","svn_url":"https://github.com/d1ma-angel/tn-test-guru","homepage":null,"size":91,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"d1ma-angel:master","ref":"master","sha":"d860ec58c8140f7b42701e822fb0c212eb0efa01","user":{"login":"d1ma-angel","id":6829684,"avatar_url":"https://avatars2.githubusercontent.com/u/6829684?v=4","gravatar_id":"","url":"https://api.github.com/users/d1ma-angel","html_url":"https://github.com/d1ma-angel","followers_url":"https://api.github.com/users/d1ma-angel/followers","following_url":"https://api.github.com/users/d1ma-angel/following{/other_user}","gists_url":"https://api.github.com/users/d1ma-angel/gists{/gist_id}","starred_url":"https://api.github.com/users/d1ma-angel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d1ma-angel/subscriptions","organizations_url":"https://api.github.com/users/d1ma-angel/orgs","repos_url":"https://api.github.com/users/d1ma-angel/repos","events_url":"https://api.github.com/users/d1ma-angel/events{/privacy}","received_events_url":"https://api.github.com/users/d1ma-angel/received_events","type":"User","site_admin":false},"repo":{"id":126224204,"name":"tn-test-guru","full_name":"d1ma-angel/tn-test-guru","owner":{"login":"d1ma-angel","id":6829684,"avatar_url":"https://avatars2.githubusercontent.com/u/6829684?v=4","gravatar_id":"","url":"https://api.github.com/users/d1ma-angel","html_url":"https://github.com/d1ma-angel","followers_url":"https://api.github.com/users/d1ma-angel/followers","following_url":"https://api.github.com/users/d1ma-angel/following{/other_user}","gists_url":"https://api.github.com/users/d1ma-angel/gists{/gist_id}","starred_url":"https://api.github.com/users/d1ma-angel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d1ma-angel/subscriptions","organizations_url":"https://api.github.com/users/d1ma-angel/orgs","repos_url":"https://api.github.com/users/d1ma-angel/repos","events_url":"https://api.github.com/users/d1ma-angel/events{/privacy}","received_events_url":"https://api.github.com/users/d1ma-angel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/d1ma-angel/tn-test-guru","description":null,"fork":false,"url":"https://api.github.com/repos/d1ma-angel/tn-test-guru","forks_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/forks","keys_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/teams","hooks_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/hooks","issue_events_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/issues/events{/number}","events_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/events","assignees_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/assignees{/user}","branches_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/branches{/branch}","tags_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/tags","blobs_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/git/refs{/sha}","trees_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/statuses/{sha}","languages_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/languages","stargazers_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/stargazers","contributors_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/contributors","subscribers_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/subscribers","subscription_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/subscription","commits_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/commits{/sha}","git_commits_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/git/commits{/sha}","comments_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/comments{/number}","issue_comment_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/issues/comments{/number}","contents_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/contents/{+path}","compare_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/merges","archive_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/downloads","issues_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/issues{/number}","pulls_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls{/number}","milestones_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/milestones{/number}","notifications_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/labels{/name}","releases_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/releases{/id}","deployments_url":"https://api.github.com/repos/d1ma-angel/tn-test-guru/deployments","created_at":"2018-03-21T18:34:58Z","updated_at":"2018-04-05T04:30:26Z","pushed_at":"2018-04-09T22:02:35Z","git_url":"git://github.com/d1ma-angel/tn-test-guru.git","ssh_url":"git@github.com:d1ma-angel/tn-test-guru.git","clone_url":"https://github.com/d1ma-angel/tn-test-guru.git","svn_url":"https://github.com/d1ma-angel/tn-test-guru","homepage":null,"size":91,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/6"},"html":{"href":"https://github.com/d1ma-angel/tn-test-guru/pull/6"},"issue":{"href":"https://api.github.com/repos/d1ma-angel/tn-test-guru/issues/6"},"comments":{"href":"https://api.github.com/repos/d1ma-angel/tn-test-guru/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/d1ma-angel/tn-test-guru/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/d1ma-angel/tn-test-guru/statuses/f9aa4db7413e243a8c1fffb44cf7185526ed6142"}},"author_association":"OWNER"}}
{"actor":{"display_login":"iBublik"}}