payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Brilux/margatsni/pulls/comments/264635654","pull_request_review_id":213335520,"id":264635654,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2NDYzNTY1NA==","diff_hunk":"@@ -0,0 +1,24 @@\n+import { Injectable } from '@angular/core';\n+import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';\n+import { Observable } from 'rxjs';\n+import { AuthService } from './auth.service';\n+\n+@Injectable({\n+  providedIn: 'root'\n+})\n+export class AuthGuard implements CanActivate {\n+\n+  constructor(private authService: AuthService,\n+              private router: Router) {}\n+\n+  canActivate(\n+    next: ActivatedRouteSnapshot,\n+    state: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean {\n+    if (this.authService.loggedIn()) {\n+      this.router.navigate(['']);\n+      return false;\n+    } else {","path":"src/app/auth/auth.guard.ts","position":20,"original_position":20,"commit_id":"12239c797407705f5208b9d0d40d471640c27dc6","original_commit_id":"12239c797407705f5208b9d0d40d471640c27dc6","user":{"login":"VladislavChudak","id":30158098,"node_id":"MDQ6VXNlcjMwMTU4MDk4","avatar_url":"https://avatars1.githubusercontent.com/u/30158098?v=4","gravatar_id":"","url":"https://api.github.com/users/VladislavChudak","html_url":"https://github.com/VladislavChudak","followers_url":"https://api.github.com/users/VladislavChudak/followers","following_url":"https://api.github.com/users/VladislavChudak/following{/other_user}","gists_url":"https://api.github.com/users/VladislavChudak/gists{/gist_id}","starred_url":"https://api.github.com/users/VladislavChudak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladislavChudak/subscriptions","organizations_url":"https://api.github.com/users/VladislavChudak/orgs","repos_url":"https://api.github.com/users/VladislavChudak/repos","events_url":"https://api.github.com/users/VladislavChudak/events{/privacy}","received_events_url":"https://api.github.com/users/VladislavChudak/received_events","type":"User","site_admin":false},"body":"remove else, not necessary","created_at":"2019-03-12T11:39:06Z","updated_at":"2019-03-12T11:39:06Z","html_url":"https://github.com/Brilux/margatsni/pull/2#discussion_r264635654","pull_request_url":"https://api.github.com/repos/Brilux/margatsni/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Brilux/margatsni/pulls/comments/264635654"},"html":{"href":"https://github.com/Brilux/margatsni/pull/2#discussion_r264635654"},"pull_request":{"href":"https://api.github.com/repos/Brilux/margatsni/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Brilux/margatsni/pulls/2","id":260322778,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYwMzIyNzc4","html_url":"https://github.com/Brilux/margatsni/pull/2","diff_url":"https://github.com/Brilux/margatsni/pull/2.diff","patch_url":"https://github.com/Brilux/margatsni/pull/2.patch","issue_url":"https://api.github.com/repos/Brilux/margatsni/issues/2","number":2,"state":"open","locked":false,"title":"Authorization","user":{"login":"Brilux","id":26401208,"node_id":"MDQ6VXNlcjI2NDAxMjA4","avatar_url":"https://avatars0.githubusercontent.com/u/26401208?v=4","gravatar_id":"","url":"https://api.github.com/users/Brilux","html_url":"https://github.com/Brilux","followers_url":"https://api.github.com/users/Brilux/followers","following_url":"https://api.github.com/users/Brilux/following{/other_user}","gists_url":"https://api.github.com/users/Brilux/gists{/gist_id}","starred_url":"https://api.github.com/users/Brilux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brilux/subscriptions","organizations_url":"https://api.github.com/users/Brilux/orgs","repos_url":"https://api.github.com/users/Brilux/repos","events_url":"https://api.github.com/users/Brilux/events{/privacy}","received_events_url":"https://api.github.com/users/Brilux/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-03-12T11:29:11Z","updated_at":"2019-03-12T11:39:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27d11e0041804792f35c22e233f1a06033134983","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Brilux/margatsni/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Brilux/margatsni/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Brilux/margatsni/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Brilux/margatsni/issues/2/comments","statuses_url":"https://api.github.com/repos/Brilux/margatsni/statuses/12239c797407705f5208b9d0d40d471640c27dc6","head":{"label":"Brilux:authorization","ref":"authorization","sha":"12239c797407705f5208b9d0d40d471640c27dc6","user":{"login":"Brilux","id":26401208,"node_id":"MDQ6VXNlcjI2NDAxMjA4","avatar_url":"https://avatars0.githubusercontent.com/u/26401208?v=4","gravatar_id":"","url":"https://api.github.com/users/Brilux","html_url":"https://github.com/Brilux","followers_url":"https://api.github.com/users/Brilux/followers","following_url":"https://api.github.com/users/Brilux/following{/other_user}","gists_url":"https://api.github.com/users/Brilux/gists{/gist_id}","starred_url":"https://api.github.com/users/Brilux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brilux/subscriptions","organizations_url":"https://api.github.com/users/Brilux/orgs","repos_url":"https://api.github.com/users/Brilux/repos","events_url":"https://api.github.com/users/Brilux/events{/privacy}","received_events_url":"https://api.github.com/users/Brilux/received_events","type":"User","site_admin":false},"repo":{"id":170153000,"node_id":"MDEwOlJlcG9zaXRvcnkxNzAxNTMwMDA=","name":"margatsni","full_name":"Brilux/margatsni","private":false,"owner":{"login":"Brilux","id":26401208,"node_id":"MDQ6VXNlcjI2NDAxMjA4","avatar_url":"https://avatars0.githubusercontent.com/u/26401208?v=4","gravatar_id":"","url":"https://api.github.com/users/Brilux","html_url":"https://github.com/Brilux","followers_url":"https://api.github.com/users/Brilux/followers","following_url":"https://api.github.com/users/Brilux/following{/other_user}","gists_url":"https://api.github.com/users/Brilux/gists{/gist_id}","starred_url":"https://api.github.com/users/Brilux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brilux/subscriptions","organizations_url":"https://api.github.com/users/Brilux/orgs","repos_url":"https://api.github.com/users/Brilux/repos","events_url":"https://api.github.com/users/Brilux/events{/privacy}","received_events_url":"https://api.github.com/users/Brilux/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Brilux/margatsni","description":null,"fork":false,"url":"https://api.github.com/repos/Brilux/margatsni","forks_url":"https://api.github.com/repos/Brilux/margatsni/forks","keys_url":"https://api.github.com/repos/Brilux/margatsni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Brilux/margatsni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Brilux/margatsni/teams","hooks_url":"https://api.github.com/repos/Brilux/margatsni/hooks","issue_events_url":"https://api.github.com/repos/Brilux/margatsni/issues/events{/number}","events_url":"https://api.github.com/repos/Brilux/margatsni/events","assignees_url":"https://api.github.com/repos/Brilux/margatsni/assignees{/user}","branches_url":"https://api.github.com/repos/Brilux/margatsni/branches{/branch}","tags_url":"https://api.github.com/repos/Brilux/margatsni/tags","blobs_url":"https://api.github.com/repos/Brilux/margatsni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Brilux/margatsni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Brilux/margatsni/git/refs{/sha}","trees_url":"https://api.github.com/repos/Brilux/margatsni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Brilux/margatsni/statuses/{sha}","languages_url":"https://api.github.com/repos/Brilux/margatsni/languages","stargazers_url":"https://api.github.com/repos/Brilux/margatsni/stargazers","contributors_url":"https://api.github.com/repos/Brilux/margatsni/contributors","subscribers_url":"https://api.github.com/repos/Brilux/margatsni/subscribers","subscription_url":"https://api.github.com/repos/Brilux/margatsni/subscription","commits_url":"https://api.github.com/repos/Brilux/margatsni/commits{/sha}","git_commits_url":"https://api.github.com/repos/Brilux/margatsni/git/commits{/sha}","comments_url":"https://api.github.com/repos/Brilux/margatsni/comments{/number}","issue_comment_url":"https://api.github.com/repos/Brilux/margatsni/issues/comments{/number}","contents_url":"https://api.github.com/repos/Brilux/margatsni/contents/{+path}","compare_url":"https://api.github.com/repos/Brilux/margatsni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Brilux/margatsni/merges","archive_url":"https://api.github.com/repos/Brilux/margatsni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Brilux/margatsni/downloads","issues_url":"https://api.github.com/repos/Brilux/margatsni/issues{/number}","pulls_url":"https://api.github.com/repos/Brilux/margatsni/pulls{/number}","milestones_url":"https://api.github.com/repos/Brilux/margatsni/milestones{/number}","notifications_url":"https://api.github.com/repos/Brilux/margatsni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Brilux/margatsni/labels{/name}","releases_url":"https://api.github.com/repos/Brilux/margatsni/releases{/id}","deployments_url":"https://api.github.com/repos/Brilux/margatsni/deployments","created_at":"2019-02-11T15:31:36Z","updated_at":"2019-02-25T15:36:14Z","pushed_at":"2019-03-12T11:29:11Z","git_url":"git://github.com/Brilux/margatsni.git","ssh_url":"git@github.com:Brilux/margatsni.git","clone_url":"https://github.com/Brilux/margatsni.git","svn_url":"https://github.com/Brilux/margatsni","homepage":null,"size":236,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"Brilux:master","ref":"master","sha":"eddcc9acfa97cc008b046a4e7cb00ef5ded97bf9","user":{"login":"Brilux","id":26401208,"node_id":"MDQ6VXNlcjI2NDAxMjA4","avatar_url":"https://avatars0.githubusercontent.com/u/26401208?v=4","gravatar_id":"","url":"https://api.github.com/users/Brilux","html_url":"https://github.com/Brilux","followers_url":"https://api.github.com/users/Brilux/followers","following_url":"https://api.github.com/users/Brilux/following{/other_user}","gists_url":"https://api.github.com/users/Brilux/gists{/gist_id}","starred_url":"https://api.github.com/users/Brilux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brilux/subscriptions","organizations_url":"https://api.github.com/users/Brilux/orgs","repos_url":"https://api.github.com/users/Brilux/repos","events_url":"https://api.github.com/users/Brilux/events{/privacy}","received_events_url":"https://api.github.com/users/Brilux/received_events","type":"User","site_admin":false},"repo":{"id":170153000,"node_id":"MDEwOlJlcG9zaXRvcnkxNzAxNTMwMDA=","name":"margatsni","full_name":"Brilux/margatsni","private":false,"owner":{"login":"Brilux","id":26401208,"node_id":"MDQ6VXNlcjI2NDAxMjA4","avatar_url":"https://avatars0.githubusercontent.com/u/26401208?v=4","gravatar_id":"","url":"https://api.github.com/users/Brilux","html_url":"https://github.com/Brilux","followers_url":"https://api.github.com/users/Brilux/followers","following_url":"https://api.github.com/users/Brilux/following{/other_user}","gists_url":"https://api.github.com/users/Brilux/gists{/gist_id}","starred_url":"https://api.github.com/users/Brilux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brilux/subscriptions","organizations_url":"https://api.github.com/users/Brilux/orgs","repos_url":"https://api.github.com/users/Brilux/repos","events_url":"https://api.github.com/users/Brilux/events{/privacy}","received_events_url":"https://api.github.com/users/Brilux/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Brilux/margatsni","description":null,"fork":false,"url":"https://api.github.com/repos/Brilux/margatsni","forks_url":"https://api.github.com/repos/Brilux/margatsni/forks","keys_url":"https://api.github.com/repos/Brilux/margatsni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Brilux/margatsni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Brilux/margatsni/teams","hooks_url":"https://api.github.com/repos/Brilux/margatsni/hooks","issue_events_url":"https://api.github.com/repos/Brilux/margatsni/issues/events{/number}","events_url":"https://api.github.com/repos/Brilux/margatsni/events","assignees_url":"https://api.github.com/repos/Brilux/margatsni/assignees{/user}","branches_url":"https://api.github.com/repos/Brilux/margatsni/branches{/branch}","tags_url":"https://api.github.com/repos/Brilux/margatsni/tags","blobs_url":"https://api.github.com/repos/Brilux/margatsni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Brilux/margatsni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Brilux/margatsni/git/refs{/sha}","trees_url":"https://api.github.com/repos/Brilux/margatsni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Brilux/margatsni/statuses/{sha}","languages_url":"https://api.github.com/repos/Brilux/margatsni/languages","stargazers_url":"https://api.github.com/repos/Brilux/margatsni/stargazers","contributors_url":"https://api.github.com/repos/Brilux/margatsni/contributors","subscribers_url":"https://api.github.com/repos/Brilux/margatsni/subscribers","subscription_url":"https://api.github.com/repos/Brilux/margatsni/subscription","commits_url":"https://api.github.com/repos/Brilux/margatsni/commits{/sha}","git_commits_url":"https://api.github.com/repos/Brilux/margatsni/git/commits{/sha}","comments_url":"https://api.github.com/repos/Brilux/margatsni/comments{/number}","issue_comment_url":"https://api.github.com/repos/Brilux/margatsni/issues/comments{/number}","contents_url":"https://api.github.com/repos/Brilux/margatsni/contents/{+path}","compare_url":"https://api.github.com/repos/Brilux/margatsni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Brilux/margatsni/merges","archive_url":"https://api.github.com/repos/Brilux/margatsni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Brilux/margatsni/downloads","issues_url":"https://api.github.com/repos/Brilux/margatsni/issues{/number}","pulls_url":"https://api.github.com/repos/Brilux/margatsni/pulls{/number}","milestones_url":"https://api.github.com/repos/Brilux/margatsni/milestones{/number}","notifications_url":"https://api.github.com/repos/Brilux/margatsni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Brilux/margatsni/labels{/name}","releases_url":"https://api.github.com/repos/Brilux/margatsni/releases{/id}","deployments_url":"https://api.github.com/repos/Brilux/margatsni/deployments","created_at":"2019-02-11T15:31:36Z","updated_at":"2019-02-25T15:36:14Z","pushed_at":"2019-03-12T11:29:11Z","git_url":"git://github.com/Brilux/margatsni.git","ssh_url":"git@github.com:Brilux/margatsni.git","clone_url":"https://github.com/Brilux/margatsni.git","svn_url":"https://github.com/Brilux/margatsni","homepage":null,"size":236,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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/Brilux/margatsni/pulls/2"},"html":{"href":"https://github.com/Brilux/margatsni/pull/2"},"issue":{"href":"https://api.github.com/repos/Brilux/margatsni/issues/2"},"comments":{"href":"https://api.github.com/repos/Brilux/margatsni/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Brilux/margatsni/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Brilux/margatsni/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Brilux/margatsni/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Brilux/margatsni/statuses/12239c797407705f5208b9d0d40d471640c27dc6"}},"author_association":"OWNER"}}
other: {"actor":{"display_login":"VladislavChudak"}}