{"action":"created","comment":{"url":"https://api.github.com/repos/coopengo/tryton-model/pulls/comments/192730026","pull_request_review_id":125559237,"id":192730026,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjczMDAyNg==","diff_hunk":"@@ -23,6 +24,15 @@ module.exports = function (Session) {\n       })\n   })\n \n+  Session.afterStart.push(function () {\n+    debug('init module')\n+    this.modules = {}\n+    return this.rpc(methods.listModules, [])\n+      .then((modules) => {\n+        this.modules = modules})\n+","path":"lib/session.js","position":18,"original_position":18,"commit_id":"53ee933ee23e6e9b2921b0c12a1c0c51394a9e22","original_commit_id":"53ee933ee23e6e9b2921b0c12a1c0c51394a9e22","user":{"login":"jmousset","id":16104512,"node_id":"MDQ6VXNlcjE2MTA0NTEy","avatar_url":"https://avatars2.githubusercontent.com/u/16104512?v=4","gravatar_id":"","url":"https://api.github.com/users/jmousset","html_url":"https://github.com/jmousset","followers_url":"https://api.github.com/users/jmousset/followers","following_url":"https://api.github.com/users/jmousset/following{/other_user}","gists_url":"https://api.github.com/users/jmousset/gists{/gist_id}","starred_url":"https://api.github.com/users/jmousset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmousset/subscriptions","organizations_url":"https://api.github.com/users/jmousset/orgs","repos_url":"https://api.github.com/users/jmousset/repos","events_url":"https://api.github.com/users/jmousset/events{/privacy}","received_events_url":"https://api.github.com/users/jmousset/received_events","type":"User","site_admin":false},"body":"une ligne vide en trop là non ? tu peux utiliser npm format (la commande) normalement pour formater automatiquement le code.","created_at":"2018-06-04T12:54:41Z","updated_at":"2018-06-04T12:54:44Z","html_url":"https://github.com/coopengo/tryton-model/pull/7#discussion_r192730026","pull_request_url":"https://api.github.com/repos/coopengo/tryton-model/pulls/7","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/coopengo/tryton-model/pulls/comments/192730026"},"html":{"href":"https://github.com/coopengo/tryton-model/pull/7#discussion_r192730026"},"pull_request":{"href":"https://api.github.com/repos/coopengo/tryton-model/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/coopengo/tryton-model/pulls/7","id":192073062,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMDczMDYy","html_url":"https://github.com/coopengo/tryton-model/pull/7","diff_url":"https://github.com/coopengo/tryton-model/pull/7.diff","patch_url":"https://github.com/coopengo/tryton-model/pull/7.patch","issue_url":"https://api.github.com/repos/coopengo/tryton-model/issues/7","number":7,"state":"open","locked":false,"title":"session: add generic method to check if a module is installed","user":{"login":"ClemFaure","id":25296990,"node_id":"MDQ6VXNlcjI1Mjk2OTkw","avatar_url":"https://avatars3.githubusercontent.com/u/25296990?v=4","gravatar_id":"","url":"https://api.github.com/users/ClemFaure","html_url":"https://github.com/ClemFaure","followers_url":"https://api.github.com/users/ClemFaure/followers","following_url":"https://api.github.com/users/ClemFaure/following{/other_user}","gists_url":"https://api.github.com/users/ClemFaure/gists{/gist_id}","starred_url":"https://api.github.com/users/ClemFaure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClemFaure/subscriptions","organizations_url":"https://api.github.com/users/ClemFaure/orgs","repos_url":"https://api.github.com/users/ClemFaure/repos","events_url":"https://api.github.com/users/ClemFaure/events{/privacy}","received_events_url":"https://api.github.com/users/ClemFaure/received_events","type":"User","site_admin":false},"body":"\r\nRef #8974","created_at":"2018-06-01T15:45:46Z","updated_at":"2018-06-04T12:54:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3da79c48f6f4d63320b816d13f46d13cd8e1f90d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"alikefia","id":2697643,"node_id":"MDQ6VXNlcjI2OTc2NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/2697643?v=4","gravatar_id":"","url":"https://api.github.com/users/alikefia","html_url":"https://github.com/alikefia","followers_url":"https://api.github.com/users/alikefia/followers","following_url":"https://api.github.com/users/alikefia/following{/other_user}","gists_url":"https://api.github.com/users/alikefia/gists{/gist_id}","starred_url":"https://api.github.com/users/alikefia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alikefia/subscriptions","organizations_url":"https://api.github.com/users/alikefia/orgs","repos_url":"https://api.github.com/users/alikefia/repos","events_url":"https://api.github.com/users/alikefia/events{/privacy}","received_events_url":"https://api.github.com/users/alikefia/received_events","type":"User","site_admin":false},{"login":"JCavallo","id":3429256,"node_id":"MDQ6VXNlcjM0MjkyNTY=","avatar_url":"https://avatars3.githubusercontent.com/u/3429256?v=4","gravatar_id":"","url":"https://api.github.com/users/JCavallo","html_url":"https://github.com/JCavallo","followers_url":"https://api.github.com/users/JCavallo/followers","following_url":"https://api.github.com/users/JCavallo/following{/other_user}","gists_url":"https://api.github.com/users/JCavallo/gists{/gist_id}","starred_url":"https://api.github.com/users/JCavallo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCavallo/subscriptions","organizations_url":"https://api.github.com/users/JCavallo/orgs","repos_url":"https://api.github.com/users/JCavallo/repos","events_url":"https://api.github.com/users/JCavallo/events{/privacy}","received_events_url":"https://api.github.com/users/JCavallo/received_events","type":"User","site_admin":false},{"login":"AdrienBenduc","id":15871293,"node_id":"MDQ6VXNlcjE1ODcxMjkz","avatar_url":"https://avatars3.githubusercontent.com/u/15871293?v=4","gravatar_id":"","url":"https://api.github.com/users/AdrienBenduc","html_url":"https://github.com/AdrienBenduc","followers_url":"https://api.github.com/users/AdrienBenduc/followers","following_url":"https://api.github.com/users/AdrienBenduc/following{/other_user}","gists_url":"https://api.github.com/users/AdrienBenduc/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrienBenduc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrienBenduc/subscriptions","organizations_url":"https://api.github.com/users/AdrienBenduc/orgs","repos_url":"https://api.github.com/users/AdrienBenduc/repos","events_url":"https://api.github.com/users/AdrienBenduc/events{/privacy}","received_events_url":"https://api.github.com/users/AdrienBenduc/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":388261915,"node_id":"MDU6TGFiZWwzODgyNjE5MTU=","url":"https://api.github.com/repos/coopengo/tryton-model/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/coopengo/tryton-model/pulls/7/commits","review_comments_url":"https://api.github.com/repos/coopengo/tryton-model/pulls/7/comments","review_comment_url":"https://api.github.com/repos/coopengo/tryton-model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coopengo/tryton-model/issues/7/comments","statuses_url":"https://api.github.com/repos/coopengo/tryton-model/statuses/53ee933ee23e6e9b2921b0c12a1c0c51394a9e22","head":{"label":"coopengo:8974_tryton_model4.6_add_module_method","ref":"8974_tryton_model4.6_add_module_method","sha":"53ee933ee23e6e9b2921b0c12a1c0c51394a9e22","user":{"login":"coopengo","id":15231357,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjMxMzU3","avatar_url":"https://avatars1.githubusercontent.com/u/15231357?v=4","gravatar_id":"","url":"https://api.github.com/users/coopengo","html_url":"https://github.com/coopengo","followers_url":"https://api.github.com/users/coopengo/followers","following_url":"https://api.github.com/users/coopengo/following{/other_user}","gists_url":"https://api.github.com/users/coopengo/gists{/gist_id}","starred_url":"https://api.github.com/users/coopengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopengo/subscriptions","organizations_url":"https://api.github.com/users/coopengo/orgs","repos_url":"https://api.github.com/users/coopengo/repos","events_url":"https://api.github.com/users/coopengo/events{/privacy}","received_events_url":"https://api.github.com/users/coopengo/received_events","type":"Organization","site_admin":false},"repo":{"id":60510420,"node_id":"MDEwOlJlcG9zaXRvcnk2MDUxMDQyMA==","name":"tryton-model","full_name":"coopengo/tryton-model","owner":{"login":"coopengo","id":15231357,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjMxMzU3","avatar_url":"https://avatars1.githubusercontent.com/u/15231357?v=4","gravatar_id":"","url":"https://api.github.com/users/coopengo","html_url":"https://github.com/coopengo","followers_url":"https://api.github.com/users/coopengo/followers","following_url":"https://api.github.com/users/coopengo/following{/other_user}","gists_url":"https://api.github.com/users/coopengo/gists{/gist_id}","starred_url":"https://api.github.com/users/coopengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopengo/subscriptions","organizations_url":"https://api.github.com/users/coopengo/orgs","repos_url":"https://api.github.com/users/coopengo/repos","events_url":"https://api.github.com/users/coopengo/events{/privacy}","received_events_url":"https://api.github.com/users/coopengo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coopengo/tryton-model","description":null,"fork":false,"url":"https://api.github.com/repos/coopengo/tryton-model","forks_url":"https://api.github.com/repos/coopengo/tryton-model/forks","keys_url":"https://api.github.com/repos/coopengo/tryton-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coopengo/tryton-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coopengo/tryton-model/teams","hooks_url":"https://api.github.com/repos/coopengo/tryton-model/hooks","issue_events_url":"https://api.github.com/repos/coopengo/tryton-model/issues/events{/number}","events_url":"https://api.github.com/repos/coopengo/tryton-model/events","assignees_url":"https://api.github.com/repos/coopengo/tryton-model/assignees{/user}","branches_url":"https://api.github.com/repos/coopengo/tryton-model/branches{/branch}","tags_url":"https://api.github.com/repos/coopengo/tryton-model/tags","blobs_url":"https://api.github.com/repos/coopengo/tryton-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coopengo/tryton-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coopengo/tryton-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/coopengo/tryton-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coopengo/tryton-model/statuses/{sha}","languages_url":"https://api.github.com/repos/coopengo/tryton-model/languages","stargazers_url":"https://api.github.com/repos/coopengo/tryton-model/stargazers","contributors_url":"https://api.github.com/repos/coopengo/tryton-model/contributors","subscribers_url":"https://api.github.com/repos/coopengo/tryton-model/subscribers","subscription_url":"https://api.github.com/repos/coopengo/tryton-model/subscription","commits_url":"https://api.github.com/repos/coopengo/tryton-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/coopengo/tryton-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/coopengo/tryton-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/coopengo/tryton-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/coopengo/tryton-model/contents/{+path}","compare_url":"https://api.github.com/repos/coopengo/tryton-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coopengo/tryton-model/merges","archive_url":"https://api.github.com/repos/coopengo/tryton-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coopengo/tryton-model/downloads","issues_url":"https://api.github.com/repos/coopengo/tryton-model/issues{/number}","pulls_url":"https://api.github.com/repos/coopengo/tryton-model/pulls{/number}","milestones_url":"https://api.github.com/repos/coopengo/tryton-model/milestones{/number}","notifications_url":"https://api.github.com/repos/coopengo/tryton-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coopengo/tryton-model/labels{/name}","releases_url":"https://api.github.com/repos/coopengo/tryton-model/releases{/id}","deployments_url":"https://api.github.com/repos/coopengo/tryton-model/deployments","created_at":"2016-06-06T08:12:25Z","updated_at":"2018-03-26T16:22:57Z","pushed_at":"2018-06-01T15:45:47Z","git_url":"git://github.com/coopengo/tryton-model.git","ssh_url":"git@github.com:coopengo/tryton-model.git","clone_url":"https://github.com/coopengo/tryton-model.git","svn_url":"https://github.com/coopengo/tryton-model","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"4.6"}},"base":{"label":"coopengo:4.6","ref":"4.6","sha":"3bbaf1e9cac011770008b1c52288f78bd45ad680","user":{"login":"coopengo","id":15231357,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjMxMzU3","avatar_url":"https://avatars1.githubusercontent.com/u/15231357?v=4","gravatar_id":"","url":"https://api.github.com/users/coopengo","html_url":"https://github.com/coopengo","followers_url":"https://api.github.com/users/coopengo/followers","following_url":"https://api.github.com/users/coopengo/following{/other_user}","gists_url":"https://api.github.com/users/coopengo/gists{/gist_id}","starred_url":"https://api.github.com/users/coopengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopengo/subscriptions","organizations_url":"https://api.github.com/users/coopengo/orgs","repos_url":"https://api.github.com/users/coopengo/repos","events_url":"https://api.github.com/users/coopengo/events{/privacy}","received_events_url":"https://api.github.com/users/coopengo/received_events","type":"Organization","site_admin":false},"repo":{"id":60510420,"node_id":"MDEwOlJlcG9zaXRvcnk2MDUxMDQyMA==","name":"tryton-model","full_name":"coopengo/tryton-model","owner":{"login":"coopengo","id":15231357,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjMxMzU3","avatar_url":"https://avatars1.githubusercontent.com/u/15231357?v=4","gravatar_id":"","url":"https://api.github.com/users/coopengo","html_url":"https://github.com/coopengo","followers_url":"https://api.github.com/users/coopengo/followers","following_url":"https://api.github.com/users/coopengo/following{/other_user}","gists_url":"https://api.github.com/users/coopengo/gists{/gist_id}","starred_url":"https://api.github.com/users/coopengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopengo/subscriptions","organizations_url":"https://api.github.com/users/coopengo/orgs","repos_url":"https://api.github.com/users/coopengo/repos","events_url":"https://api.github.com/users/coopengo/events{/privacy}","received_events_url":"https://api.github.com/users/coopengo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coopengo/tryton-model","description":null,"fork":false,"url":"https://api.github.com/repos/coopengo/tryton-model","forks_url":"https://api.github.com/repos/coopengo/tryton-model/forks","keys_url":"https://api.github.com/repos/coopengo/tryton-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coopengo/tryton-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coopengo/tryton-model/teams","hooks_url":"https://api.github.com/repos/coopengo/tryton-model/hooks","issue_events_url":"https://api.github.com/repos/coopengo/tryton-model/issues/events{/number}","events_url":"https://api.github.com/repos/coopengo/tryton-model/events","assignees_url":"https://api.github.com/repos/coopengo/tryton-model/assignees{/user}","branches_url":"https://api.github.com/repos/coopengo/tryton-model/branches{/branch}","tags_url":"https://api.github.com/repos/coopengo/tryton-model/tags","blobs_url":"https://api.github.com/repos/coopengo/tryton-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coopengo/tryton-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coopengo/tryton-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/coopengo/tryton-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coopengo/tryton-model/statuses/{sha}","languages_url":"https://api.github.com/repos/coopengo/tryton-model/languages","stargazers_url":"https://api.github.com/repos/coopengo/tryton-model/stargazers","contributors_url":"https://api.github.com/repos/coopengo/tryton-model/contributors","subscribers_url":"https://api.github.com/repos/coopengo/tryton-model/subscribers","subscription_url":"https://api.github.com/repos/coopengo/tryton-model/subscription","commits_url":"https://api.github.com/repos/coopengo/tryton-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/coopengo/tryton-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/coopengo/tryton-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/coopengo/tryton-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/coopengo/tryton-model/contents/{+path}","compare_url":"https://api.github.com/repos/coopengo/tryton-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coopengo/tryton-model/merges","archive_url":"https://api.github.com/repos/coopengo/tryton-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coopengo/tryton-model/downloads","issues_url":"https://api.github.com/repos/coopengo/tryton-model/issues{/number}","pulls_url":"https://api.github.com/repos/coopengo/tryton-model/pulls{/number}","milestones_url":"https://api.github.com/repos/coopengo/tryton-model/milestones{/number}","notifications_url":"https://api.github.com/repos/coopengo/tryton-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coopengo/tryton-model/labels{/name}","releases_url":"https://api.github.com/repos/coopengo/tryton-model/releases{/id}","deployments_url":"https://api.github.com/repos/coopengo/tryton-model/deployments","created_at":"2016-06-06T08:12:25Z","updated_at":"2018-03-26T16:22:57Z","pushed_at":"2018-06-01T15:45:47Z","git_url":"git://github.com/coopengo/tryton-model.git","ssh_url":"git@github.com:coopengo/tryton-model.git","clone_url":"https://github.com/coopengo/tryton-model.git","svn_url":"https://github.com/coopengo/tryton-model","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"4.6"}},"_links":{"self":{"href":"https://api.github.com/repos/coopengo/tryton-model/pulls/7"},"html":{"href":"https://github.com/coopengo/tryton-model/pull/7"},"issue":{"href":"https://api.github.com/repos/coopengo/tryton-model/issues/7"},"comments":{"href":"https://api.github.com/repos/coopengo/tryton-model/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/coopengo/tryton-model/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/coopengo/tryton-model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coopengo/tryton-model/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/coopengo/tryton-model/statuses/53ee933ee23e6e9b2921b0c12a1c0c51394a9e22"}},"author_association":"NONE"}}
{"actor":{"display_login":"jmousset"}}