{"action":"created","comment":{"url":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/comments/31009805","id":31009805,"diff_hunk":"@@ -1,4 +1,10 @@\n class ApplicationController < ActionController::Base\n+  before_action :require_login\n+\n+  private\n+    def not_authenticated\n+    redirect_to login_path, alert: \"Please login first\"","path":"app/controllers/application_controller.rb","position":6,"original_position":6,"commit_id":"4d9febabab8212c699e04cd5bd960626e02c24a3","original_commit_id":"4d9febabab8212c699e04cd5bd960626e02c24a3","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Use 2 (not 0) spaces for indentation.","created_at":"2015-05-26T07:31:45Z","updated_at":"2015-05-26T07:31:45Z","html_url":"https://github.com/Nikitavasil21/Startup/pull/20#discussion_r31009805","pull_request_url":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/comments/31009805"},"html":{"href":"https://github.com/Nikitavasil21/Startup/pull/20#discussion_r31009805"},"pull_request":{"href":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/20","id":36175793,"html_url":"https://github.com/Nikitavasil21/Startup/pull/20","diff_url":"https://github.com/Nikitavasil21/Startup/pull/20.diff","patch_url":"https://github.com/Nikitavasil21/Startup/pull/20.patch","issue_url":"https://api.github.com/repos/Nikitavasil21/Startup/issues/20","number":20,"state":"open","locked":false,"title":"Client side tests","user":{"login":"Nikitavasil21","id":9042902,"avatar_url":"https://avatars.githubusercontent.com/u/9042902?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikitavasil21","html_url":"https://github.com/Nikitavasil21","followers_url":"https://api.github.com/users/Nikitavasil21/followers","following_url":"https://api.github.com/users/Nikitavasil21/following{/other_user}","gists_url":"https://api.github.com/users/Nikitavasil21/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikitavasil21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikitavasil21/subscriptions","organizations_url":"https://api.github.com/users/Nikitavasil21/orgs","repos_url":"https://api.github.com/users/Nikitavasil21/repos","events_url":"https://api.github.com/users/Nikitavasil21/events{/privacy}","received_events_url":"https://api.github.com/users/Nikitavasil21/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-26T07:31:34Z","updated_at":"2015-05-26T07:31:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f4d454b34ae2e06acbf678d32130dd52715b37e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/20/commits","review_comments_url":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/20/comments","review_comment_url":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nikitavasil21/Startup/issues/20/comments","statuses_url":"https://api.github.com/repos/Nikitavasil21/Startup/statuses/4d9febabab8212c699e04cd5bd960626e02c24a3","head":{"label":"Nikitavasil21:Client_side_tests","ref":"Client_side_tests","sha":"4d9febabab8212c699e04cd5bd960626e02c24a3","user":{"login":"Nikitavasil21","id":9042902,"avatar_url":"https://avatars.githubusercontent.com/u/9042902?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikitavasil21","html_url":"https://github.com/Nikitavasil21","followers_url":"https://api.github.com/users/Nikitavasil21/followers","following_url":"https://api.github.com/users/Nikitavasil21/following{/other_user}","gists_url":"https://api.github.com/users/Nikitavasil21/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikitavasil21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikitavasil21/subscriptions","organizations_url":"https://api.github.com/users/Nikitavasil21/orgs","repos_url":"https://api.github.com/users/Nikitavasil21/repos","events_url":"https://api.github.com/users/Nikitavasil21/events{/privacy}","received_events_url":"https://api.github.com/users/Nikitavasil21/received_events","type":"User","site_admin":false},"repo":{"id":25549370,"name":"Startup","full_name":"Nikitavasil21/Startup","owner":{"login":"Nikitavasil21","id":9042902,"avatar_url":"https://avatars.githubusercontent.com/u/9042902?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikitavasil21","html_url":"https://github.com/Nikitavasil21","followers_url":"https://api.github.com/users/Nikitavasil21/followers","following_url":"https://api.github.com/users/Nikitavasil21/following{/other_user}","gists_url":"https://api.github.com/users/Nikitavasil21/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikitavasil21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikitavasil21/subscriptions","organizations_url":"https://api.github.com/users/Nikitavasil21/orgs","repos_url":"https://api.github.com/users/Nikitavasil21/repos","events_url":"https://api.github.com/users/Nikitavasil21/events{/privacy}","received_events_url":"https://api.github.com/users/Nikitavasil21/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nikitavasil21/Startup","description":"","fork":false,"url":"https://api.github.com/repos/Nikitavasil21/Startup","forks_url":"https://api.github.com/repos/Nikitavasil21/Startup/forks","keys_url":"https://api.github.com/repos/Nikitavasil21/Startup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nikitavasil21/Startup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nikitavasil21/Startup/teams","hooks_url":"https://api.github.com/repos/Nikitavasil21/Startup/hooks","issue_events_url":"https://api.github.com/repos/Nikitavasil21/Startup/issues/events{/number}","events_url":"https://api.github.com/repos/Nikitavasil21/Startup/events","assignees_url":"https://api.github.com/repos/Nikitavasil21/Startup/assignees{/user}","branches_url":"https://api.github.com/repos/Nikitavasil21/Startup/branches{/branch}","tags_url":"https://api.github.com/repos/Nikitavasil21/Startup/tags","blobs_url":"https://api.github.com/repos/Nikitavasil21/Startup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nikitavasil21/Startup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nikitavasil21/Startup/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nikitavasil21/Startup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nikitavasil21/Startup/statuses/{sha}","languages_url":"https://api.github.com/repos/Nikitavasil21/Startup/languages","stargazers_url":"https://api.github.com/repos/Nikitavasil21/Startup/stargazers","contributors_url":"https://api.github.com/repos/Nikitavasil21/Startup/contributors","subscribers_url":"https://api.github.com/repos/Nikitavasil21/Startup/subscribers","subscription_url":"https://api.github.com/repos/Nikitavasil21/Startup/subscription","commits_url":"https://api.github.com/repos/Nikitavasil21/Startup/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nikitavasil21/Startup/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nikitavasil21/Startup/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nikitavasil21/Startup/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nikitavasil21/Startup/contents/{+path}","compare_url":"https://api.github.com/repos/Nikitavasil21/Startup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nikitavasil21/Startup/merges","archive_url":"https://api.github.com/repos/Nikitavasil21/Startup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nikitavasil21/Startup/downloads","issues_url":"https://api.github.com/repos/Nikitavasil21/Startup/issues{/number}","pulls_url":"https://api.github.com/repos/Nikitavasil21/Startup/pulls{/number}","milestones_url":"https://api.github.com/repos/Nikitavasil21/Startup/milestones{/number}","notifications_url":"https://api.github.com/repos/Nikitavasil21/Startup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nikitavasil21/Startup/labels{/name}","releases_url":"https://api.github.com/repos/Nikitavasil21/Startup/releases{/id}","created_at":"2014-10-21T22:28:06Z","updated_at":"2015-05-02T17:21:32Z","pushed_at":"2015-05-26T07:31:34Z","git_url":"git://github.com/Nikitavasil21/Startup.git","ssh_url":"git@github.com:Nikitavasil21/Startup.git","clone_url":"https://github.com/Nikitavasil21/Startup.git","svn_url":"https://github.com/Nikitavasil21/Startup","homepage":null,"size":3000,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Nikitavasil21:master","ref":"master","sha":"7825c2da0d3304e4de1266937a7435b77ff6c589","user":{"login":"Nikitavasil21","id":9042902,"avatar_url":"https://avatars.githubusercontent.com/u/9042902?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikitavasil21","html_url":"https://github.com/Nikitavasil21","followers_url":"https://api.github.com/users/Nikitavasil21/followers","following_url":"https://api.github.com/users/Nikitavasil21/following{/other_user}","gists_url":"https://api.github.com/users/Nikitavasil21/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikitavasil21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikitavasil21/subscriptions","organizations_url":"https://api.github.com/users/Nikitavasil21/orgs","repos_url":"https://api.github.com/users/Nikitavasil21/repos","events_url":"https://api.github.com/users/Nikitavasil21/events{/privacy}","received_events_url":"https://api.github.com/users/Nikitavasil21/received_events","type":"User","site_admin":false},"repo":{"id":25549370,"name":"Startup","full_name":"Nikitavasil21/Startup","owner":{"login":"Nikitavasil21","id":9042902,"avatar_url":"https://avatars.githubusercontent.com/u/9042902?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikitavasil21","html_url":"https://github.com/Nikitavasil21","followers_url":"https://api.github.com/users/Nikitavasil21/followers","following_url":"https://api.github.com/users/Nikitavasil21/following{/other_user}","gists_url":"https://api.github.com/users/Nikitavasil21/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikitavasil21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikitavasil21/subscriptions","organizations_url":"https://api.github.com/users/Nikitavasil21/orgs","repos_url":"https://api.github.com/users/Nikitavasil21/repos","events_url":"https://api.github.com/users/Nikitavasil21/events{/privacy}","received_events_url":"https://api.github.com/users/Nikitavasil21/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nikitavasil21/Startup","description":"","fork":false,"url":"https://api.github.com/repos/Nikitavasil21/Startup","forks_url":"https://api.github.com/repos/Nikitavasil21/Startup/forks","keys_url":"https://api.github.com/repos/Nikitavasil21/Startup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nikitavasil21/Startup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nikitavasil21/Startup/teams","hooks_url":"https://api.github.com/repos/Nikitavasil21/Startup/hooks","issue_events_url":"https://api.github.com/repos/Nikitavasil21/Startup/issues/events{/number}","events_url":"https://api.github.com/repos/Nikitavasil21/Startup/events","assignees_url":"https://api.github.com/repos/Nikitavasil21/Startup/assignees{/user}","branches_url":"https://api.github.com/repos/Nikitavasil21/Startup/branches{/branch}","tags_url":"https://api.github.com/repos/Nikitavasil21/Startup/tags","blobs_url":"https://api.github.com/repos/Nikitavasil21/Startup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nikitavasil21/Startup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nikitavasil21/Startup/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nikitavasil21/Startup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nikitavasil21/Startup/statuses/{sha}","languages_url":"https://api.github.com/repos/Nikitavasil21/Startup/languages","stargazers_url":"https://api.github.com/repos/Nikitavasil21/Startup/stargazers","contributors_url":"https://api.github.com/repos/Nikitavasil21/Startup/contributors","subscribers_url":"https://api.github.com/repos/Nikitavasil21/Startup/subscribers","subscription_url":"https://api.github.com/repos/Nikitavasil21/Startup/subscription","commits_url":"https://api.github.com/repos/Nikitavasil21/Startup/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nikitavasil21/Startup/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nikitavasil21/Startup/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nikitavasil21/Startup/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nikitavasil21/Startup/contents/{+path}","compare_url":"https://api.github.com/repos/Nikitavasil21/Startup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nikitavasil21/Startup/merges","archive_url":"https://api.github.com/repos/Nikitavasil21/Startup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nikitavasil21/Startup/downloads","issues_url":"https://api.github.com/repos/Nikitavasil21/Startup/issues{/number}","pulls_url":"https://api.github.com/repos/Nikitavasil21/Startup/pulls{/number}","milestones_url":"https://api.github.com/repos/Nikitavasil21/Startup/milestones{/number}","notifications_url":"https://api.github.com/repos/Nikitavasil21/Startup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nikitavasil21/Startup/labels{/name}","releases_url":"https://api.github.com/repos/Nikitavasil21/Startup/releases{/id}","created_at":"2014-10-21T22:28:06Z","updated_at":"2015-05-02T17:21:32Z","pushed_at":"2015-05-26T07:31:34Z","git_url":"git://github.com/Nikitavasil21/Startup.git","ssh_url":"git@github.com:Nikitavasil21/Startup.git","clone_url":"https://github.com/Nikitavasil21/Startup.git","svn_url":"https://github.com/Nikitavasil21/Startup","homepage":null,"size":3000,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/20"},"html":{"href":"https://github.com/Nikitavasil21/Startup/pull/20"},"issue":{"href":"https://api.github.com/repos/Nikitavasil21/Startup/issues/20"},"comments":{"href":"https://api.github.com/repos/Nikitavasil21/Startup/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nikitavasil21/Startup/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/Nikitavasil21/Startup/statuses/4d9febabab8212c699e04cd5bd960626e02c24a3"}}}}