{"action":"created","comment":{"url":"https://api.github.com/repos/devxup/yaxys/pulls/comments/223250428","pull_request_review_id":162331115,"id":223250428,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzI1MDQyOA==","diff_hunk":"@@ -0,0 +1,21 @@\n+module.exports = {\n+  api: {\n+    \"post auth\": [\n+      async (ctx) => {\n+        try {\n+          let operator = await AuthService.getOperatorByCredentials(ctx.request.body.email, ctx.request.body.password);\n+          ctx.cookies.set(\"jwt\", AuthService.generateToken(operator));\n+          ctx.response.status=200;","path":"core/models/Auth.js","position":8,"original_position":8,"commit_id":"356e3bc395a022ef577888234f9115dce9cdca76","original_commit_id":"356e3bc395a022ef577888234f9115dce9cdca76","user":{"login":"alevkon","id":1212398,"node_id":"MDQ6VXNlcjEyMTIzOTg=","avatar_url":"https://avatars0.githubusercontent.com/u/1212398?v=4","gravatar_id":"","url":"https://api.github.com/users/alevkon","html_url":"https://github.com/alevkon","followers_url":"https://api.github.com/users/alevkon/followers","following_url":"https://api.github.com/users/alevkon/following{/other_user}","gists_url":"https://api.github.com/users/alevkon/gists{/gist_id}","starred_url":"https://api.github.com/users/alevkon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alevkon/subscriptions","organizations_url":"https://api.github.com/users/alevkon/orgs","repos_url":"https://api.github.com/users/alevkon/repos","events_url":"https://api.github.com/users/alevkon/events{/privacy}","received_events_url":"https://api.github.com/users/alevkon/received_events","type":"User","site_admin":false},"body":"Please put spaces around the `=` sign: `ctx.response.status = 200;`","created_at":"2018-10-08T05:30:01Z","updated_at":"2018-10-08T05:50:45Z","html_url":"https://github.com/devxup/yaxys/pull/11#discussion_r223250428","pull_request_url":"https://api.github.com/repos/devxup/yaxys/pulls/11","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/devxup/yaxys/pulls/comments/223250428"},"html":{"href":"https://github.com/devxup/yaxys/pull/11#discussion_r223250428"},"pull_request":{"href":"https://api.github.com/repos/devxup/yaxys/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/devxup/yaxys/pulls/11","id":221003762,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMDAzNzYy","html_url":"https://github.com/devxup/yaxys/pull/11","diff_url":"https://github.com/devxup/yaxys/pull/11.diff","patch_url":"https://github.com/devxup/yaxys/pull/11.patch","issue_url":"https://api.github.com/repos/devxup/yaxys/issues/11","number":11,"state":"open","locked":false,"title":"Implement auth policy","user":{"login":"Koochr","id":43322816,"node_id":"MDQ6VXNlcjQzMzIyODE2","avatar_url":"https://avatars0.githubusercontent.com/u/43322816?v=4","gravatar_id":"","url":"https://api.github.com/users/Koochr","html_url":"https://github.com/Koochr","followers_url":"https://api.github.com/users/Koochr/followers","following_url":"https://api.github.com/users/Koochr/following{/other_user}","gists_url":"https://api.github.com/users/Koochr/gists{/gist_id}","starred_url":"https://api.github.com/users/Koochr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Koochr/subscriptions","organizations_url":"https://api.github.com/users/Koochr/orgs","repos_url":"https://api.github.com/users/Koochr/repos","events_url":"https://api.github.com/users/Koochr/events{/privacy}","received_events_url":"https://api.github.com/users/Koochr/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-08T04:56:08Z","updated_at":"2018-10-08T05:50:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9634743d8335a6c60c460ea04c8b4d1ee38ebbec","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/devxup/yaxys/pulls/11/commits","review_comments_url":"https://api.github.com/repos/devxup/yaxys/pulls/11/comments","review_comment_url":"https://api.github.com/repos/devxup/yaxys/pulls/comments{/number}","comments_url":"https://api.github.com/repos/devxup/yaxys/issues/11/comments","statuses_url":"https://api.github.com/repos/devxup/yaxys/statuses/356e3bc395a022ef577888234f9115dce9cdca76","head":{"label":"Koochr:Issue-#4","ref":"Issue-#4","sha":"356e3bc395a022ef577888234f9115dce9cdca76","user":{"login":"Koochr","id":43322816,"node_id":"MDQ6VXNlcjQzMzIyODE2","avatar_url":"https://avatars0.githubusercontent.com/u/43322816?v=4","gravatar_id":"","url":"https://api.github.com/users/Koochr","html_url":"https://github.com/Koochr","followers_url":"https://api.github.com/users/Koochr/followers","following_url":"https://api.github.com/users/Koochr/following{/other_user}","gists_url":"https://api.github.com/users/Koochr/gists{/gist_id}","starred_url":"https://api.github.com/users/Koochr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Koochr/subscriptions","organizations_url":"https://api.github.com/users/Koochr/orgs","repos_url":"https://api.github.com/users/Koochr/repos","events_url":"https://api.github.com/users/Koochr/events{/privacy}","received_events_url":"https://api.github.com/users/Koochr/received_events","type":"User","site_admin":false},"repo":{"id":150296987,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAyOTY5ODc=","name":"yaxys","full_name":"Koochr/yaxys","private":false,"owner":{"login":"Koochr","id":43322816,"node_id":"MDQ6VXNlcjQzMzIyODE2","avatar_url":"https://avatars0.githubusercontent.com/u/43322816?v=4","gravatar_id":"","url":"https://api.github.com/users/Koochr","html_url":"https://github.com/Koochr","followers_url":"https://api.github.com/users/Koochr/followers","following_url":"https://api.github.com/users/Koochr/following{/other_user}","gists_url":"https://api.github.com/users/Koochr/gists{/gist_id}","starred_url":"https://api.github.com/users/Koochr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Koochr/subscriptions","organizations_url":"https://api.github.com/users/Koochr/orgs","repos_url":"https://api.github.com/users/Koochr/repos","events_url":"https://api.github.com/users/Koochr/events{/privacy}","received_events_url":"https://api.github.com/users/Koochr/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Koochr/yaxys","description":null,"fork":true,"url":"https://api.github.com/repos/Koochr/yaxys","forks_url":"https://api.github.com/repos/Koochr/yaxys/forks","keys_url":"https://api.github.com/repos/Koochr/yaxys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Koochr/yaxys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Koochr/yaxys/teams","hooks_url":"https://api.github.com/repos/Koochr/yaxys/hooks","issue_events_url":"https://api.github.com/repos/Koochr/yaxys/issues/events{/number}","events_url":"https://api.github.com/repos/Koochr/yaxys/events","assignees_url":"https://api.github.com/repos/Koochr/yaxys/assignees{/user}","branches_url":"https://api.github.com/repos/Koochr/yaxys/branches{/branch}","tags_url":"https://api.github.com/repos/Koochr/yaxys/tags","blobs_url":"https://api.github.com/repos/Koochr/yaxys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Koochr/yaxys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Koochr/yaxys/git/refs{/sha}","trees_url":"https://api.github.com/repos/Koochr/yaxys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Koochr/yaxys/statuses/{sha}","languages_url":"https://api.github.com/repos/Koochr/yaxys/languages","stargazers_url":"https://api.github.com/repos/Koochr/yaxys/stargazers","contributors_url":"https://api.github.com/repos/Koochr/yaxys/contributors","subscribers_url":"https://api.github.com/repos/Koochr/yaxys/subscribers","subscription_url":"https://api.github.com/repos/Koochr/yaxys/subscription","commits_url":"https://api.github.com/repos/Koochr/yaxys/commits{/sha}","git_commits_url":"https://api.github.com/repos/Koochr/yaxys/git/commits{/sha}","comments_url":"https://api.github.com/repos/Koochr/yaxys/comments{/number}","issue_comment_url":"https://api.github.com/repos/Koochr/yaxys/issues/comments{/number}","contents_url":"https://api.github.com/repos/Koochr/yaxys/contents/{+path}","compare_url":"https://api.github.com/repos/Koochr/yaxys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Koochr/yaxys/merges","archive_url":"https://api.github.com/repos/Koochr/yaxys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Koochr/yaxys/downloads","issues_url":"https://api.github.com/repos/Koochr/yaxys/issues{/number}","pulls_url":"https://api.github.com/repos/Koochr/yaxys/pulls{/number}","milestones_url":"https://api.github.com/repos/Koochr/yaxys/milestones{/number}","notifications_url":"https://api.github.com/repos/Koochr/yaxys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Koochr/yaxys/labels{/name}","releases_url":"https://api.github.com/repos/Koochr/yaxys/releases{/id}","deployments_url":"https://api.github.com/repos/Koochr/yaxys/deployments","created_at":"2018-09-25T16:34:04Z","updated_at":"2018-10-06T12:27:34Z","pushed_at":"2018-10-08T04:55:09Z","git_url":"git://github.com/Koochr/yaxys.git","ssh_url":"git@github.com:Koochr/yaxys.git","clone_url":"https://github.com/Koochr/yaxys.git","svn_url":"https://github.com/Koochr/yaxys","homepage":null,"size":158,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"devxup:master","ref":"master","sha":"72a55311107c560779ccda7def31d9a8ba62920f","user":{"login":"devxup","id":22172273,"node_id":"MDQ6VXNlcjIyMTcyMjcz","avatar_url":"https://avatars1.githubusercontent.com/u/22172273?v=4","gravatar_id":"","url":"https://api.github.com/users/devxup","html_url":"https://github.com/devxup","followers_url":"https://api.github.com/users/devxup/followers","following_url":"https://api.github.com/users/devxup/following{/other_user}","gists_url":"https://api.github.com/users/devxup/gists{/gist_id}","starred_url":"https://api.github.com/users/devxup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devxup/subscriptions","organizations_url":"https://api.github.com/users/devxup/orgs","repos_url":"https://api.github.com/users/devxup/repos","events_url":"https://api.github.com/users/devxup/events{/privacy}","received_events_url":"https://api.github.com/users/devxup/received_events","type":"User","site_admin":false},"repo":{"id":149629380,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk2MjkzODA=","name":"yaxys","full_name":"devxup/yaxys","private":false,"owner":{"login":"devxup","id":22172273,"node_id":"MDQ6VXNlcjIyMTcyMjcz","avatar_url":"https://avatars1.githubusercontent.com/u/22172273?v=4","gravatar_id":"","url":"https://api.github.com/users/devxup","html_url":"https://github.com/devxup","followers_url":"https://api.github.com/users/devxup/followers","following_url":"https://api.github.com/users/devxup/following{/other_user}","gists_url":"https://api.github.com/users/devxup/gists{/gist_id}","starred_url":"https://api.github.com/users/devxup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devxup/subscriptions","organizations_url":"https://api.github.com/users/devxup/orgs","repos_url":"https://api.github.com/users/devxup/repos","events_url":"https://api.github.com/users/devxup/events{/privacy}","received_events_url":"https://api.github.com/users/devxup/received_events","type":"User","site_admin":false},"html_url":"https://github.com/devxup/yaxys","description":null,"fork":false,"url":"https://api.github.com/repos/devxup/yaxys","forks_url":"https://api.github.com/repos/devxup/yaxys/forks","keys_url":"https://api.github.com/repos/devxup/yaxys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devxup/yaxys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devxup/yaxys/teams","hooks_url":"https://api.github.com/repos/devxup/yaxys/hooks","issue_events_url":"https://api.github.com/repos/devxup/yaxys/issues/events{/number}","events_url":"https://api.github.com/repos/devxup/yaxys/events","assignees_url":"https://api.github.com/repos/devxup/yaxys/assignees{/user}","branches_url":"https://api.github.com/repos/devxup/yaxys/branches{/branch}","tags_url":"https://api.github.com/repos/devxup/yaxys/tags","blobs_url":"https://api.github.com/repos/devxup/yaxys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devxup/yaxys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devxup/yaxys/git/refs{/sha}","trees_url":"https://api.github.com/repos/devxup/yaxys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devxup/yaxys/statuses/{sha}","languages_url":"https://api.github.com/repos/devxup/yaxys/languages","stargazers_url":"https://api.github.com/repos/devxup/yaxys/stargazers","contributors_url":"https://api.github.com/repos/devxup/yaxys/contributors","subscribers_url":"https://api.github.com/repos/devxup/yaxys/subscribers","subscription_url":"https://api.github.com/repos/devxup/yaxys/subscription","commits_url":"https://api.github.com/repos/devxup/yaxys/commits{/sha}","git_commits_url":"https://api.github.com/repos/devxup/yaxys/git/commits{/sha}","comments_url":"https://api.github.com/repos/devxup/yaxys/comments{/number}","issue_comment_url":"https://api.github.com/repos/devxup/yaxys/issues/comments{/number}","contents_url":"https://api.github.com/repos/devxup/yaxys/contents/{+path}","compare_url":"https://api.github.com/repos/devxup/yaxys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devxup/yaxys/merges","archive_url":"https://api.github.com/repos/devxup/yaxys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devxup/yaxys/downloads","issues_url":"https://api.github.com/repos/devxup/yaxys/issues{/number}","pulls_url":"https://api.github.com/repos/devxup/yaxys/pulls{/number}","milestones_url":"https://api.github.com/repos/devxup/yaxys/milestones{/number}","notifications_url":"https://api.github.com/repos/devxup/yaxys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devxup/yaxys/labels{/name}","releases_url":"https://api.github.com/repos/devxup/yaxys/releases{/id}","deployments_url":"https://api.github.com/repos/devxup/yaxys/deployments","created_at":"2018-09-20T15:17:17Z","updated_at":"2018-10-06T12:18:20Z","pushed_at":"2018-10-08T04:56:08Z","git_url":"git://github.com/devxup/yaxys.git","ssh_url":"git@github.com:devxup/yaxys.git","clone_url":"https://github.com/devxup/yaxys.git","svn_url":"https://github.com/devxup/yaxys","homepage":null,"size":158,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":3,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/devxup/yaxys/pulls/11"},"html":{"href":"https://github.com/devxup/yaxys/pull/11"},"issue":{"href":"https://api.github.com/repos/devxup/yaxys/issues/11"},"comments":{"href":"https://api.github.com/repos/devxup/yaxys/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/devxup/yaxys/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/devxup/yaxys/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/devxup/yaxys/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/devxup/yaxys/statuses/356e3bc395a022ef577888234f9115dce9cdca76"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"alevkon"}}