{"action":"created","comment":{"url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/comments/97279523","pull_request_review_id":17882796,"id":97279523,"diff_hunk":"@@ -62,7 +62,7 @@ module.exports = class MongooseTrailpack extends DatastoreTrailpack {\n         schema.statics = model.statics\n         schema.methods = model.methods\n \n-        model.onSchema(schema)\n+        model.onSchema(schema, this.app)","path":"index.js","position":5,"original_position":5,"commit_id":"4fa40c3609a4f857a8978c62838d43a2eaee1680","original_commit_id":"4fa40c3609a4f857a8978c62838d43a2eaee1680","user":{"login":"LobeTia","id":8667323,"avatar_url":"https://avatars.githubusercontent.com/u/8667323?v=3","gravatar_id":"","url":"https://api.github.com/users/LobeTia","html_url":"https://github.com/LobeTia","followers_url":"https://api.github.com/users/LobeTia/followers","following_url":"https://api.github.com/users/LobeTia/following{/other_user}","gists_url":"https://api.github.com/users/LobeTia/gists{/gist_id}","starred_url":"https://api.github.com/users/LobeTia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LobeTia/subscriptions","organizations_url":"https://api.github.com/users/LobeTia/orgs","repos_url":"https://api.github.com/users/LobeTia/repos","events_url":"https://api.github.com/users/LobeTia/events{/privacy}","received_events_url":"https://api.github.com/users/LobeTia/received_events","type":"User","site_admin":false},"body":"It was my first idea but I was worried to break the retro-compatibility for other users.\r\nIf for you there's no problem I can proceed","created_at":"2017-01-23T09:33:31Z","updated_at":"2017-01-23T09:33:31Z","html_url":"https://github.com/trailsjs/trailpack-mongoose/pull/28#discussion_r97279523","pull_request_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/comments/97279523"},"html":{"href":"https://github.com/trailsjs/trailpack-mongoose/pull/28#discussion_r97279523"},"pull_request":{"href":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/28","id":102589102,"html_url":"https://github.com/trailsjs/trailpack-mongoose/pull/28","diff_url":"https://github.com/trailsjs/trailpack-mongoose/pull/28.diff","patch_url":"https://github.com/trailsjs/trailpack-mongoose/pull/28.patch","issue_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/issues/28","number":28,"state":"open","locked":false,"title":"- Inject this.app when calling onSchema method","user":{"login":"LobeTia","id":8667323,"avatar_url":"https://avatars.githubusercontent.com/u/8667323?v=3","gravatar_id":"","url":"https://api.github.com/users/LobeTia","html_url":"https://github.com/LobeTia","followers_url":"https://api.github.com/users/LobeTia/followers","following_url":"https://api.github.com/users/LobeTia/following{/other_user}","gists_url":"https://api.github.com/users/LobeTia/gists{/gist_id}","starred_url":"https://api.github.com/users/LobeTia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LobeTia/subscriptions","organizations_url":"https://api.github.com/users/LobeTia/orgs","repos_url":"https://api.github.com/users/LobeTia/repos","events_url":"https://api.github.com/users/LobeTia/events{/privacy}","received_events_url":"https://api.github.com/users/LobeTia/received_events","type":"User","site_admin":false},"body":"Inject app when calling onSchema, needed for jaumard/trailpack-passport#77","created_at":"2017-01-21T17:13:04Z","updated_at":"2017-01-23T09:33:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfc0be3acc83d142e1a52e94387057bd2b1f43aa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/28/commits","review_comments_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/28/comments","review_comment_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/issues/28/comments","statuses_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/statuses/4fa40c3609a4f857a8978c62838d43a2eaee1680","head":{"label":"LobeTia:feature-onSchema-app-injection","ref":"feature-onSchema-app-injection","sha":"4fa40c3609a4f857a8978c62838d43a2eaee1680","user":{"login":"LobeTia","id":8667323,"avatar_url":"https://avatars.githubusercontent.com/u/8667323?v=3","gravatar_id":"","url":"https://api.github.com/users/LobeTia","html_url":"https://github.com/LobeTia","followers_url":"https://api.github.com/users/LobeTia/followers","following_url":"https://api.github.com/users/LobeTia/following{/other_user}","gists_url":"https://api.github.com/users/LobeTia/gists{/gist_id}","starred_url":"https://api.github.com/users/LobeTia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LobeTia/subscriptions","organizations_url":"https://api.github.com/users/LobeTia/orgs","repos_url":"https://api.github.com/users/LobeTia/repos","events_url":"https://api.github.com/users/LobeTia/events{/privacy}","received_events_url":"https://api.github.com/users/LobeTia/received_events","type":"User","site_admin":false},"repo":{"id":79659724,"name":"trailpack-mongoose","full_name":"LobeTia/trailpack-mongoose","owner":{"login":"LobeTia","id":8667323,"avatar_url":"https://avatars.githubusercontent.com/u/8667323?v=3","gravatar_id":"","url":"https://api.github.com/users/LobeTia","html_url":"https://github.com/LobeTia","followers_url":"https://api.github.com/users/LobeTia/followers","following_url":"https://api.github.com/users/LobeTia/following{/other_user}","gists_url":"https://api.github.com/users/LobeTia/gists{/gist_id}","starred_url":"https://api.github.com/users/LobeTia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LobeTia/subscriptions","organizations_url":"https://api.github.com/users/LobeTia/orgs","repos_url":"https://api.github.com/users/LobeTia/repos","events_url":"https://api.github.com/users/LobeTia/events{/privacy}","received_events_url":"https://api.github.com/users/LobeTia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LobeTia/trailpack-mongoose","description":":package: Mongoose.js Trailpack http://mongoosejs.com","fork":true,"url":"https://api.github.com/repos/LobeTia/trailpack-mongoose","forks_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/forks","keys_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/teams","hooks_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/hooks","issue_events_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/events","assignees_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/tags","blobs_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/languages","stargazers_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/stargazers","contributors_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/contributors","subscribers_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/subscribers","subscription_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/subscription","commits_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/merges","archive_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/downloads","issues_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/labels{/name}","releases_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/releases{/id}","deployments_url":"https://api.github.com/repos/LobeTia/trailpack-mongoose/deployments","created_at":"2017-01-21T17:06:58Z","updated_at":"2017-01-21T17:07:00Z","pushed_at":"2017-01-21T17:25:23Z","git_url":"git://github.com/LobeTia/trailpack-mongoose.git","ssh_url":"git@github.com:LobeTia/trailpack-mongoose.git","clone_url":"https://github.com/LobeTia/trailpack-mongoose.git","svn_url":"https://github.com/LobeTia/trailpack-mongoose","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"trailsjs:master","ref":"master","sha":"5773cd66dfd4a70d611e80692cac8a3f49650780","user":{"login":"trailsjs","id":15969634,"avatar_url":"https://avatars.githubusercontent.com/u/15969634?v=3","gravatar_id":"","url":"https://api.github.com/users/trailsjs","html_url":"https://github.com/trailsjs","followers_url":"https://api.github.com/users/trailsjs/followers","following_url":"https://api.github.com/users/trailsjs/following{/other_user}","gists_url":"https://api.github.com/users/trailsjs/gists{/gist_id}","starred_url":"https://api.github.com/users/trailsjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trailsjs/subscriptions","organizations_url":"https://api.github.com/users/trailsjs/orgs","repos_url":"https://api.github.com/users/trailsjs/repos","events_url":"https://api.github.com/users/trailsjs/events{/privacy}","received_events_url":"https://api.github.com/users/trailsjs/received_events","type":"Organization","site_admin":false},"repo":{"id":55272506,"name":"trailpack-mongoose","full_name":"trailsjs/trailpack-mongoose","owner":{"login":"trailsjs","id":15969634,"avatar_url":"https://avatars.githubusercontent.com/u/15969634?v=3","gravatar_id":"","url":"https://api.github.com/users/trailsjs","html_url":"https://github.com/trailsjs","followers_url":"https://api.github.com/users/trailsjs/followers","following_url":"https://api.github.com/users/trailsjs/following{/other_user}","gists_url":"https://api.github.com/users/trailsjs/gists{/gist_id}","starred_url":"https://api.github.com/users/trailsjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trailsjs/subscriptions","organizations_url":"https://api.github.com/users/trailsjs/orgs","repos_url":"https://api.github.com/users/trailsjs/repos","events_url":"https://api.github.com/users/trailsjs/events{/privacy}","received_events_url":"https://api.github.com/users/trailsjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/trailsjs/trailpack-mongoose","description":":package: Mongoose.js Trailpack http://mongoosejs.com","fork":false,"url":"https://api.github.com/repos/trailsjs/trailpack-mongoose","forks_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/forks","keys_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/teams","hooks_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/hooks","issue_events_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/events","assignees_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/tags","blobs_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/languages","stargazers_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/stargazers","contributors_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/contributors","subscribers_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/subscribers","subscription_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/subscription","commits_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/merges","archive_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/downloads","issues_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/labels{/name}","releases_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/releases{/id}","deployments_url":"https://api.github.com/repos/trailsjs/trailpack-mongoose/deployments","created_at":"2016-04-02T01:45:07Z","updated_at":"2016-11-27T15:09:20Z","pushed_at":"2017-01-23T09:27:37Z","git_url":"git://github.com/trailsjs/trailpack-mongoose.git","ssh_url":"git@github.com:trailsjs/trailpack-mongoose.git","clone_url":"https://github.com/trailsjs/trailpack-mongoose.git","svn_url":"https://github.com/trailsjs/trailpack-mongoose","homepage":null,"size":60,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/28"},"html":{"href":"https://github.com/trailsjs/trailpack-mongoose/pull/28"},"issue":{"href":"https://api.github.com/repos/trailsjs/trailpack-mongoose/issues/28"},"comments":{"href":"https://api.github.com/repos/trailsjs/trailpack-mongoose/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trailsjs/trailpack-mongoose/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/trailsjs/trailpack-mongoose/statuses/4fa40c3609a4f857a8978c62838d43a2eaee1680"}}}}
{"actor":{"display_login":"LobeTia"}}