{"action":"created","comment":{"url":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/comments/65819126","id":65819126,"diff_hunk":"@@ -52,16 +50,17 @@ describe('controllers/registry/module/scope_package.test.js', function () {\n \n   afterEach(mm.restore);\n \n-  it('should get 404 when do not support scope', function (done) {\n+  it('should get 302 when do not support scope', function (done) {\n     mm(config, 'scopes', []);\n     request(app)\n     .get('/@invalid/test')\n-    .expect(404, done);\n+    .expect('Location', 'https://registry.npmjs.com/@invalid/test')\n+    .expect(302, done);","path":"test/controllers/registry/module/scope_package.test.js","position":35,"original_position":35,"commit_id":"95691dd3b00b2d82fec6687c14c8aac4b14089ef","original_commit_id":"95691dd3b00b2d82fec6687c14c8aac4b14089ef","user":{"login":"fengmk2","id":156269,"avatar_url":"https://avatars.githubusercontent.com/u/156269?v=3","gravatar_id":"","url":"https://api.github.com/users/fengmk2","html_url":"https://github.com/fengmk2","followers_url":"https://api.github.com/users/fengmk2/followers","following_url":"https://api.github.com/users/fengmk2/following{/other_user}","gists_url":"https://api.github.com/users/fengmk2/gists{/gist_id}","starred_url":"https://api.github.com/users/fengmk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengmk2/subscriptions","organizations_url":"https://api.github.com/users/fengmk2/orgs","repos_url":"https://api.github.com/users/fengmk2/repos","events_url":"https://api.github.com/users/fengmk2/events{/privacy}","received_events_url":"https://api.github.com/users/fengmk2/received_events","type":"User","site_admin":false},"body":"@dead-horse 修改了","created_at":"2016-06-05T15:18:30Z","updated_at":"2016-06-05T15:18:30Z","html_url":"https://github.com/cnpm/cnpmjs.org/pull/946#discussion_r65819126","pull_request_url":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/946","_links":{"self":{"href":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/comments/65819126"},"html":{"href":"https://github.com/cnpm/cnpmjs.org/pull/946#discussion_r65819126"},"pull_request":{"href":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/946"}}},"pull_request":{"url":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/946","id":72631376,"html_url":"https://github.com/cnpm/cnpmjs.org/pull/946","diff_url":"https://github.com/cnpm/cnpmjs.org/pull/946.diff","patch_url":"https://github.com/cnpm/cnpmjs.org/pull/946.patch","issue_url":"https://api.github.com/repos/cnpm/cnpmjs.org/issues/946","number":946,"state":"open","locked":false,"title":"fix: should sync missing public scoped package on install","user":{"login":"fengmk2","id":156269,"avatar_url":"https://avatars.githubusercontent.com/u/156269?v=3","gravatar_id":"","url":"https://api.github.com/users/fengmk2","html_url":"https://github.com/fengmk2","followers_url":"https://api.github.com/users/fengmk2/followers","following_url":"https://api.github.com/users/fengmk2/following{/other_user}","gists_url":"https://api.github.com/users/fengmk2/gists{/gist_id}","starred_url":"https://api.github.com/users/fengmk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengmk2/subscriptions","organizations_url":"https://api.github.com/users/fengmk2/orgs","repos_url":"https://api.github.com/users/fengmk2/repos","events_url":"https://api.github.com/users/fengmk2/events{/privacy}","received_events_url":"https://api.github.com/users/fengmk2/received_events","type":"User","site_admin":false},"body":"closes #938","created_at":"2016-06-05T14:55:34Z","updated_at":"2016-06-05T15:18:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06bfc7d831dbc6ab4aaffbe8c2e2392d00626a5b","assignee":{"login":"dead-horse","id":985607,"avatar_url":"https://avatars.githubusercontent.com/u/985607?v=3","gravatar_id":"","url":"https://api.github.com/users/dead-horse","html_url":"https://github.com/dead-horse","followers_url":"https://api.github.com/users/dead-horse/followers","following_url":"https://api.github.com/users/dead-horse/following{/other_user}","gists_url":"https://api.github.com/users/dead-horse/gists{/gist_id}","starred_url":"https://api.github.com/users/dead-horse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dead-horse/subscriptions","organizations_url":"https://api.github.com/users/dead-horse/orgs","repos_url":"https://api.github.com/users/dead-horse/repos","events_url":"https://api.github.com/users/dead-horse/events{/privacy}","received_events_url":"https://api.github.com/users/dead-horse/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cnpm/cnpmjs.org/milestones/6","html_url":"https://github.com/cnpm/cnpmjs.org/milestones/2.x","labels_url":"https://api.github.com/repos/cnpm/cnpmjs.org/milestones/6/labels","id":805684,"number":6,"title":"2.x","description":"1. make cnpmjs.org more flexible\r\n\r\n- support plugins like:\r\n    - user management\r\n    - scope management\r\n    - package management\r\n    - authorization\r\n- expose as a koa application\r\n    - mount to another koa application\r\n    - easy to add middlewares\r\n\r\n2. security and monitors","creator":{"login":"dead-horse","id":985607,"avatar_url":"https://avatars.githubusercontent.com/u/985607?v=3","gravatar_id":"","url":"https://api.github.com/users/dead-horse","html_url":"https://github.com/dead-horse","followers_url":"https://api.github.com/users/dead-horse/followers","following_url":"https://api.github.com/users/dead-horse/following{/other_user}","gists_url":"https://api.github.com/users/dead-horse/gists{/gist_id}","starred_url":"https://api.github.com/users/dead-horse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dead-horse/subscriptions","organizations_url":"https://api.github.com/users/dead-horse/orgs","repos_url":"https://api.github.com/users/dead-horse/repos","events_url":"https://api.github.com/users/dead-horse/events{/privacy}","received_events_url":"https://api.github.com/users/dead-horse/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":137,"state":"open","created_at":"2014-09-28T14:30:22Z","updated_at":"2016-06-05T14:55:34Z","due_on":"2016-06-29T16:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/946/commits","review_comments_url":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/946/comments","review_comment_url":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cnpm/cnpmjs.org/issues/946/comments","statuses_url":"https://api.github.com/repos/cnpm/cnpmjs.org/statuses/95691dd3b00b2d82fec6687c14c8aac4b14089ef","head":{"label":"cnpm:install-sync-on-public-scoped-package","ref":"install-sync-on-public-scoped-package","sha":"95691dd3b00b2d82fec6687c14c8aac4b14089ef","user":{"login":"cnpm","id":6365106,"avatar_url":"https://avatars.githubusercontent.com/u/6365106?v=3","gravatar_id":"","url":"https://api.github.com/users/cnpm","html_url":"https://github.com/cnpm","followers_url":"https://api.github.com/users/cnpm/followers","following_url":"https://api.github.com/users/cnpm/following{/other_user}","gists_url":"https://api.github.com/users/cnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/cnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnpm/subscriptions","organizations_url":"https://api.github.com/users/cnpm/orgs","repos_url":"https://api.github.com/users/cnpm/repos","events_url":"https://api.github.com/users/cnpm/events{/privacy}","received_events_url":"https://api.github.com/users/cnpm/received_events","type":"Organization","site_admin":false},"repo":{"id":14884825,"name":"cnpmjs.org","full_name":"cnpm/cnpmjs.org","owner":{"login":"cnpm","id":6365106,"avatar_url":"https://avatars.githubusercontent.com/u/6365106?v=3","gravatar_id":"","url":"https://api.github.com/users/cnpm","html_url":"https://github.com/cnpm","followers_url":"https://api.github.com/users/cnpm/followers","following_url":"https://api.github.com/users/cnpm/following{/other_user}","gists_url":"https://api.github.com/users/cnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/cnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnpm/subscriptions","organizations_url":"https://api.github.com/users/cnpm/orgs","repos_url":"https://api.github.com/users/cnpm/repos","events_url":"https://api.github.com/users/cnpm/events{/privacy}","received_events_url":"https://api.github.com/users/cnpm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cnpm/cnpmjs.org","description":"Private npm registry and web for Enterprise","fork":false,"url":"https://api.github.com/repos/cnpm/cnpmjs.org","forks_url":"https://api.github.com/repos/cnpm/cnpmjs.org/forks","keys_url":"https://api.github.com/repos/cnpm/cnpmjs.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cnpm/cnpmjs.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cnpm/cnpmjs.org/teams","hooks_url":"https://api.github.com/repos/cnpm/cnpmjs.org/hooks","issue_events_url":"https://api.github.com/repos/cnpm/cnpmjs.org/issues/events{/number}","events_url":"https://api.github.com/repos/cnpm/cnpmjs.org/events","assignees_url":"https://api.github.com/repos/cnpm/cnpmjs.org/assignees{/user}","branches_url":"https://api.github.com/repos/cnpm/cnpmjs.org/branches{/branch}","tags_url":"https://api.github.com/repos/cnpm/cnpmjs.org/tags","blobs_url":"https://api.github.com/repos/cnpm/cnpmjs.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cnpm/cnpmjs.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cnpm/cnpmjs.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/cnpm/cnpmjs.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cnpm/cnpmjs.org/statuses/{sha}","languages_url":"https://api.github.com/repos/cnpm/cnpmjs.org/languages","stargazers_url":"https://api.github.com/repos/cnpm/cnpmjs.org/stargazers","contributors_url":"https://api.github.com/repos/cnpm/cnpmjs.org/contributors","subscribers_url":"https://api.github.com/repos/cnpm/cnpmjs.org/subscribers","subscription_url":"https://api.github.com/repos/cnpm/cnpmjs.org/subscription","commits_url":"https://api.github.com/repos/cnpm/cnpmjs.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/cnpm/cnpmjs.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/cnpm/cnpmjs.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/cnpm/cnpmjs.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/cnpm/cnpmjs.org/contents/{+path}","compare_url":"https://api.github.com/repos/cnpm/cnpmjs.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cnpm/cnpmjs.org/merges","archive_url":"https://api.github.com/repos/cnpm/cnpmjs.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cnpm/cnpmjs.org/downloads","issues_url":"https://api.github.com/repos/cnpm/cnpmjs.org/issues{/number}","pulls_url":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls{/number}","milestones_url":"https://api.github.com/repos/cnpm/cnpmjs.org/milestones{/number}","notifications_url":"https://api.github.com/repos/cnpm/cnpmjs.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cnpm/cnpmjs.org/labels{/name}","releases_url":"https://api.github.com/repos/cnpm/cnpmjs.org/releases{/id}","deployments_url":"https://api.github.com/repos/cnpm/cnpmjs.org/deployments","created_at":"2013-12-03T05:58:33Z","updated_at":"2016-06-05T14:56:33Z","pushed_at":"2016-06-05T15:18:00Z","git_url":"git://github.com/cnpm/cnpmjs.org.git","ssh_url":"git@github.com:cnpm/cnpmjs.org.git","clone_url":"https://github.com/cnpm/cnpmjs.org.git","svn_url":"https://github.com/cnpm/cnpmjs.org","homepage":"https://cnpmjs.org","size":3883,"stargazers_count":977,"watchers_count":977,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":162,"mirror_url":null,"open_issues_count":75,"forks":162,"open_issues":75,"watchers":977,"default_branch":"master"}},"base":{"label":"cnpm:master","ref":"master","sha":"9b572d77aa5b552c3f3435d2fd36dbde7313ea6b","user":{"login":"cnpm","id":6365106,"avatar_url":"https://avatars.githubusercontent.com/u/6365106?v=3","gravatar_id":"","url":"https://api.github.com/users/cnpm","html_url":"https://github.com/cnpm","followers_url":"https://api.github.com/users/cnpm/followers","following_url":"https://api.github.com/users/cnpm/following{/other_user}","gists_url":"https://api.github.com/users/cnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/cnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnpm/subscriptions","organizations_url":"https://api.github.com/users/cnpm/orgs","repos_url":"https://api.github.com/users/cnpm/repos","events_url":"https://api.github.com/users/cnpm/events{/privacy}","received_events_url":"https://api.github.com/users/cnpm/received_events","type":"Organization","site_admin":false},"repo":{"id":14884825,"name":"cnpmjs.org","full_name":"cnpm/cnpmjs.org","owner":{"login":"cnpm","id":6365106,"avatar_url":"https://avatars.githubusercontent.com/u/6365106?v=3","gravatar_id":"","url":"https://api.github.com/users/cnpm","html_url":"https://github.com/cnpm","followers_url":"https://api.github.com/users/cnpm/followers","following_url":"https://api.github.com/users/cnpm/following{/other_user}","gists_url":"https://api.github.com/users/cnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/cnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnpm/subscriptions","organizations_url":"https://api.github.com/users/cnpm/orgs","repos_url":"https://api.github.com/users/cnpm/repos","events_url":"https://api.github.com/users/cnpm/events{/privacy}","received_events_url":"https://api.github.com/users/cnpm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cnpm/cnpmjs.org","description":"Private npm registry and web for Enterprise","fork":false,"url":"https://api.github.com/repos/cnpm/cnpmjs.org","forks_url":"https://api.github.com/repos/cnpm/cnpmjs.org/forks","keys_url":"https://api.github.com/repos/cnpm/cnpmjs.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cnpm/cnpmjs.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cnpm/cnpmjs.org/teams","hooks_url":"https://api.github.com/repos/cnpm/cnpmjs.org/hooks","issue_events_url":"https://api.github.com/repos/cnpm/cnpmjs.org/issues/events{/number}","events_url":"https://api.github.com/repos/cnpm/cnpmjs.org/events","assignees_url":"https://api.github.com/repos/cnpm/cnpmjs.org/assignees{/user}","branches_url":"https://api.github.com/repos/cnpm/cnpmjs.org/branches{/branch}","tags_url":"https://api.github.com/repos/cnpm/cnpmjs.org/tags","blobs_url":"https://api.github.com/repos/cnpm/cnpmjs.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cnpm/cnpmjs.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cnpm/cnpmjs.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/cnpm/cnpmjs.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cnpm/cnpmjs.org/statuses/{sha}","languages_url":"https://api.github.com/repos/cnpm/cnpmjs.org/languages","stargazers_url":"https://api.github.com/repos/cnpm/cnpmjs.org/stargazers","contributors_url":"https://api.github.com/repos/cnpm/cnpmjs.org/contributors","subscribers_url":"https://api.github.com/repos/cnpm/cnpmjs.org/subscribers","subscription_url":"https://api.github.com/repos/cnpm/cnpmjs.org/subscription","commits_url":"https://api.github.com/repos/cnpm/cnpmjs.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/cnpm/cnpmjs.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/cnpm/cnpmjs.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/cnpm/cnpmjs.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/cnpm/cnpmjs.org/contents/{+path}","compare_url":"https://api.github.com/repos/cnpm/cnpmjs.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cnpm/cnpmjs.org/merges","archive_url":"https://api.github.com/repos/cnpm/cnpmjs.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cnpm/cnpmjs.org/downloads","issues_url":"https://api.github.com/repos/cnpm/cnpmjs.org/issues{/number}","pulls_url":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls{/number}","milestones_url":"https://api.github.com/repos/cnpm/cnpmjs.org/milestones{/number}","notifications_url":"https://api.github.com/repos/cnpm/cnpmjs.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cnpm/cnpmjs.org/labels{/name}","releases_url":"https://api.github.com/repos/cnpm/cnpmjs.org/releases{/id}","deployments_url":"https://api.github.com/repos/cnpm/cnpmjs.org/deployments","created_at":"2013-12-03T05:58:33Z","updated_at":"2016-06-05T14:56:33Z","pushed_at":"2016-06-05T15:18:00Z","git_url":"git://github.com/cnpm/cnpmjs.org.git","ssh_url":"git@github.com:cnpm/cnpmjs.org.git","clone_url":"https://github.com/cnpm/cnpmjs.org.git","svn_url":"https://github.com/cnpm/cnpmjs.org","homepage":"https://cnpmjs.org","size":3883,"stargazers_count":977,"watchers_count":977,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":162,"mirror_url":null,"open_issues_count":75,"forks":162,"open_issues":75,"watchers":977,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/946"},"html":{"href":"https://github.com/cnpm/cnpmjs.org/pull/946"},"issue":{"href":"https://api.github.com/repos/cnpm/cnpmjs.org/issues/946"},"comments":{"href":"https://api.github.com/repos/cnpm/cnpmjs.org/issues/946/comments"},"review_comments":{"href":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/946/comments"},"review_comment":{"href":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cnpm/cnpmjs.org/pulls/946/commits"},"statuses":{"href":"https://api.github.com/repos/cnpm/cnpmjs.org/statuses/95691dd3b00b2d82fec6687c14c8aac4b14089ef"}}}}
{"actor":{"display_login":"fengmk2"}}