{"action":"created","comment":{"url":"https://api.github.com/repos/bayborodin/test-guru/pulls/comments/184866682","pull_request_review_id":116150105,"id":184866682,"diff_hunk":"@@ -1,2 +1,25 @@\n module TestsHelper\n+\n+  TEST_LEVELS = { 0 => :easy, 1 => :elementary, 2 => :advanced, 3 => :hard }.freeze\n+\n+  def current_year\n+    Date.today.year\n+  end\n+\n+  def github_url(author, repo)\n+    link_to repo, \"https://github.com/#{author}/#{repo}\"\n+  end\n+\n+  def question_header(test_title, action)","path":"app/helpers/tests_helper.rb","position":13,"original_position":13,"commit_id":"1ec78d7f8681a61477729a52c7e6e2f08a29b76d","original_commit_id":"1ec78d7f8681a61477729a52c7e6e2f08a29b76d","user":{"login":"psylone","id":224141,"avatar_url":"https://avatars0.githubusercontent.com/u/224141?v=4","gravatar_id":"","url":"https://api.github.com/users/psylone","html_url":"https://github.com/psylone","followers_url":"https://api.github.com/users/psylone/followers","following_url":"https://api.github.com/users/psylone/following{/other_user}","gists_url":"https://api.github.com/users/psylone/gists{/gist_id}","starred_url":"https://api.github.com/users/psylone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psylone/subscriptions","organizations_url":"https://api.github.com/users/psylone/orgs","repos_url":"https://api.github.com/users/psylone/repos","events_url":"https://api.github.com/users/psylone/events{/privacy}","received_events_url":"https://api.github.com/users/psylone/received_events","type":"User","site_admin":false},"body":"Лучше это в хэлпер вопроса поместить.","created_at":"2018-04-28T22:26:33Z","updated_at":"2018-04-28T22:29:50Z","html_url":"https://github.com/bayborodin/test-guru/pull/8#discussion_r184866682","pull_request_url":"https://api.github.com/repos/bayborodin/test-guru/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/bayborodin/test-guru/pulls/comments/184866682"},"html":{"href":"https://github.com/bayborodin/test-guru/pull/8#discussion_r184866682"},"pull_request":{"href":"https://api.github.com/repos/bayborodin/test-guru/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/bayborodin/test-guru/pulls/8","id":184757103,"html_url":"https://github.com/bayborodin/test-guru/pull/8","diff_url":"https://github.com/bayborodin/test-guru/pull/8.diff","patch_url":"https://github.com/bayborodin/test-guru/pull/8.patch","issue_url":"https://api.github.com/repos/bayborodin/test-guru/issues/8","number":8,"state":"open","locked":false,"title":"add new views","user":{"login":"bayborodin","id":16595882,"avatar_url":"https://avatars1.githubusercontent.com/u/16595882?v=4","gravatar_id":"","url":"https://api.github.com/users/bayborodin","html_url":"https://github.com/bayborodin","followers_url":"https://api.github.com/users/bayborodin/followers","following_url":"https://api.github.com/users/bayborodin/following{/other_user}","gists_url":"https://api.github.com/users/bayborodin/gists{/gist_id}","starred_url":"https://api.github.com/users/bayborodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayborodin/subscriptions","organizations_url":"https://api.github.com/users/bayborodin/orgs","repos_url":"https://api.github.com/users/bayborodin/repos","events_url":"https://api.github.com/users/bayborodin/events{/privacy}","received_events_url":"https://api.github.com/users/bayborodin/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-28T01:44:50Z","updated_at":"2018-04-28T22:29:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3eb10730bf680c9422d4e92bfb85c9c77dfab82f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bayborodin/test-guru/pulls/8/commits","review_comments_url":"https://api.github.com/repos/bayborodin/test-guru/pulls/8/comments","review_comment_url":"https://api.github.com/repos/bayborodin/test-guru/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bayborodin/test-guru/issues/8/comments","statuses_url":"https://api.github.com/repos/bayborodin/test-guru/statuses/1ec78d7f8681a61477729a52c7e6e2f08a29b76d","head":{"label":"bayborodin:feature/views","ref":"feature/views","sha":"1ec78d7f8681a61477729a52c7e6e2f08a29b76d","user":{"login":"bayborodin","id":16595882,"avatar_url":"https://avatars1.githubusercontent.com/u/16595882?v=4","gravatar_id":"","url":"https://api.github.com/users/bayborodin","html_url":"https://github.com/bayborodin","followers_url":"https://api.github.com/users/bayborodin/followers","following_url":"https://api.github.com/users/bayborodin/following{/other_user}","gists_url":"https://api.github.com/users/bayborodin/gists{/gist_id}","starred_url":"https://api.github.com/users/bayborodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayborodin/subscriptions","organizations_url":"https://api.github.com/users/bayborodin/orgs","repos_url":"https://api.github.com/users/bayborodin/repos","events_url":"https://api.github.com/users/bayborodin/events{/privacy}","received_events_url":"https://api.github.com/users/bayborodin/received_events","type":"User","site_admin":false},"repo":{"id":126555791,"name":"test-guru","full_name":"bayborodin/test-guru","owner":{"login":"bayborodin","id":16595882,"avatar_url":"https://avatars1.githubusercontent.com/u/16595882?v=4","gravatar_id":"","url":"https://api.github.com/users/bayborodin","html_url":"https://github.com/bayborodin","followers_url":"https://api.github.com/users/bayborodin/followers","following_url":"https://api.github.com/users/bayborodin/following{/other_user}","gists_url":"https://api.github.com/users/bayborodin/gists{/gist_id}","starred_url":"https://api.github.com/users/bayborodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayborodin/subscriptions","organizations_url":"https://api.github.com/users/bayborodin/orgs","repos_url":"https://api.github.com/users/bayborodin/repos","events_url":"https://api.github.com/users/bayborodin/events{/privacy}","received_events_url":"https://api.github.com/users/bayborodin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bayborodin/test-guru","description":"Knowledge Test Engine","fork":false,"url":"https://api.github.com/repos/bayborodin/test-guru","forks_url":"https://api.github.com/repos/bayborodin/test-guru/forks","keys_url":"https://api.github.com/repos/bayborodin/test-guru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bayborodin/test-guru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bayborodin/test-guru/teams","hooks_url":"https://api.github.com/repos/bayborodin/test-guru/hooks","issue_events_url":"https://api.github.com/repos/bayborodin/test-guru/issues/events{/number}","events_url":"https://api.github.com/repos/bayborodin/test-guru/events","assignees_url":"https://api.github.com/repos/bayborodin/test-guru/assignees{/user}","branches_url":"https://api.github.com/repos/bayborodin/test-guru/branches{/branch}","tags_url":"https://api.github.com/repos/bayborodin/test-guru/tags","blobs_url":"https://api.github.com/repos/bayborodin/test-guru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bayborodin/test-guru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bayborodin/test-guru/git/refs{/sha}","trees_url":"https://api.github.com/repos/bayborodin/test-guru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bayborodin/test-guru/statuses/{sha}","languages_url":"https://api.github.com/repos/bayborodin/test-guru/languages","stargazers_url":"https://api.github.com/repos/bayborodin/test-guru/stargazers","contributors_url":"https://api.github.com/repos/bayborodin/test-guru/contributors","subscribers_url":"https://api.github.com/repos/bayborodin/test-guru/subscribers","subscription_url":"https://api.github.com/repos/bayborodin/test-guru/subscription","commits_url":"https://api.github.com/repos/bayborodin/test-guru/commits{/sha}","git_commits_url":"https://api.github.com/repos/bayborodin/test-guru/git/commits{/sha}","comments_url":"https://api.github.com/repos/bayborodin/test-guru/comments{/number}","issue_comment_url":"https://api.github.com/repos/bayborodin/test-guru/issues/comments{/number}","contents_url":"https://api.github.com/repos/bayborodin/test-guru/contents/{+path}","compare_url":"https://api.github.com/repos/bayborodin/test-guru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bayborodin/test-guru/merges","archive_url":"https://api.github.com/repos/bayborodin/test-guru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bayborodin/test-guru/downloads","issues_url":"https://api.github.com/repos/bayborodin/test-guru/issues{/number}","pulls_url":"https://api.github.com/repos/bayborodin/test-guru/pulls{/number}","milestones_url":"https://api.github.com/repos/bayborodin/test-guru/milestones{/number}","notifications_url":"https://api.github.com/repos/bayborodin/test-guru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bayborodin/test-guru/labels{/name}","releases_url":"https://api.github.com/repos/bayborodin/test-guru/releases{/id}","deployments_url":"https://api.github.com/repos/bayborodin/test-guru/deployments","created_at":"2018-03-24T01:41:21Z","updated_at":"2018-04-22T21:24:11Z","pushed_at":"2018-04-28T01:44:51Z","git_url":"git://github.com/bayborodin/test-guru.git","ssh_url":"git@github.com:bayborodin/test-guru.git","clone_url":"https://github.com/bayborodin/test-guru.git","svn_url":"https://github.com/bayborodin/test-guru","homepage":null,"size":181,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"bayborodin:master","ref":"master","sha":"b84756985d8db9dab02c52a62c7b25c926f06675","user":{"login":"bayborodin","id":16595882,"avatar_url":"https://avatars1.githubusercontent.com/u/16595882?v=4","gravatar_id":"","url":"https://api.github.com/users/bayborodin","html_url":"https://github.com/bayborodin","followers_url":"https://api.github.com/users/bayborodin/followers","following_url":"https://api.github.com/users/bayborodin/following{/other_user}","gists_url":"https://api.github.com/users/bayborodin/gists{/gist_id}","starred_url":"https://api.github.com/users/bayborodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayborodin/subscriptions","organizations_url":"https://api.github.com/users/bayborodin/orgs","repos_url":"https://api.github.com/users/bayborodin/repos","events_url":"https://api.github.com/users/bayborodin/events{/privacy}","received_events_url":"https://api.github.com/users/bayborodin/received_events","type":"User","site_admin":false},"repo":{"id":126555791,"name":"test-guru","full_name":"bayborodin/test-guru","owner":{"login":"bayborodin","id":16595882,"avatar_url":"https://avatars1.githubusercontent.com/u/16595882?v=4","gravatar_id":"","url":"https://api.github.com/users/bayborodin","html_url":"https://github.com/bayborodin","followers_url":"https://api.github.com/users/bayborodin/followers","following_url":"https://api.github.com/users/bayborodin/following{/other_user}","gists_url":"https://api.github.com/users/bayborodin/gists{/gist_id}","starred_url":"https://api.github.com/users/bayborodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayborodin/subscriptions","organizations_url":"https://api.github.com/users/bayborodin/orgs","repos_url":"https://api.github.com/users/bayborodin/repos","events_url":"https://api.github.com/users/bayborodin/events{/privacy}","received_events_url":"https://api.github.com/users/bayborodin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bayborodin/test-guru","description":"Knowledge Test Engine","fork":false,"url":"https://api.github.com/repos/bayborodin/test-guru","forks_url":"https://api.github.com/repos/bayborodin/test-guru/forks","keys_url":"https://api.github.com/repos/bayborodin/test-guru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bayborodin/test-guru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bayborodin/test-guru/teams","hooks_url":"https://api.github.com/repos/bayborodin/test-guru/hooks","issue_events_url":"https://api.github.com/repos/bayborodin/test-guru/issues/events{/number}","events_url":"https://api.github.com/repos/bayborodin/test-guru/events","assignees_url":"https://api.github.com/repos/bayborodin/test-guru/assignees{/user}","branches_url":"https://api.github.com/repos/bayborodin/test-guru/branches{/branch}","tags_url":"https://api.github.com/repos/bayborodin/test-guru/tags","blobs_url":"https://api.github.com/repos/bayborodin/test-guru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bayborodin/test-guru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bayborodin/test-guru/git/refs{/sha}","trees_url":"https://api.github.com/repos/bayborodin/test-guru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bayborodin/test-guru/statuses/{sha}","languages_url":"https://api.github.com/repos/bayborodin/test-guru/languages","stargazers_url":"https://api.github.com/repos/bayborodin/test-guru/stargazers","contributors_url":"https://api.github.com/repos/bayborodin/test-guru/contributors","subscribers_url":"https://api.github.com/repos/bayborodin/test-guru/subscribers","subscription_url":"https://api.github.com/repos/bayborodin/test-guru/subscription","commits_url":"https://api.github.com/repos/bayborodin/test-guru/commits{/sha}","git_commits_url":"https://api.github.com/repos/bayborodin/test-guru/git/commits{/sha}","comments_url":"https://api.github.com/repos/bayborodin/test-guru/comments{/number}","issue_comment_url":"https://api.github.com/repos/bayborodin/test-guru/issues/comments{/number}","contents_url":"https://api.github.com/repos/bayborodin/test-guru/contents/{+path}","compare_url":"https://api.github.com/repos/bayborodin/test-guru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bayborodin/test-guru/merges","archive_url":"https://api.github.com/repos/bayborodin/test-guru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bayborodin/test-guru/downloads","issues_url":"https://api.github.com/repos/bayborodin/test-guru/issues{/number}","pulls_url":"https://api.github.com/repos/bayborodin/test-guru/pulls{/number}","milestones_url":"https://api.github.com/repos/bayborodin/test-guru/milestones{/number}","notifications_url":"https://api.github.com/repos/bayborodin/test-guru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bayborodin/test-guru/labels{/name}","releases_url":"https://api.github.com/repos/bayborodin/test-guru/releases{/id}","deployments_url":"https://api.github.com/repos/bayborodin/test-guru/deployments","created_at":"2018-03-24T01:41:21Z","updated_at":"2018-04-22T21:24:11Z","pushed_at":"2018-04-28T01:44:51Z","git_url":"git://github.com/bayborodin/test-guru.git","ssh_url":"git@github.com:bayborodin/test-guru.git","clone_url":"https://github.com/bayborodin/test-guru.git","svn_url":"https://github.com/bayborodin/test-guru","homepage":null,"size":181,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bayborodin/test-guru/pulls/8"},"html":{"href":"https://github.com/bayborodin/test-guru/pull/8"},"issue":{"href":"https://api.github.com/repos/bayborodin/test-guru/issues/8"},"comments":{"href":"https://api.github.com/repos/bayborodin/test-guru/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/bayborodin/test-guru/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/bayborodin/test-guru/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bayborodin/test-guru/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/bayborodin/test-guru/statuses/1ec78d7f8681a61477729a52c7e6e2f08a29b76d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"psylone"}}