{"action":"created","comment":{"url":"https://api.github.com/repos/midwayjs/midway/pulls/comments/303210019","pull_request_review_id":261546750,"id":303210019,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwMzIxMDAxOQ==","diff_hunk":"@@ -8,7 +8,13 @@ class DevCommand extends require('egg-bin/lib/cmd/dev') {\n   }\n \n   * run(context) {\n-    context.argv.framework = 'midway';\n+    if (!context.argv.framework) {\n+      if (require.resolve('midway')) {\n+        context.argv.framework = 'midway';\n+      } else if (require.resolve('midway-mirror')) {\n+        context.argv.framework = 'midway-mirror';\n+      }","path":"packages/midway-bin/lib/cmd/dev.js","position":10,"original_position":10,"commit_id":"a0b1bffe19702859342aa279b9fd40f0c9ae0a6b","original_commit_id":"a0b1bffe19702859342aa279b9fd40f0c9ae0a6b","user":{"login":"czy88840616","id":418820,"node_id":"MDQ6VXNlcjQxODgyMA==","avatar_url":"https://avatars3.githubusercontent.com/u/418820?v=4","gravatar_id":"","url":"https://api.github.com/users/czy88840616","html_url":"https://github.com/czy88840616","followers_url":"https://api.github.com/users/czy88840616/followers","following_url":"https://api.github.com/users/czy88840616/following{/other_user}","gists_url":"https://api.github.com/users/czy88840616/gists{/gist_id}","starred_url":"https://api.github.com/users/czy88840616/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czy88840616/subscriptions","organizations_url":"https://api.github.com/users/czy88840616/orgs","repos_url":"https://api.github.com/users/czy88840616/repos","events_url":"https://api.github.com/users/czy88840616/events{/privacy}","received_events_url":"https://api.github.com/users/czy88840616/received_events","type":"User","site_admin":false},"body":"不 else 了，想给 framework 留一个余地，如果未来有再做框架，可以直接传吧。","created_at":"2019-07-13T15:57:42Z","updated_at":"2019-07-13T15:57:42Z","html_url":"https://github.com/midwayjs/midway/pull/280#discussion_r303210019","pull_request_url":"https://api.github.com/repos/midwayjs/midway/pulls/280","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/midwayjs/midway/pulls/comments/303210019"},"html":{"href":"https://github.com/midwayjs/midway/pull/280#discussion_r303210019"},"pull_request":{"href":"https://api.github.com/repos/midwayjs/midway/pulls/280"}},"in_reply_to_id":303209974},"pull_request":{"url":"https://api.github.com/repos/midwayjs/midway/pulls/280","id":297326483,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk3MzI2NDgz","html_url":"https://github.com/midwayjs/midway/pull/280","diff_url":"https://github.com/midwayjs/midway/pull/280.diff","patch_url":"https://github.com/midwayjs/midway/pull/280.patch","issue_url":"https://api.github.com/repos/midwayjs/midway/issues/280","number":280,"state":"open","locked":false,"title":"chore: add midway-mirror support","user":{"login":"czy88840616","id":418820,"node_id":"MDQ6VXNlcjQxODgyMA==","avatar_url":"https://avatars3.githubusercontent.com/u/418820?v=4","gravatar_id":"","url":"https://api.github.com/users/czy88840616","html_url":"https://github.com/czy88840616","followers_url":"https://api.github.com/users/czy88840616/followers","following_url":"https://api.github.com/users/czy88840616/following{/other_user}","gists_url":"https://api.github.com/users/czy88840616/gists{/gist_id}","starred_url":"https://api.github.com/users/czy88840616/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czy88840616/subscriptions","organizations_url":"https://api.github.com/users/czy88840616/orgs","repos_url":"https://api.github.com/users/czy88840616/repos","events_url":"https://api.github.com/users/czy88840616/events{/privacy}","received_events_url":"https://api.github.com/users/czy88840616/received_events","type":"User","site_admin":false},"body":"增加一个新包支持 for https://github.com/alibaba/ice/pull/2437","created_at":"2019-07-13T15:52:32Z","updated_at":"2019-07-13T15:57:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50853a92a9e56496e771ccdd86e705b7e76de6d7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/midwayjs/midway/pulls/280/commits","review_comments_url":"https://api.github.com/repos/midwayjs/midway/pulls/280/comments","review_comment_url":"https://api.github.com/repos/midwayjs/midway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/midwayjs/midway/issues/280/comments","statuses_url":"https://api.github.com/repos/midwayjs/midway/statuses/a0b1bffe19702859342aa279b9fd40f0c9ae0a6b","head":{"label":"midwayjs:add_midway_mirror","ref":"add_midway_mirror","sha":"a0b1bffe19702859342aa279b9fd40f0c9ae0a6b","user":{"login":"midwayjs","id":32128461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTI4NDYx","avatar_url":"https://avatars2.githubusercontent.com/u/32128461?v=4","gravatar_id":"","url":"https://api.github.com/users/midwayjs","html_url":"https://github.com/midwayjs","followers_url":"https://api.github.com/users/midwayjs/followers","following_url":"https://api.github.com/users/midwayjs/following{/other_user}","gists_url":"https://api.github.com/users/midwayjs/gists{/gist_id}","starred_url":"https://api.github.com/users/midwayjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midwayjs/subscriptions","organizations_url":"https://api.github.com/users/midwayjs/orgs","repos_url":"https://api.github.com/users/midwayjs/repos","events_url":"https://api.github.com/users/midwayjs/events{/privacy}","received_events_url":"https://api.github.com/users/midwayjs/received_events","type":"Organization","site_admin":false},"repo":{"id":140669486,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA2Njk0ODY=","name":"midway","full_name":"midwayjs/midway","private":false,"owner":{"login":"midwayjs","id":32128461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTI4NDYx","avatar_url":"https://avatars2.githubusercontent.com/u/32128461?v=4","gravatar_id":"","url":"https://api.github.com/users/midwayjs","html_url":"https://github.com/midwayjs","followers_url":"https://api.github.com/users/midwayjs/followers","following_url":"https://api.github.com/users/midwayjs/following{/other_user}","gists_url":"https://api.github.com/users/midwayjs/gists{/gist_id}","starred_url":"https://api.github.com/users/midwayjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midwayjs/subscriptions","organizations_url":"https://api.github.com/users/midwayjs/orgs","repos_url":"https://api.github.com/users/midwayjs/repos","events_url":"https://api.github.com/users/midwayjs/events{/privacy}","received_events_url":"https://api.github.com/users/midwayjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/midwayjs/midway","description":"A future-oriented web framework based on IoC and use Typescript to Improve the efficiency of full stack application development","fork":false,"url":"https://api.github.com/repos/midwayjs/midway","forks_url":"https://api.github.com/repos/midwayjs/midway/forks","keys_url":"https://api.github.com/repos/midwayjs/midway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/midwayjs/midway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/midwayjs/midway/teams","hooks_url":"https://api.github.com/repos/midwayjs/midway/hooks","issue_events_url":"https://api.github.com/repos/midwayjs/midway/issues/events{/number}","events_url":"https://api.github.com/repos/midwayjs/midway/events","assignees_url":"https://api.github.com/repos/midwayjs/midway/assignees{/user}","branches_url":"https://api.github.com/repos/midwayjs/midway/branches{/branch}","tags_url":"https://api.github.com/repos/midwayjs/midway/tags","blobs_url":"https://api.github.com/repos/midwayjs/midway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/midwayjs/midway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/midwayjs/midway/git/refs{/sha}","trees_url":"https://api.github.com/repos/midwayjs/midway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/midwayjs/midway/statuses/{sha}","languages_url":"https://api.github.com/repos/midwayjs/midway/languages","stargazers_url":"https://api.github.com/repos/midwayjs/midway/stargazers","contributors_url":"https://api.github.com/repos/midwayjs/midway/contributors","subscribers_url":"https://api.github.com/repos/midwayjs/midway/subscribers","subscription_url":"https://api.github.com/repos/midwayjs/midway/subscription","commits_url":"https://api.github.com/repos/midwayjs/midway/commits{/sha}","git_commits_url":"https://api.github.com/repos/midwayjs/midway/git/commits{/sha}","comments_url":"https://api.github.com/repos/midwayjs/midway/comments{/number}","issue_comment_url":"https://api.github.com/repos/midwayjs/midway/issues/comments{/number}","contents_url":"https://api.github.com/repos/midwayjs/midway/contents/{+path}","compare_url":"https://api.github.com/repos/midwayjs/midway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/midwayjs/midway/merges","archive_url":"https://api.github.com/repos/midwayjs/midway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/midwayjs/midway/downloads","issues_url":"https://api.github.com/repos/midwayjs/midway/issues{/number}","pulls_url":"https://api.github.com/repos/midwayjs/midway/pulls{/number}","milestones_url":"https://api.github.com/repos/midwayjs/midway/milestones{/number}","notifications_url":"https://api.github.com/repos/midwayjs/midway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/midwayjs/midway/labels{/name}","releases_url":"https://api.github.com/repos/midwayjs/midway/releases{/id}","deployments_url":"https://api.github.com/repos/midwayjs/midway/deployments","created_at":"2018-07-12T06:16:16Z","updated_at":"2019-07-13T02:19:12Z","pushed_at":"2019-07-13T15:52:32Z","git_url":"git://github.com/midwayjs/midway.git","ssh_url":"git@github.com:midwayjs/midway.git","clone_url":"https://github.com/midwayjs/midway.git","svn_url":"https://github.com/midwayjs/midway","homepage":"https://midwayjs.org/midway/","size":7770,"stargazers_count":914,"watchers_count":914,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":61,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":38,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":61,"open_issues":38,"watchers":914,"default_branch":"master"}},"base":{"label":"midwayjs:master","ref":"master","sha":"5aa3c6aeb96dc582c5381e6c1cd99bf6d80a2965","user":{"login":"midwayjs","id":32128461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTI4NDYx","avatar_url":"https://avatars2.githubusercontent.com/u/32128461?v=4","gravatar_id":"","url":"https://api.github.com/users/midwayjs","html_url":"https://github.com/midwayjs","followers_url":"https://api.github.com/users/midwayjs/followers","following_url":"https://api.github.com/users/midwayjs/following{/other_user}","gists_url":"https://api.github.com/users/midwayjs/gists{/gist_id}","starred_url":"https://api.github.com/users/midwayjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midwayjs/subscriptions","organizations_url":"https://api.github.com/users/midwayjs/orgs","repos_url":"https://api.github.com/users/midwayjs/repos","events_url":"https://api.github.com/users/midwayjs/events{/privacy}","received_events_url":"https://api.github.com/users/midwayjs/received_events","type":"Organization","site_admin":false},"repo":{"id":140669486,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA2Njk0ODY=","name":"midway","full_name":"midwayjs/midway","private":false,"owner":{"login":"midwayjs","id":32128461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTI4NDYx","avatar_url":"https://avatars2.githubusercontent.com/u/32128461?v=4","gravatar_id":"","url":"https://api.github.com/users/midwayjs","html_url":"https://github.com/midwayjs","followers_url":"https://api.github.com/users/midwayjs/followers","following_url":"https://api.github.com/users/midwayjs/following{/other_user}","gists_url":"https://api.github.com/users/midwayjs/gists{/gist_id}","starred_url":"https://api.github.com/users/midwayjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midwayjs/subscriptions","organizations_url":"https://api.github.com/users/midwayjs/orgs","repos_url":"https://api.github.com/users/midwayjs/repos","events_url":"https://api.github.com/users/midwayjs/events{/privacy}","received_events_url":"https://api.github.com/users/midwayjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/midwayjs/midway","description":"A future-oriented web framework based on IoC and use Typescript to Improve the efficiency of full stack application development","fork":false,"url":"https://api.github.com/repos/midwayjs/midway","forks_url":"https://api.github.com/repos/midwayjs/midway/forks","keys_url":"https://api.github.com/repos/midwayjs/midway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/midwayjs/midway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/midwayjs/midway/teams","hooks_url":"https://api.github.com/repos/midwayjs/midway/hooks","issue_events_url":"https://api.github.com/repos/midwayjs/midway/issues/events{/number}","events_url":"https://api.github.com/repos/midwayjs/midway/events","assignees_url":"https://api.github.com/repos/midwayjs/midway/assignees{/user}","branches_url":"https://api.github.com/repos/midwayjs/midway/branches{/branch}","tags_url":"https://api.github.com/repos/midwayjs/midway/tags","blobs_url":"https://api.github.com/repos/midwayjs/midway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/midwayjs/midway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/midwayjs/midway/git/refs{/sha}","trees_url":"https://api.github.com/repos/midwayjs/midway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/midwayjs/midway/statuses/{sha}","languages_url":"https://api.github.com/repos/midwayjs/midway/languages","stargazers_url":"https://api.github.com/repos/midwayjs/midway/stargazers","contributors_url":"https://api.github.com/repos/midwayjs/midway/contributors","subscribers_url":"https://api.github.com/repos/midwayjs/midway/subscribers","subscription_url":"https://api.github.com/repos/midwayjs/midway/subscription","commits_url":"https://api.github.com/repos/midwayjs/midway/commits{/sha}","git_commits_url":"https://api.github.com/repos/midwayjs/midway/git/commits{/sha}","comments_url":"https://api.github.com/repos/midwayjs/midway/comments{/number}","issue_comment_url":"https://api.github.com/repos/midwayjs/midway/issues/comments{/number}","contents_url":"https://api.github.com/repos/midwayjs/midway/contents/{+path}","compare_url":"https://api.github.com/repos/midwayjs/midway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/midwayjs/midway/merges","archive_url":"https://api.github.com/repos/midwayjs/midway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/midwayjs/midway/downloads","issues_url":"https://api.github.com/repos/midwayjs/midway/issues{/number}","pulls_url":"https://api.github.com/repos/midwayjs/midway/pulls{/number}","milestones_url":"https://api.github.com/repos/midwayjs/midway/milestones{/number}","notifications_url":"https://api.github.com/repos/midwayjs/midway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/midwayjs/midway/labels{/name}","releases_url":"https://api.github.com/repos/midwayjs/midway/releases{/id}","deployments_url":"https://api.github.com/repos/midwayjs/midway/deployments","created_at":"2018-07-12T06:16:16Z","updated_at":"2019-07-13T02:19:12Z","pushed_at":"2019-07-13T15:52:32Z","git_url":"git://github.com/midwayjs/midway.git","ssh_url":"git@github.com:midwayjs/midway.git","clone_url":"https://github.com/midwayjs/midway.git","svn_url":"https://github.com/midwayjs/midway","homepage":"https://midwayjs.org/midway/","size":7770,"stargazers_count":914,"watchers_count":914,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":61,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":38,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":61,"open_issues":38,"watchers":914,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/midwayjs/midway/pulls/280"},"html":{"href":"https://github.com/midwayjs/midway/pull/280"},"issue":{"href":"https://api.github.com/repos/midwayjs/midway/issues/280"},"comments":{"href":"https://api.github.com/repos/midwayjs/midway/issues/280/comments"},"review_comments":{"href":"https://api.github.com/repos/midwayjs/midway/pulls/280/comments"},"review_comment":{"href":"https://api.github.com/repos/midwayjs/midway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/midwayjs/midway/pulls/280/commits"},"statuses":{"href":"https://api.github.com/repos/midwayjs/midway/statuses/a0b1bffe19702859342aa279b9fd40f0c9ae0a6b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"czy88840616"}}