{"action":"created","comment":{"url":"https://api.github.com/repos/ensurance/bond/pulls/comments/200689818","pull_request_review_id":135059785,"id":200689818,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDY4OTgxOA==","diff_hunk":"@@ -0,0 +1,90 @@\n+import express from 'express';\n+import dotenv from 'dotenv';\n+import path from 'path';\n+import bodyParser from \"body-parser\";\n+import compression from \"compression\";\n+import flash from \"express-flash\";\n+import lusca from \"lusca\";\n+import session from \"express-session\";\n+\n+import {\n+  welcomeController\n+} from './controllers';\n+\n+import config from './config';\n+\n+\n+class Bond {\n+  public env: { [key: string]: any; } = process.env;\n+  public provider: any = express;\n+  public server: express.Application = express();\n+\n+  private params: { [key: string]: any };\n+\n+  constructor(params: { [key: string]: any }) {\n+    this.params = params;\n+\n+    this.configure();\n+    this.mountRoutes()\n+  }\n+\n+  private initialize(key: string, callback: (settings: any) => void): void {\n+    const settings: { [key: string]: any } = this.params[key];\n+\n+    if (settings['enabled']) {\n+      callback(settings);\n+      console.log(`Initialize: ${key}`);\n+    };\n+  }\n+\n+  private configure() {","path":"src/bond.ts","position":40,"original_position":40,"commit_id":"4c633677c3c98c1431824e9a25efc6a8d5c4f6ee","original_commit_id":"4c633677c3c98c1431824e9a25efc6a8d5c4f6ee","user":{"login":"Mehonoshin","id":525961,"node_id":"MDQ6VXNlcjUyNTk2MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/525961?v=4","gravatar_id":"","url":"https://api.github.com/users/Mehonoshin","html_url":"https://github.com/Mehonoshin","followers_url":"https://api.github.com/users/Mehonoshin/followers","following_url":"https://api.github.com/users/Mehonoshin/following{/other_user}","gists_url":"https://api.github.com/users/Mehonoshin/gists{/gist_id}","starred_url":"https://api.github.com/users/Mehonoshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mehonoshin/subscriptions","organizations_url":"https://api.github.com/users/Mehonoshin/orgs","repos_url":"https://api.github.com/users/Mehonoshin/repos","events_url":"https://api.github.com/users/Mehonoshin/events{/privacy}","received_events_url":"https://api.github.com/users/Mehonoshin/received_events","type":"User","site_admin":false},"body":"Значит оставь TODO","created_at":"2018-07-06T15:31:39Z","updated_at":"2018-07-06T15:31:39Z","html_url":"https://github.com/ensurance/bond/pull/1#discussion_r200689818","pull_request_url":"https://api.github.com/repos/ensurance/bond/pulls/1","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ensurance/bond/pulls/comments/200689818"},"html":{"href":"https://github.com/ensurance/bond/pull/1#discussion_r200689818"},"pull_request":{"href":"https://api.github.com/repos/ensurance/bond/pulls/1"}},"in_reply_to_id":200626874},"pull_request":{"url":"https://api.github.com/repos/ensurance/bond/pulls/1","id":196948724,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2OTQ4NzI0","html_url":"https://github.com/ensurance/bond/pull/1","diff_url":"https://github.com/ensurance/bond/pull/1.diff","patch_url":"https://github.com/ensurance/bond/pull/1.patch","issue_url":"https://api.github.com/repos/ensurance/bond/issues/1","number":1,"state":"open","locked":false,"title":"Setting up Bond bot","user":{"login":"khusnetdinov","id":3524630,"node_id":"MDQ6VXNlcjM1MjQ2MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/3524630?v=4","gravatar_id":"","url":"https://api.github.com/users/khusnetdinov","html_url":"https://github.com/khusnetdinov","followers_url":"https://api.github.com/users/khusnetdinov/followers","following_url":"https://api.github.com/users/khusnetdinov/following{/other_user}","gists_url":"https://api.github.com/users/khusnetdinov/gists{/gist_id}","starred_url":"https://api.github.com/users/khusnetdinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khusnetdinov/subscriptions","organizations_url":"https://api.github.com/users/khusnetdinov/orgs","repos_url":"https://api.github.com/users/khusnetdinov/repos","events_url":"https://api.github.com/users/khusnetdinov/events{/privacy}","received_events_url":"https://api.github.com/users/khusnetdinov/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-24T12:58:54Z","updated_at":"2018-07-06T15:31:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b7a2f46dc2fe2773f006fa67394c1681c1a2816","assignee":{"login":"khusnetdinov","id":3524630,"node_id":"MDQ6VXNlcjM1MjQ2MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/3524630?v=4","gravatar_id":"","url":"https://api.github.com/users/khusnetdinov","html_url":"https://github.com/khusnetdinov","followers_url":"https://api.github.com/users/khusnetdinov/followers","following_url":"https://api.github.com/users/khusnetdinov/following{/other_user}","gists_url":"https://api.github.com/users/khusnetdinov/gists{/gist_id}","starred_url":"https://api.github.com/users/khusnetdinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khusnetdinov/subscriptions","organizations_url":"https://api.github.com/users/khusnetdinov/orgs","repos_url":"https://api.github.com/users/khusnetdinov/repos","events_url":"https://api.github.com/users/khusnetdinov/events{/privacy}","received_events_url":"https://api.github.com/users/khusnetdinov/received_events","type":"User","site_admin":false},"assignees":[{"login":"khusnetdinov","id":3524630,"node_id":"MDQ6VXNlcjM1MjQ2MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/3524630?v=4","gravatar_id":"","url":"https://api.github.com/users/khusnetdinov","html_url":"https://github.com/khusnetdinov","followers_url":"https://api.github.com/users/khusnetdinov/followers","following_url":"https://api.github.com/users/khusnetdinov/following{/other_user}","gists_url":"https://api.github.com/users/khusnetdinov/gists{/gist_id}","starred_url":"https://api.github.com/users/khusnetdinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khusnetdinov/subscriptions","organizations_url":"https://api.github.com/users/khusnetdinov/orgs","repos_url":"https://api.github.com/users/khusnetdinov/repos","events_url":"https://api.github.com/users/khusnetdinov/events{/privacy}","received_events_url":"https://api.github.com/users/khusnetdinov/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"nikorekhov","id":23630679,"node_id":"MDQ6VXNlcjIzNjMwNjc5","avatar_url":"https://avatars3.githubusercontent.com/u/23630679?v=4","gravatar_id":"","url":"https://api.github.com/users/nikorekhov","html_url":"https://github.com/nikorekhov","followers_url":"https://api.github.com/users/nikorekhov/followers","following_url":"https://api.github.com/users/nikorekhov/following{/other_user}","gists_url":"https://api.github.com/users/nikorekhov/gists{/gist_id}","starred_url":"https://api.github.com/users/nikorekhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikorekhov/subscriptions","organizations_url":"https://api.github.com/users/nikorekhov/orgs","repos_url":"https://api.github.com/users/nikorekhov/repos","events_url":"https://api.github.com/users/nikorekhov/events{/privacy}","received_events_url":"https://api.github.com/users/nikorekhov/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":973802567,"node_id":"MDU6TGFiZWw5NzM4MDI1Njc=","url":"https://api.github.com/repos/ensurance/bond/labels/WIP","name":"WIP","color":"fef2c0","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ensurance/bond/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ensurance/bond/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ensurance/bond/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ensurance/bond/issues/1/comments","statuses_url":"https://api.github.com/repos/ensurance/bond/statuses/4c633677c3c98c1431824e9a25efc6a8d5c4f6ee","head":{"label":"ensurance:setting_up","ref":"setting_up","sha":"4c633677c3c98c1431824e9a25efc6a8d5c4f6ee","user":{"login":"ensurance","id":39170915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTcwOTE1","avatar_url":"https://avatars0.githubusercontent.com/u/39170915?v=4","gravatar_id":"","url":"https://api.github.com/users/ensurance","html_url":"https://github.com/ensurance","followers_url":"https://api.github.com/users/ensurance/followers","following_url":"https://api.github.com/users/ensurance/following{/other_user}","gists_url":"https://api.github.com/users/ensurance/gists{/gist_id}","starred_url":"https://api.github.com/users/ensurance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensurance/subscriptions","organizations_url":"https://api.github.com/users/ensurance/orgs","repos_url":"https://api.github.com/users/ensurance/repos","events_url":"https://api.github.com/users/ensurance/events{/privacy}","received_events_url":"https://api.github.com/users/ensurance/received_events","type":"Organization","site_admin":false},"repo":{"id":137660360,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc2NjAzNjA=","name":"bond","full_name":"ensurance/bond","owner":{"login":"ensurance","id":39170915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTcwOTE1","avatar_url":"https://avatars0.githubusercontent.com/u/39170915?v=4","gravatar_id":"","url":"https://api.github.com/users/ensurance","html_url":"https://github.com/ensurance","followers_url":"https://api.github.com/users/ensurance/followers","following_url":"https://api.github.com/users/ensurance/following{/other_user}","gists_url":"https://api.github.com/users/ensurance/gists{/gist_id}","starred_url":"https://api.github.com/users/ensurance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensurance/subscriptions","organizations_url":"https://api.github.com/users/ensurance/orgs","repos_url":"https://api.github.com/users/ensurance/repos","events_url":"https://api.github.com/users/ensurance/events{/privacy}","received_events_url":"https://api.github.com/users/ensurance/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ensurance/bond","description":"Quality Ensurance Agent for pull requests in you repository","fork":false,"url":"https://api.github.com/repos/ensurance/bond","forks_url":"https://api.github.com/repos/ensurance/bond/forks","keys_url":"https://api.github.com/repos/ensurance/bond/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ensurance/bond/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ensurance/bond/teams","hooks_url":"https://api.github.com/repos/ensurance/bond/hooks","issue_events_url":"https://api.github.com/repos/ensurance/bond/issues/events{/number}","events_url":"https://api.github.com/repos/ensurance/bond/events","assignees_url":"https://api.github.com/repos/ensurance/bond/assignees{/user}","branches_url":"https://api.github.com/repos/ensurance/bond/branches{/branch}","tags_url":"https://api.github.com/repos/ensurance/bond/tags","blobs_url":"https://api.github.com/repos/ensurance/bond/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ensurance/bond/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ensurance/bond/git/refs{/sha}","trees_url":"https://api.github.com/repos/ensurance/bond/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ensurance/bond/statuses/{sha}","languages_url":"https://api.github.com/repos/ensurance/bond/languages","stargazers_url":"https://api.github.com/repos/ensurance/bond/stargazers","contributors_url":"https://api.github.com/repos/ensurance/bond/contributors","subscribers_url":"https://api.github.com/repos/ensurance/bond/subscribers","subscription_url":"https://api.github.com/repos/ensurance/bond/subscription","commits_url":"https://api.github.com/repos/ensurance/bond/commits{/sha}","git_commits_url":"https://api.github.com/repos/ensurance/bond/git/commits{/sha}","comments_url":"https://api.github.com/repos/ensurance/bond/comments{/number}","issue_comment_url":"https://api.github.com/repos/ensurance/bond/issues/comments{/number}","contents_url":"https://api.github.com/repos/ensurance/bond/contents/{+path}","compare_url":"https://api.github.com/repos/ensurance/bond/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ensurance/bond/merges","archive_url":"https://api.github.com/repos/ensurance/bond/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ensurance/bond/downloads","issues_url":"https://api.github.com/repos/ensurance/bond/issues{/number}","pulls_url":"https://api.github.com/repos/ensurance/bond/pulls{/number}","milestones_url":"https://api.github.com/repos/ensurance/bond/milestones{/number}","notifications_url":"https://api.github.com/repos/ensurance/bond/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ensurance/bond/labels{/name}","releases_url":"https://api.github.com/repos/ensurance/bond/releases{/id}","deployments_url":"https://api.github.com/repos/ensurance/bond/deployments","created_at":"2018-06-17T14:18:02Z","updated_at":"2018-06-17T14:20:07Z","pushed_at":"2018-07-06T09:36:03Z","git_url":"git://github.com/ensurance/bond.git","ssh_url":"git@github.com:ensurance/bond.git","clone_url":"https://github.com/ensurance/bond.git","svn_url":"https://github.com/ensurance/bond","homepage":null,"size":6,"stargazers_count":2,"watchers_count":2,"language":null,"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":2,"default_branch":"master"}},"base":{"label":"ensurance:master","ref":"master","sha":"4e1bc6fd3002769bbd72194404489f3facf3cd7a","user":{"login":"ensurance","id":39170915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTcwOTE1","avatar_url":"https://avatars0.githubusercontent.com/u/39170915?v=4","gravatar_id":"","url":"https://api.github.com/users/ensurance","html_url":"https://github.com/ensurance","followers_url":"https://api.github.com/users/ensurance/followers","following_url":"https://api.github.com/users/ensurance/following{/other_user}","gists_url":"https://api.github.com/users/ensurance/gists{/gist_id}","starred_url":"https://api.github.com/users/ensurance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensurance/subscriptions","organizations_url":"https://api.github.com/users/ensurance/orgs","repos_url":"https://api.github.com/users/ensurance/repos","events_url":"https://api.github.com/users/ensurance/events{/privacy}","received_events_url":"https://api.github.com/users/ensurance/received_events","type":"Organization","site_admin":false},"repo":{"id":137660360,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc2NjAzNjA=","name":"bond","full_name":"ensurance/bond","owner":{"login":"ensurance","id":39170915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTcwOTE1","avatar_url":"https://avatars0.githubusercontent.com/u/39170915?v=4","gravatar_id":"","url":"https://api.github.com/users/ensurance","html_url":"https://github.com/ensurance","followers_url":"https://api.github.com/users/ensurance/followers","following_url":"https://api.github.com/users/ensurance/following{/other_user}","gists_url":"https://api.github.com/users/ensurance/gists{/gist_id}","starred_url":"https://api.github.com/users/ensurance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensurance/subscriptions","organizations_url":"https://api.github.com/users/ensurance/orgs","repos_url":"https://api.github.com/users/ensurance/repos","events_url":"https://api.github.com/users/ensurance/events{/privacy}","received_events_url":"https://api.github.com/users/ensurance/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ensurance/bond","description":"Quality Ensurance Agent for pull requests in you repository","fork":false,"url":"https://api.github.com/repos/ensurance/bond","forks_url":"https://api.github.com/repos/ensurance/bond/forks","keys_url":"https://api.github.com/repos/ensurance/bond/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ensurance/bond/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ensurance/bond/teams","hooks_url":"https://api.github.com/repos/ensurance/bond/hooks","issue_events_url":"https://api.github.com/repos/ensurance/bond/issues/events{/number}","events_url":"https://api.github.com/repos/ensurance/bond/events","assignees_url":"https://api.github.com/repos/ensurance/bond/assignees{/user}","branches_url":"https://api.github.com/repos/ensurance/bond/branches{/branch}","tags_url":"https://api.github.com/repos/ensurance/bond/tags","blobs_url":"https://api.github.com/repos/ensurance/bond/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ensurance/bond/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ensurance/bond/git/refs{/sha}","trees_url":"https://api.github.com/repos/ensurance/bond/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ensurance/bond/statuses/{sha}","languages_url":"https://api.github.com/repos/ensurance/bond/languages","stargazers_url":"https://api.github.com/repos/ensurance/bond/stargazers","contributors_url":"https://api.github.com/repos/ensurance/bond/contributors","subscribers_url":"https://api.github.com/repos/ensurance/bond/subscribers","subscription_url":"https://api.github.com/repos/ensurance/bond/subscription","commits_url":"https://api.github.com/repos/ensurance/bond/commits{/sha}","git_commits_url":"https://api.github.com/repos/ensurance/bond/git/commits{/sha}","comments_url":"https://api.github.com/repos/ensurance/bond/comments{/number}","issue_comment_url":"https://api.github.com/repos/ensurance/bond/issues/comments{/number}","contents_url":"https://api.github.com/repos/ensurance/bond/contents/{+path}","compare_url":"https://api.github.com/repos/ensurance/bond/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ensurance/bond/merges","archive_url":"https://api.github.com/repos/ensurance/bond/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ensurance/bond/downloads","issues_url":"https://api.github.com/repos/ensurance/bond/issues{/number}","pulls_url":"https://api.github.com/repos/ensurance/bond/pulls{/number}","milestones_url":"https://api.github.com/repos/ensurance/bond/milestones{/number}","notifications_url":"https://api.github.com/repos/ensurance/bond/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ensurance/bond/labels{/name}","releases_url":"https://api.github.com/repos/ensurance/bond/releases{/id}","deployments_url":"https://api.github.com/repos/ensurance/bond/deployments","created_at":"2018-06-17T14:18:02Z","updated_at":"2018-06-17T14:20:07Z","pushed_at":"2018-07-06T09:36:03Z","git_url":"git://github.com/ensurance/bond.git","ssh_url":"git@github.com:ensurance/bond.git","clone_url":"https://github.com/ensurance/bond.git","svn_url":"https://github.com/ensurance/bond","homepage":null,"size":6,"stargazers_count":2,"watchers_count":2,"language":null,"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":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ensurance/bond/pulls/1"},"html":{"href":"https://github.com/ensurance/bond/pull/1"},"issue":{"href":"https://api.github.com/repos/ensurance/bond/issues/1"},"comments":{"href":"https://api.github.com/repos/ensurance/bond/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ensurance/bond/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ensurance/bond/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ensurance/bond/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ensurance/bond/statuses/4c633677c3c98c1431824e9a25efc6a8d5c4f6ee"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Mehonoshin"}}