{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/albertfdp/yarn/pulls/1","id":96345830,"html_url":"https://github.com/albertfdp/yarn/pull/1","diff_url":"https://github.com/albertfdp/yarn/pull/1.diff","patch_url":"https://github.com/albertfdp/yarn/pull/1.patch","issue_url":"https://api.github.com/repos/albertfdp/yarn/issues/1","number":1,"state":"open","locked":false,"title":"Add support to max network concurrent requests","user":{"login":"albertfdp","id":649667,"avatar_url":"https://avatars.githubusercontent.com/u/649667?v=3","gravatar_id":"","url":"https://api.github.com/users/albertfdp","html_url":"https://github.com/albertfdp","followers_url":"https://api.github.com/users/albertfdp/followers","following_url":"https://api.github.com/users/albertfdp/following{/other_user}","gists_url":"https://api.github.com/users/albertfdp/gists{/gist_id}","starred_url":"https://api.github.com/users/albertfdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertfdp/subscriptions","organizations_url":"https://api.github.com/users/albertfdp/orgs","repos_url":"https://api.github.com/users/albertfdp/repos","events_url":"https://api.github.com/users/albertfdp/events{/privacy}","received_events_url":"https://api.github.com/users/albertfdp/received_events","type":"User","site_admin":false},"body":"**Summary**\r\n\r\nIn my organization we are consuming many private dependencies as GitHub private repositories through ssh (i.e. `git+ssh://git@github.com/org/name.git`), which results that when the number of these dependencies exceeds some limit (around 10), the number of concurrent requests to GitHub from the same IP will result in a `Connection reset by peer error` which is a DDoS protection from GitHub. \r\n\r\nSince yarn will cache all successful fetches, it really does not matter that the first fetch of dependencies is a bit slow.\r\n\r\n**Test plan**\r\n\r\nTBD\r\n\r\n<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI. -->\r\n\r\n","created_at":"2016-12-02T20:17:38Z","updated_at":"2016-12-02T20:17:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/albertfdp/yarn/pulls/1/commits","review_comments_url":"https://api.github.com/repos/albertfdp/yarn/pulls/1/comments","review_comment_url":"https://api.github.com/repos/albertfdp/yarn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/albertfdp/yarn/issues/1/comments","statuses_url":"https://api.github.com/repos/albertfdp/yarn/statuses/7ae0a4902ba22835ae8dfbe73d2b4b760736e14c","head":{"label":"albertfdp:network-concurrency","ref":"network-concurrency","sha":"7ae0a4902ba22835ae8dfbe73d2b4b760736e14c","user":{"login":"albertfdp","id":649667,"avatar_url":"https://avatars.githubusercontent.com/u/649667?v=3","gravatar_id":"","url":"https://api.github.com/users/albertfdp","html_url":"https://github.com/albertfdp","followers_url":"https://api.github.com/users/albertfdp/followers","following_url":"https://api.github.com/users/albertfdp/following{/other_user}","gists_url":"https://api.github.com/users/albertfdp/gists{/gist_id}","starred_url":"https://api.github.com/users/albertfdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertfdp/subscriptions","organizations_url":"https://api.github.com/users/albertfdp/orgs","repos_url":"https://api.github.com/users/albertfdp/repos","events_url":"https://api.github.com/users/albertfdp/events{/privacy}","received_events_url":"https://api.github.com/users/albertfdp/received_events","type":"User","site_admin":false},"repo":{"id":75425075,"name":"yarn","full_name":"albertfdp/yarn","owner":{"login":"albertfdp","id":649667,"avatar_url":"https://avatars.githubusercontent.com/u/649667?v=3","gravatar_id":"","url":"https://api.github.com/users/albertfdp","html_url":"https://github.com/albertfdp","followers_url":"https://api.github.com/users/albertfdp/followers","following_url":"https://api.github.com/users/albertfdp/following{/other_user}","gists_url":"https://api.github.com/users/albertfdp/gists{/gist_id}","starred_url":"https://api.github.com/users/albertfdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertfdp/subscriptions","organizations_url":"https://api.github.com/users/albertfdp/orgs","repos_url":"https://api.github.com/users/albertfdp/repos","events_url":"https://api.github.com/users/albertfdp/events{/privacy}","received_events_url":"https://api.github.com/users/albertfdp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/albertfdp/yarn","description":"📦🐈 Fast, reliable, and secure dependency management.","fork":true,"url":"https://api.github.com/repos/albertfdp/yarn","forks_url":"https://api.github.com/repos/albertfdp/yarn/forks","keys_url":"https://api.github.com/repos/albertfdp/yarn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/albertfdp/yarn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/albertfdp/yarn/teams","hooks_url":"https://api.github.com/repos/albertfdp/yarn/hooks","issue_events_url":"https://api.github.com/repos/albertfdp/yarn/issues/events{/number}","events_url":"https://api.github.com/repos/albertfdp/yarn/events","assignees_url":"https://api.github.com/repos/albertfdp/yarn/assignees{/user}","branches_url":"https://api.github.com/repos/albertfdp/yarn/branches{/branch}","tags_url":"https://api.github.com/repos/albertfdp/yarn/tags","blobs_url":"https://api.github.com/repos/albertfdp/yarn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/albertfdp/yarn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/albertfdp/yarn/git/refs{/sha}","trees_url":"https://api.github.com/repos/albertfdp/yarn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/albertfdp/yarn/statuses/{sha}","languages_url":"https://api.github.com/repos/albertfdp/yarn/languages","stargazers_url":"https://api.github.com/repos/albertfdp/yarn/stargazers","contributors_url":"https://api.github.com/repos/albertfdp/yarn/contributors","subscribers_url":"https://api.github.com/repos/albertfdp/yarn/subscribers","subscription_url":"https://api.github.com/repos/albertfdp/yarn/subscription","commits_url":"https://api.github.com/repos/albertfdp/yarn/commits{/sha}","git_commits_url":"https://api.github.com/repos/albertfdp/yarn/git/commits{/sha}","comments_url":"https://api.github.com/repos/albertfdp/yarn/comments{/number}","issue_comment_url":"https://api.github.com/repos/albertfdp/yarn/issues/comments{/number}","contents_url":"https://api.github.com/repos/albertfdp/yarn/contents/{+path}","compare_url":"https://api.github.com/repos/albertfdp/yarn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/albertfdp/yarn/merges","archive_url":"https://api.github.com/repos/albertfdp/yarn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/albertfdp/yarn/downloads","issues_url":"https://api.github.com/repos/albertfdp/yarn/issues{/number}","pulls_url":"https://api.github.com/repos/albertfdp/yarn/pulls{/number}","milestones_url":"https://api.github.com/repos/albertfdp/yarn/milestones{/number}","notifications_url":"https://api.github.com/repos/albertfdp/yarn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/albertfdp/yarn/labels{/name}","releases_url":"https://api.github.com/repos/albertfdp/yarn/releases{/id}","deployments_url":"https://api.github.com/repos/albertfdp/yarn/deployments","created_at":"2016-12-02T19:34:44Z","updated_at":"2016-12-02T19:34:54Z","pushed_at":"2016-12-02T20:12:02Z","git_url":"git://github.com/albertfdp/yarn.git","ssh_url":"git@github.com:albertfdp/yarn.git","clone_url":"https://github.com/albertfdp/yarn.git","svn_url":"https://github.com/albertfdp/yarn","homepage":"https://yarnpkg.com","size":52856,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"albertfdp:master","ref":"master","sha":"1ea09c2969994648fcb7c4f3eb3e3753d132e440","user":{"login":"albertfdp","id":649667,"avatar_url":"https://avatars.githubusercontent.com/u/649667?v=3","gravatar_id":"","url":"https://api.github.com/users/albertfdp","html_url":"https://github.com/albertfdp","followers_url":"https://api.github.com/users/albertfdp/followers","following_url":"https://api.github.com/users/albertfdp/following{/other_user}","gists_url":"https://api.github.com/users/albertfdp/gists{/gist_id}","starred_url":"https://api.github.com/users/albertfdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertfdp/subscriptions","organizations_url":"https://api.github.com/users/albertfdp/orgs","repos_url":"https://api.github.com/users/albertfdp/repos","events_url":"https://api.github.com/users/albertfdp/events{/privacy}","received_events_url":"https://api.github.com/users/albertfdp/received_events","type":"User","site_admin":false},"repo":{"id":75425075,"name":"yarn","full_name":"albertfdp/yarn","owner":{"login":"albertfdp","id":649667,"avatar_url":"https://avatars.githubusercontent.com/u/649667?v=3","gravatar_id":"","url":"https://api.github.com/users/albertfdp","html_url":"https://github.com/albertfdp","followers_url":"https://api.github.com/users/albertfdp/followers","following_url":"https://api.github.com/users/albertfdp/following{/other_user}","gists_url":"https://api.github.com/users/albertfdp/gists{/gist_id}","starred_url":"https://api.github.com/users/albertfdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertfdp/subscriptions","organizations_url":"https://api.github.com/users/albertfdp/orgs","repos_url":"https://api.github.com/users/albertfdp/repos","events_url":"https://api.github.com/users/albertfdp/events{/privacy}","received_events_url":"https://api.github.com/users/albertfdp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/albertfdp/yarn","description":"📦🐈 Fast, reliable, and secure dependency management.","fork":true,"url":"https://api.github.com/repos/albertfdp/yarn","forks_url":"https://api.github.com/repos/albertfdp/yarn/forks","keys_url":"https://api.github.com/repos/albertfdp/yarn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/albertfdp/yarn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/albertfdp/yarn/teams","hooks_url":"https://api.github.com/repos/albertfdp/yarn/hooks","issue_events_url":"https://api.github.com/repos/albertfdp/yarn/issues/events{/number}","events_url":"https://api.github.com/repos/albertfdp/yarn/events","assignees_url":"https://api.github.com/repos/albertfdp/yarn/assignees{/user}","branches_url":"https://api.github.com/repos/albertfdp/yarn/branches{/branch}","tags_url":"https://api.github.com/repos/albertfdp/yarn/tags","blobs_url":"https://api.github.com/repos/albertfdp/yarn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/albertfdp/yarn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/albertfdp/yarn/git/refs{/sha}","trees_url":"https://api.github.com/repos/albertfdp/yarn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/albertfdp/yarn/statuses/{sha}","languages_url":"https://api.github.com/repos/albertfdp/yarn/languages","stargazers_url":"https://api.github.com/repos/albertfdp/yarn/stargazers","contributors_url":"https://api.github.com/repos/albertfdp/yarn/contributors","subscribers_url":"https://api.github.com/repos/albertfdp/yarn/subscribers","subscription_url":"https://api.github.com/repos/albertfdp/yarn/subscription","commits_url":"https://api.github.com/repos/albertfdp/yarn/commits{/sha}","git_commits_url":"https://api.github.com/repos/albertfdp/yarn/git/commits{/sha}","comments_url":"https://api.github.com/repos/albertfdp/yarn/comments{/number}","issue_comment_url":"https://api.github.com/repos/albertfdp/yarn/issues/comments{/number}","contents_url":"https://api.github.com/repos/albertfdp/yarn/contents/{+path}","compare_url":"https://api.github.com/repos/albertfdp/yarn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/albertfdp/yarn/merges","archive_url":"https://api.github.com/repos/albertfdp/yarn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/albertfdp/yarn/downloads","issues_url":"https://api.github.com/repos/albertfdp/yarn/issues{/number}","pulls_url":"https://api.github.com/repos/albertfdp/yarn/pulls{/number}","milestones_url":"https://api.github.com/repos/albertfdp/yarn/milestones{/number}","notifications_url":"https://api.github.com/repos/albertfdp/yarn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/albertfdp/yarn/labels{/name}","releases_url":"https://api.github.com/repos/albertfdp/yarn/releases{/id}","deployments_url":"https://api.github.com/repos/albertfdp/yarn/deployments","created_at":"2016-12-02T19:34:44Z","updated_at":"2016-12-02T19:34:54Z","pushed_at":"2016-12-02T20:12:02Z","git_url":"git://github.com/albertfdp/yarn.git","ssh_url":"git@github.com:albertfdp/yarn.git","clone_url":"https://github.com/albertfdp/yarn.git","svn_url":"https://github.com/albertfdp/yarn","homepage":"https://yarnpkg.com","size":52856,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/albertfdp/yarn/pulls/1"},"html":{"href":"https://github.com/albertfdp/yarn/pull/1"},"issue":{"href":"https://api.github.com/repos/albertfdp/yarn/issues/1"},"comments":{"href":"https://api.github.com/repos/albertfdp/yarn/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/albertfdp/yarn/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/albertfdp/yarn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/albertfdp/yarn/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/albertfdp/yarn/statuses/7ae0a4902ba22835ae8dfbe73d2b4b760736e14c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":10,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"albertfdp"}}