{"action":"created","comment":{"url":"https://api.github.com/repos/mgurbanzade/testguru/pulls/comments/176947923","pull_request_review_id":106737480,"id":176947923,"diff_hunk":"@@ -1,2 +1,11 @@\n module ApplicationHelper\n+  def resource_header(resource, name)\n+    return t(\".new_#{name}\") if resource.new_record?\n+    t(\".edit_#{name}\")\n+  end\n+\n+  def form_button(resource)\n+    return t('create') if resource.new_record?","path":"app/helpers/application_helper.rb","position":8,"original_position":8,"commit_id":"2a2a77dee639e0cf9df2e034c229ce3bfdf0d302","original_commit_id":"2a2a77dee639e0cf9df2e034c229ce3bfdf0d302","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":"Общие тексты можно вынести в скоуп `shared` или `common`","created_at":"2018-03-25T17:45:01Z","updated_at":"2018-03-25T17:56:47Z","html_url":"https://github.com/mgurbanzade/testguru/pull/11#discussion_r176947923","pull_request_url":"https://api.github.com/repos/mgurbanzade/testguru/pulls/11","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mgurbanzade/testguru/pulls/comments/176947923"},"html":{"href":"https://github.com/mgurbanzade/testguru/pull/11#discussion_r176947923"},"pull_request":{"href":"https://api.github.com/repos/mgurbanzade/testguru/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/mgurbanzade/testguru/pulls/11","id":177280617,"html_url":"https://github.com/mgurbanzade/testguru/pull/11","diff_url":"https://github.com/mgurbanzade/testguru/pull/11.diff","patch_url":"https://github.com/mgurbanzade/testguru/pull/11.patch","issue_url":"https://api.github.com/repos/mgurbanzade/testguru/issues/11","number":11,"state":"open","locked":false,"title":"Application Logic","user":{"login":"mgurbanzade","id":27240114,"avatar_url":"https://avatars0.githubusercontent.com/u/27240114?v=4","gravatar_id":"","url":"https://api.github.com/users/mgurbanzade","html_url":"https://github.com/mgurbanzade","followers_url":"https://api.github.com/users/mgurbanzade/followers","following_url":"https://api.github.com/users/mgurbanzade/following{/other_user}","gists_url":"https://api.github.com/users/mgurbanzade/gists{/gist_id}","starred_url":"https://api.github.com/users/mgurbanzade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgurbanzade/subscriptions","organizations_url":"https://api.github.com/users/mgurbanzade/orgs","repos_url":"https://api.github.com/users/mgurbanzade/repos","events_url":"https://api.github.com/users/mgurbanzade/events{/privacy}","received_events_url":"https://api.github.com/users/mgurbanzade/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-25T09:29:27Z","updated_at":"2018-03-25T17:56:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"829c1b9090c02b455e09897f5e534a44eefb2461","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mgurbanzade/testguru/pulls/11/commits","review_comments_url":"https://api.github.com/repos/mgurbanzade/testguru/pulls/11/comments","review_comment_url":"https://api.github.com/repos/mgurbanzade/testguru/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mgurbanzade/testguru/issues/11/comments","statuses_url":"https://api.github.com/repos/mgurbanzade/testguru/statuses/2a2a77dee639e0cf9df2e034c229ce3bfdf0d302","head":{"label":"mgurbanzade:app_logic","ref":"app_logic","sha":"2a2a77dee639e0cf9df2e034c229ce3bfdf0d302","user":{"login":"mgurbanzade","id":27240114,"avatar_url":"https://avatars0.githubusercontent.com/u/27240114?v=4","gravatar_id":"","url":"https://api.github.com/users/mgurbanzade","html_url":"https://github.com/mgurbanzade","followers_url":"https://api.github.com/users/mgurbanzade/followers","following_url":"https://api.github.com/users/mgurbanzade/following{/other_user}","gists_url":"https://api.github.com/users/mgurbanzade/gists{/gist_id}","starred_url":"https://api.github.com/users/mgurbanzade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgurbanzade/subscriptions","organizations_url":"https://api.github.com/users/mgurbanzade/orgs","repos_url":"https://api.github.com/users/mgurbanzade/repos","events_url":"https://api.github.com/users/mgurbanzade/events{/privacy}","received_events_url":"https://api.github.com/users/mgurbanzade/received_events","type":"User","site_admin":false},"repo":{"id":123666374,"name":"testguru","full_name":"mgurbanzade/testguru","owner":{"login":"mgurbanzade","id":27240114,"avatar_url":"https://avatars0.githubusercontent.com/u/27240114?v=4","gravatar_id":"","url":"https://api.github.com/users/mgurbanzade","html_url":"https://github.com/mgurbanzade","followers_url":"https://api.github.com/users/mgurbanzade/followers","following_url":"https://api.github.com/users/mgurbanzade/following{/other_user}","gists_url":"https://api.github.com/users/mgurbanzade/gists{/gist_id}","starred_url":"https://api.github.com/users/mgurbanzade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgurbanzade/subscriptions","organizations_url":"https://api.github.com/users/mgurbanzade/orgs","repos_url":"https://api.github.com/users/mgurbanzade/repos","events_url":"https://api.github.com/users/mgurbanzade/events{/privacy}","received_events_url":"https://api.github.com/users/mgurbanzade/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mgurbanzade/testguru","description":"testguru","fork":false,"url":"https://api.github.com/repos/mgurbanzade/testguru","forks_url":"https://api.github.com/repos/mgurbanzade/testguru/forks","keys_url":"https://api.github.com/repos/mgurbanzade/testguru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mgurbanzade/testguru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mgurbanzade/testguru/teams","hooks_url":"https://api.github.com/repos/mgurbanzade/testguru/hooks","issue_events_url":"https://api.github.com/repos/mgurbanzade/testguru/issues/events{/number}","events_url":"https://api.github.com/repos/mgurbanzade/testguru/events","assignees_url":"https://api.github.com/repos/mgurbanzade/testguru/assignees{/user}","branches_url":"https://api.github.com/repos/mgurbanzade/testguru/branches{/branch}","tags_url":"https://api.github.com/repos/mgurbanzade/testguru/tags","blobs_url":"https://api.github.com/repos/mgurbanzade/testguru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mgurbanzade/testguru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mgurbanzade/testguru/git/refs{/sha}","trees_url":"https://api.github.com/repos/mgurbanzade/testguru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mgurbanzade/testguru/statuses/{sha}","languages_url":"https://api.github.com/repos/mgurbanzade/testguru/languages","stargazers_url":"https://api.github.com/repos/mgurbanzade/testguru/stargazers","contributors_url":"https://api.github.com/repos/mgurbanzade/testguru/contributors","subscribers_url":"https://api.github.com/repos/mgurbanzade/testguru/subscribers","subscription_url":"https://api.github.com/repos/mgurbanzade/testguru/subscription","commits_url":"https://api.github.com/repos/mgurbanzade/testguru/commits{/sha}","git_commits_url":"https://api.github.com/repos/mgurbanzade/testguru/git/commits{/sha}","comments_url":"https://api.github.com/repos/mgurbanzade/testguru/comments{/number}","issue_comment_url":"https://api.github.com/repos/mgurbanzade/testguru/issues/comments{/number}","contents_url":"https://api.github.com/repos/mgurbanzade/testguru/contents/{+path}","compare_url":"https://api.github.com/repos/mgurbanzade/testguru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mgurbanzade/testguru/merges","archive_url":"https://api.github.com/repos/mgurbanzade/testguru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mgurbanzade/testguru/downloads","issues_url":"https://api.github.com/repos/mgurbanzade/testguru/issues{/number}","pulls_url":"https://api.github.com/repos/mgurbanzade/testguru/pulls{/number}","milestones_url":"https://api.github.com/repos/mgurbanzade/testguru/milestones{/number}","notifications_url":"https://api.github.com/repos/mgurbanzade/testguru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mgurbanzade/testguru/labels{/name}","releases_url":"https://api.github.com/repos/mgurbanzade/testguru/releases{/id}","deployments_url":"https://api.github.com/repos/mgurbanzade/testguru/deployments","created_at":"2018-03-03T06:31:49Z","updated_at":"2018-03-24T12:07:24Z","pushed_at":"2018-03-25T14:33:19Z","git_url":"git://github.com/mgurbanzade/testguru.git","ssh_url":"git@github.com:mgurbanzade/testguru.git","clone_url":"https://github.com/mgurbanzade/testguru.git","svn_url":"https://github.com/mgurbanzade/testguru","homepage":"","size":643,"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":"mgurbanzade:master","ref":"master","sha":"6662c3a09a5d3133f9794bb657bf4ceaab1a9690","user":{"login":"mgurbanzade","id":27240114,"avatar_url":"https://avatars0.githubusercontent.com/u/27240114?v=4","gravatar_id":"","url":"https://api.github.com/users/mgurbanzade","html_url":"https://github.com/mgurbanzade","followers_url":"https://api.github.com/users/mgurbanzade/followers","following_url":"https://api.github.com/users/mgurbanzade/following{/other_user}","gists_url":"https://api.github.com/users/mgurbanzade/gists{/gist_id}","starred_url":"https://api.github.com/users/mgurbanzade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgurbanzade/subscriptions","organizations_url":"https://api.github.com/users/mgurbanzade/orgs","repos_url":"https://api.github.com/users/mgurbanzade/repos","events_url":"https://api.github.com/users/mgurbanzade/events{/privacy}","received_events_url":"https://api.github.com/users/mgurbanzade/received_events","type":"User","site_admin":false},"repo":{"id":123666374,"name":"testguru","full_name":"mgurbanzade/testguru","owner":{"login":"mgurbanzade","id":27240114,"avatar_url":"https://avatars0.githubusercontent.com/u/27240114?v=4","gravatar_id":"","url":"https://api.github.com/users/mgurbanzade","html_url":"https://github.com/mgurbanzade","followers_url":"https://api.github.com/users/mgurbanzade/followers","following_url":"https://api.github.com/users/mgurbanzade/following{/other_user}","gists_url":"https://api.github.com/users/mgurbanzade/gists{/gist_id}","starred_url":"https://api.github.com/users/mgurbanzade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgurbanzade/subscriptions","organizations_url":"https://api.github.com/users/mgurbanzade/orgs","repos_url":"https://api.github.com/users/mgurbanzade/repos","events_url":"https://api.github.com/users/mgurbanzade/events{/privacy}","received_events_url":"https://api.github.com/users/mgurbanzade/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mgurbanzade/testguru","description":"testguru","fork":false,"url":"https://api.github.com/repos/mgurbanzade/testguru","forks_url":"https://api.github.com/repos/mgurbanzade/testguru/forks","keys_url":"https://api.github.com/repos/mgurbanzade/testguru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mgurbanzade/testguru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mgurbanzade/testguru/teams","hooks_url":"https://api.github.com/repos/mgurbanzade/testguru/hooks","issue_events_url":"https://api.github.com/repos/mgurbanzade/testguru/issues/events{/number}","events_url":"https://api.github.com/repos/mgurbanzade/testguru/events","assignees_url":"https://api.github.com/repos/mgurbanzade/testguru/assignees{/user}","branches_url":"https://api.github.com/repos/mgurbanzade/testguru/branches{/branch}","tags_url":"https://api.github.com/repos/mgurbanzade/testguru/tags","blobs_url":"https://api.github.com/repos/mgurbanzade/testguru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mgurbanzade/testguru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mgurbanzade/testguru/git/refs{/sha}","trees_url":"https://api.github.com/repos/mgurbanzade/testguru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mgurbanzade/testguru/statuses/{sha}","languages_url":"https://api.github.com/repos/mgurbanzade/testguru/languages","stargazers_url":"https://api.github.com/repos/mgurbanzade/testguru/stargazers","contributors_url":"https://api.github.com/repos/mgurbanzade/testguru/contributors","subscribers_url":"https://api.github.com/repos/mgurbanzade/testguru/subscribers","subscription_url":"https://api.github.com/repos/mgurbanzade/testguru/subscription","commits_url":"https://api.github.com/repos/mgurbanzade/testguru/commits{/sha}","git_commits_url":"https://api.github.com/repos/mgurbanzade/testguru/git/commits{/sha}","comments_url":"https://api.github.com/repos/mgurbanzade/testguru/comments{/number}","issue_comment_url":"https://api.github.com/repos/mgurbanzade/testguru/issues/comments{/number}","contents_url":"https://api.github.com/repos/mgurbanzade/testguru/contents/{+path}","compare_url":"https://api.github.com/repos/mgurbanzade/testguru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mgurbanzade/testguru/merges","archive_url":"https://api.github.com/repos/mgurbanzade/testguru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mgurbanzade/testguru/downloads","issues_url":"https://api.github.com/repos/mgurbanzade/testguru/issues{/number}","pulls_url":"https://api.github.com/repos/mgurbanzade/testguru/pulls{/number}","milestones_url":"https://api.github.com/repos/mgurbanzade/testguru/milestones{/number}","notifications_url":"https://api.github.com/repos/mgurbanzade/testguru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mgurbanzade/testguru/labels{/name}","releases_url":"https://api.github.com/repos/mgurbanzade/testguru/releases{/id}","deployments_url":"https://api.github.com/repos/mgurbanzade/testguru/deployments","created_at":"2018-03-03T06:31:49Z","updated_at":"2018-03-24T12:07:24Z","pushed_at":"2018-03-25T14:33:19Z","git_url":"git://github.com/mgurbanzade/testguru.git","ssh_url":"git@github.com:mgurbanzade/testguru.git","clone_url":"https://github.com/mgurbanzade/testguru.git","svn_url":"https://github.com/mgurbanzade/testguru","homepage":"","size":643,"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/mgurbanzade/testguru/pulls/11"},"html":{"href":"https://github.com/mgurbanzade/testguru/pull/11"},"issue":{"href":"https://api.github.com/repos/mgurbanzade/testguru/issues/11"},"comments":{"href":"https://api.github.com/repos/mgurbanzade/testguru/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/mgurbanzade/testguru/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/mgurbanzade/testguru/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mgurbanzade/testguru/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/mgurbanzade/testguru/statuses/2a2a77dee639e0cf9df2e034c229ce3bfdf0d302"}},"author_association":"OWNER"}}
{"actor":{"display_login":"iBublik"}}