{"action":"created","comment":{"url":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/comments/219331953","pull_request_review_id":157484326,"id":219331953,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTMzMTk1Mw==","diff_hunk":"@@ -0,0 +1,35 @@\n+const express = require('express');\n+const bodyParser = require('body-parser');\n+const morgan = require('morgan');\n+const helmet = require('helmet');\n+const rateLimit = require(\"express-rate-limit\");\n+const cors = require('cors');\n+\n+const { errorHandler } = require('./shared/middlewares/error-handler');\n+const { connectToDB } = require('./shared/database/database');\n+\n+require('dotenv').config();\n+\n+process.on('uncaughtException', (error) => {\n+  if(!error.isOperational) process.exit(1);\n+});\n+\n+const app = express();\n+\n+const limiter = rateLimit({","path":"server/app/app.js","position":19,"original_position":19,"commit_id":"7e28fe5c4f5eec9845cbfec86f3d7be11aa6dada","original_commit_id":"7e28fe5c4f5eec9845cbfec86f3d7be11aa6dada","user":{"login":"purbanski-deftcode","id":16034577,"node_id":"MDQ6VXNlcjE2MDM0NTc3","avatar_url":"https://avatars0.githubusercontent.com/u/16034577?v=4","gravatar_id":"","url":"https://api.github.com/users/purbanski-deftcode","html_url":"https://github.com/purbanski-deftcode","followers_url":"https://api.github.com/users/purbanski-deftcode/followers","following_url":"https://api.github.com/users/purbanski-deftcode/following{/other_user}","gists_url":"https://api.github.com/users/purbanski-deftcode/gists{/gist_id}","starred_url":"https://api.github.com/users/purbanski-deftcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purbanski-deftcode/subscriptions","organizations_url":"https://api.github.com/users/purbanski-deftcode/orgs","repos_url":"https://api.github.com/users/purbanski-deftcode/repos","events_url":"https://api.github.com/users/purbanski-deftcode/events{/privacy}","received_events_url":"https://api.github.com/users/purbanski-deftcode/received_events","type":"User","site_admin":false},"body":"Wyniósłbym to do osobnego modułu i zaimportował tutaj już tylko skonfigurowany limiter.","created_at":"2018-09-20T22:05:23Z","updated_at":"2018-09-20T22:05:59Z","html_url":"https://github.com/nieznamjs/jira_v2/pull/2#discussion_r219331953","pull_request_url":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/comments/219331953"},"html":{"href":"https://github.com/nieznamjs/jira_v2/pull/2#discussion_r219331953"},"pull_request":{"href":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/2","id":216934354,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2OTM0MzU0","html_url":"https://github.com/nieznamjs/jira_v2/pull/2","diff_url":"https://github.com/nieznamjs/jira_v2/pull/2.diff","patch_url":"https://github.com/nieznamjs/jira_v2/pull/2.patch","issue_url":"https://api.github.com/repos/nieznamjs/jira_v2/issues/2","number":2,"state":"open","locked":false,"title":"Setup server","user":{"login":"Drajvon","id":26199421,"node_id":"MDQ6VXNlcjI2MTk5NDIx","avatar_url":"https://avatars2.githubusercontent.com/u/26199421?v=4","gravatar_id":"","url":"https://api.github.com/users/Drajvon","html_url":"https://github.com/Drajvon","followers_url":"https://api.github.com/users/Drajvon/followers","following_url":"https://api.github.com/users/Drajvon/following{/other_user}","gists_url":"https://api.github.com/users/Drajvon/gists{/gist_id}","starred_url":"https://api.github.com/users/Drajvon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drajvon/subscriptions","organizations_url":"https://api.github.com/users/Drajvon/orgs","repos_url":"https://api.github.com/users/Drajvon/repos","events_url":"https://api.github.com/users/Drajvon/events{/privacy}","received_events_url":"https://api.github.com/users/Drajvon/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-20T11:17:25Z","updated_at":"2018-09-20T22:05:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41e6b496d7974d277213144636964196a02630b2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/2/commits","review_comments_url":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/2/comments","review_comment_url":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nieznamjs/jira_v2/issues/2/comments","statuses_url":"https://api.github.com/repos/nieznamjs/jira_v2/statuses/7e28fe5c4f5eec9845cbfec86f3d7be11aa6dada","head":{"label":"nieznamjs:task/server-init-setup","ref":"task/server-init-setup","sha":"7e28fe5c4f5eec9845cbfec86f3d7be11aa6dada","user":{"login":"nieznamjs","id":20813056,"node_id":"MDQ6VXNlcjIwODEzMDU2","avatar_url":"https://avatars0.githubusercontent.com/u/20813056?v=4","gravatar_id":"","url":"https://api.github.com/users/nieznamjs","html_url":"https://github.com/nieznamjs","followers_url":"https://api.github.com/users/nieznamjs/followers","following_url":"https://api.github.com/users/nieznamjs/following{/other_user}","gists_url":"https://api.github.com/users/nieznamjs/gists{/gist_id}","starred_url":"https://api.github.com/users/nieznamjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nieznamjs/subscriptions","organizations_url":"https://api.github.com/users/nieznamjs/orgs","repos_url":"https://api.github.com/users/nieznamjs/repos","events_url":"https://api.github.com/users/nieznamjs/events{/privacy}","received_events_url":"https://api.github.com/users/nieznamjs/received_events","type":"User","site_admin":false},"repo":{"id":149176732,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxNzY3MzI=","name":"jira_v2","full_name":"nieznamjs/jira_v2","private":false,"owner":{"login":"nieznamjs","id":20813056,"node_id":"MDQ6VXNlcjIwODEzMDU2","avatar_url":"https://avatars0.githubusercontent.com/u/20813056?v=4","gravatar_id":"","url":"https://api.github.com/users/nieznamjs","html_url":"https://github.com/nieznamjs","followers_url":"https://api.github.com/users/nieznamjs/followers","following_url":"https://api.github.com/users/nieznamjs/following{/other_user}","gists_url":"https://api.github.com/users/nieznamjs/gists{/gist_id}","starred_url":"https://api.github.com/users/nieznamjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nieznamjs/subscriptions","organizations_url":"https://api.github.com/users/nieznamjs/orgs","repos_url":"https://api.github.com/users/nieznamjs/repos","events_url":"https://api.github.com/users/nieznamjs/events{/privacy}","received_events_url":"https://api.github.com/users/nieznamjs/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nieznamjs/jira_v2","description":null,"fork":false,"url":"https://api.github.com/repos/nieznamjs/jira_v2","forks_url":"https://api.github.com/repos/nieznamjs/jira_v2/forks","keys_url":"https://api.github.com/repos/nieznamjs/jira_v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nieznamjs/jira_v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nieznamjs/jira_v2/teams","hooks_url":"https://api.github.com/repos/nieznamjs/jira_v2/hooks","issue_events_url":"https://api.github.com/repos/nieznamjs/jira_v2/issues/events{/number}","events_url":"https://api.github.com/repos/nieznamjs/jira_v2/events","assignees_url":"https://api.github.com/repos/nieznamjs/jira_v2/assignees{/user}","branches_url":"https://api.github.com/repos/nieznamjs/jira_v2/branches{/branch}","tags_url":"https://api.github.com/repos/nieznamjs/jira_v2/tags","blobs_url":"https://api.github.com/repos/nieznamjs/jira_v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nieznamjs/jira_v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nieznamjs/jira_v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/nieznamjs/jira_v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nieznamjs/jira_v2/statuses/{sha}","languages_url":"https://api.github.com/repos/nieznamjs/jira_v2/languages","stargazers_url":"https://api.github.com/repos/nieznamjs/jira_v2/stargazers","contributors_url":"https://api.github.com/repos/nieznamjs/jira_v2/contributors","subscribers_url":"https://api.github.com/repos/nieznamjs/jira_v2/subscribers","subscription_url":"https://api.github.com/repos/nieznamjs/jira_v2/subscription","commits_url":"https://api.github.com/repos/nieznamjs/jira_v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/nieznamjs/jira_v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/nieznamjs/jira_v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/nieznamjs/jira_v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/nieznamjs/jira_v2/contents/{+path}","compare_url":"https://api.github.com/repos/nieznamjs/jira_v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nieznamjs/jira_v2/merges","archive_url":"https://api.github.com/repos/nieznamjs/jira_v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nieznamjs/jira_v2/downloads","issues_url":"https://api.github.com/repos/nieznamjs/jira_v2/issues{/number}","pulls_url":"https://api.github.com/repos/nieznamjs/jira_v2/pulls{/number}","milestones_url":"https://api.github.com/repos/nieznamjs/jira_v2/milestones{/number}","notifications_url":"https://api.github.com/repos/nieznamjs/jira_v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nieznamjs/jira_v2/labels{/name}","releases_url":"https://api.github.com/repos/nieznamjs/jira_v2/releases{/id}","deployments_url":"https://api.github.com/repos/nieznamjs/jira_v2/deployments","created_at":"2018-09-17T19:25:01Z","updated_at":"2018-09-19T19:51:35Z","pushed_at":"2018-09-20T22:02:18Z","git_url":"git://github.com/nieznamjs/jira_v2.git","ssh_url":"git@github.com:nieznamjs/jira_v2.git","clone_url":"https://github.com/nieznamjs/jira_v2.git","svn_url":"https://github.com/nieznamjs/jira_v2","homepage":null,"size":157,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nieznamjs:master","ref":"master","sha":"5b9f56bc8cef3399706982cdd161f004066992ab","user":{"login":"nieznamjs","id":20813056,"node_id":"MDQ6VXNlcjIwODEzMDU2","avatar_url":"https://avatars0.githubusercontent.com/u/20813056?v=4","gravatar_id":"","url":"https://api.github.com/users/nieznamjs","html_url":"https://github.com/nieznamjs","followers_url":"https://api.github.com/users/nieznamjs/followers","following_url":"https://api.github.com/users/nieznamjs/following{/other_user}","gists_url":"https://api.github.com/users/nieznamjs/gists{/gist_id}","starred_url":"https://api.github.com/users/nieznamjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nieznamjs/subscriptions","organizations_url":"https://api.github.com/users/nieznamjs/orgs","repos_url":"https://api.github.com/users/nieznamjs/repos","events_url":"https://api.github.com/users/nieznamjs/events{/privacy}","received_events_url":"https://api.github.com/users/nieznamjs/received_events","type":"User","site_admin":false},"repo":{"id":149176732,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxNzY3MzI=","name":"jira_v2","full_name":"nieznamjs/jira_v2","private":false,"owner":{"login":"nieznamjs","id":20813056,"node_id":"MDQ6VXNlcjIwODEzMDU2","avatar_url":"https://avatars0.githubusercontent.com/u/20813056?v=4","gravatar_id":"","url":"https://api.github.com/users/nieznamjs","html_url":"https://github.com/nieznamjs","followers_url":"https://api.github.com/users/nieznamjs/followers","following_url":"https://api.github.com/users/nieznamjs/following{/other_user}","gists_url":"https://api.github.com/users/nieznamjs/gists{/gist_id}","starred_url":"https://api.github.com/users/nieznamjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nieznamjs/subscriptions","organizations_url":"https://api.github.com/users/nieznamjs/orgs","repos_url":"https://api.github.com/users/nieznamjs/repos","events_url":"https://api.github.com/users/nieznamjs/events{/privacy}","received_events_url":"https://api.github.com/users/nieznamjs/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nieznamjs/jira_v2","description":null,"fork":false,"url":"https://api.github.com/repos/nieznamjs/jira_v2","forks_url":"https://api.github.com/repos/nieznamjs/jira_v2/forks","keys_url":"https://api.github.com/repos/nieznamjs/jira_v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nieznamjs/jira_v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nieznamjs/jira_v2/teams","hooks_url":"https://api.github.com/repos/nieznamjs/jira_v2/hooks","issue_events_url":"https://api.github.com/repos/nieznamjs/jira_v2/issues/events{/number}","events_url":"https://api.github.com/repos/nieznamjs/jira_v2/events","assignees_url":"https://api.github.com/repos/nieznamjs/jira_v2/assignees{/user}","branches_url":"https://api.github.com/repos/nieznamjs/jira_v2/branches{/branch}","tags_url":"https://api.github.com/repos/nieznamjs/jira_v2/tags","blobs_url":"https://api.github.com/repos/nieznamjs/jira_v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nieznamjs/jira_v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nieznamjs/jira_v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/nieznamjs/jira_v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nieznamjs/jira_v2/statuses/{sha}","languages_url":"https://api.github.com/repos/nieznamjs/jira_v2/languages","stargazers_url":"https://api.github.com/repos/nieznamjs/jira_v2/stargazers","contributors_url":"https://api.github.com/repos/nieznamjs/jira_v2/contributors","subscribers_url":"https://api.github.com/repos/nieznamjs/jira_v2/subscribers","subscription_url":"https://api.github.com/repos/nieznamjs/jira_v2/subscription","commits_url":"https://api.github.com/repos/nieznamjs/jira_v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/nieznamjs/jira_v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/nieznamjs/jira_v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/nieznamjs/jira_v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/nieznamjs/jira_v2/contents/{+path}","compare_url":"https://api.github.com/repos/nieznamjs/jira_v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nieznamjs/jira_v2/merges","archive_url":"https://api.github.com/repos/nieznamjs/jira_v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nieznamjs/jira_v2/downloads","issues_url":"https://api.github.com/repos/nieznamjs/jira_v2/issues{/number}","pulls_url":"https://api.github.com/repos/nieznamjs/jira_v2/pulls{/number}","milestones_url":"https://api.github.com/repos/nieznamjs/jira_v2/milestones{/number}","notifications_url":"https://api.github.com/repos/nieznamjs/jira_v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nieznamjs/jira_v2/labels{/name}","releases_url":"https://api.github.com/repos/nieznamjs/jira_v2/releases{/id}","deployments_url":"https://api.github.com/repos/nieznamjs/jira_v2/deployments","created_at":"2018-09-17T19:25:01Z","updated_at":"2018-09-19T19:51:35Z","pushed_at":"2018-09-20T22:02:18Z","git_url":"git://github.com/nieznamjs/jira_v2.git","ssh_url":"git@github.com:nieznamjs/jira_v2.git","clone_url":"https://github.com/nieznamjs/jira_v2.git","svn_url":"https://github.com/nieznamjs/jira_v2","homepage":null,"size":157,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/2"},"html":{"href":"https://github.com/nieznamjs/jira_v2/pull/2"},"issue":{"href":"https://api.github.com/repos/nieznamjs/jira_v2/issues/2"},"comments":{"href":"https://api.github.com/repos/nieznamjs/jira_v2/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nieznamjs/jira_v2/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/nieznamjs/jira_v2/statuses/7e28fe5c4f5eec9845cbfec86f3d7be11aa6dada"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"purbanski-deftcode"}}