{"action":"closed","number":1218,"pull_request":{"url":"https://api.github.com/repos/fabric/fabric/pulls/1218","id":23848709,"html_url":"https://github.com/fabric/fabric/pull/1218","diff_url":"https://github.com/fabric/fabric/pull/1218.diff","patch_url":"https://github.com/fabric/fabric/pull/1218.patch","issue_url":"https://api.github.com/repos/fabric/fabric/issues/1218","number":1218,"state":"closed","locked":false,"title":"Add local_tunnel context manager to forward local port to the remote server ","user":{"login":"yacn","id":4542094,"avatar_url":"https://avatars0.githubusercontent.com/u/4542094?v=4","gravatar_id":"","url":"https://api.github.com/users/yacn","html_url":"https://github.com/yacn","followers_url":"https://api.github.com/users/yacn/followers","following_url":"https://api.github.com/users/yacn/following{/other_user}","gists_url":"https://api.github.com/users/yacn/gists{/gist_id}","starred_url":"https://api.github.com/users/yacn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yacn/subscriptions","organizations_url":"https://api.github.com/users/yacn/orgs","repos_url":"https://api.github.com/users/yacn/repos","events_url":"https://api.github.com/users/yacn/events{/privacy}","received_events_url":"https://api.github.com/users/yacn/received_events","type":"User","site_admin":false},"body":"This is pull request #939 with a fix added for the exception being raised when the context manager exits\n\n```\nTraceback (most recent call last):\n  File \"/Users/yacn/.virtualenvs/fabric/lib/python2.7/site-packages/fabric/main.py\", line 743, in main\n    *args, **kwargs\n  File \"/Users/yacn/.virtualenvs/fabric/lib/python2.7/site-packages/fabric/tasks.py\", line 384, in execute\n    multiprocessing\n  File \"/Users/yacn/.virtualenvs/fabric/lib/python2.7/site-packages/fabric/tasks.py\", line 274, in _execute\n    return task.run(*args, **kwargs)\n  File \"/Users/yacn/.virtualenvs/fabric/lib/python2.7/site-packages/fabric/tasks.py\", line 174, in run\n    return self.wrapped(*args, **kwargs)\n  File \"/Users/yacn/git/tst/fabric/fabfile.py\", line 59, in tst\n    puts(cur.fetchall())\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py\", line 24, in __exit__\n    self.gen.next()\n  File \"/Users/yacn/git/fabric/tst/util/ssh.py\", line 143, in local_tunnel\n    listening_thread.raise_if_needed()\n  File \"/Users/yacn/.virtualenvs/fabric/lib/python2.7/site-packages/fabric/thread_handling.py\", line 12, in wrapper\n    callable(*args, **kwargs)\n  File \"/Users/yacn/git/fabric/tst/util/ssh.py\", line 90, in listener_thread_main\n    selsockets = select.select([sock], [], [], 1)\nselect.error: (9, 'Bad file descriptor')\n```\n\nThe fix was to add another `except` statement for `select.error` \n","created_at":"2014-11-04T17:37:18Z","updated_at":"2018-05-10T06:53:35Z","closed_at":"2018-05-10T06:53:35Z","merged_at":null,"merge_commit_sha":"9babd29e3cdbac56b078afe2cafbb279b84ad86c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fabric/fabric/pulls/1218/commits","review_comments_url":"https://api.github.com/repos/fabric/fabric/pulls/1218/comments","review_comment_url":"https://api.github.com/repos/fabric/fabric/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fabric/fabric/issues/1218/comments","statuses_url":"https://api.github.com/repos/fabric/fabric/statuses/2c0729689c7be02784ce7284fa31775a45d7d3e0","head":{"label":"yacn:feature/local_tunnel","ref":"feature/local_tunnel","sha":"2c0729689c7be02784ce7284fa31775a45d7d3e0","user":{"login":"yacn","id":4542094,"avatar_url":"https://avatars0.githubusercontent.com/u/4542094?v=4","gravatar_id":"","url":"https://api.github.com/users/yacn","html_url":"https://github.com/yacn","followers_url":"https://api.github.com/users/yacn/followers","following_url":"https://api.github.com/users/yacn/following{/other_user}","gists_url":"https://api.github.com/users/yacn/gists{/gist_id}","starred_url":"https://api.github.com/users/yacn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yacn/subscriptions","organizations_url":"https://api.github.com/users/yacn/orgs","repos_url":"https://api.github.com/users/yacn/repos","events_url":"https://api.github.com/users/yacn/events{/privacy}","received_events_url":"https://api.github.com/users/yacn/received_events","type":"User","site_admin":false},"repo":{"id":26179298,"name":"fabric","full_name":"yacn/fabric","owner":{"login":"yacn","id":4542094,"avatar_url":"https://avatars0.githubusercontent.com/u/4542094?v=4","gravatar_id":"","url":"https://api.github.com/users/yacn","html_url":"https://github.com/yacn","followers_url":"https://api.github.com/users/yacn/followers","following_url":"https://api.github.com/users/yacn/following{/other_user}","gists_url":"https://api.github.com/users/yacn/gists{/gist_id}","starred_url":"https://api.github.com/users/yacn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yacn/subscriptions","organizations_url":"https://api.github.com/users/yacn/orgs","repos_url":"https://api.github.com/users/yacn/repos","events_url":"https://api.github.com/users/yacn/events{/privacy}","received_events_url":"https://api.github.com/users/yacn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yacn/fabric","description":"Simple, Pythonic remote execution and deployment.","fork":true,"url":"https://api.github.com/repos/yacn/fabric","forks_url":"https://api.github.com/repos/yacn/fabric/forks","keys_url":"https://api.github.com/repos/yacn/fabric/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yacn/fabric/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yacn/fabric/teams","hooks_url":"https://api.github.com/repos/yacn/fabric/hooks","issue_events_url":"https://api.github.com/repos/yacn/fabric/issues/events{/number}","events_url":"https://api.github.com/repos/yacn/fabric/events","assignees_url":"https://api.github.com/repos/yacn/fabric/assignees{/user}","branches_url":"https://api.github.com/repos/yacn/fabric/branches{/branch}","tags_url":"https://api.github.com/repos/yacn/fabric/tags","blobs_url":"https://api.github.com/repos/yacn/fabric/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yacn/fabric/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yacn/fabric/git/refs{/sha}","trees_url":"https://api.github.com/repos/yacn/fabric/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yacn/fabric/statuses/{sha}","languages_url":"https://api.github.com/repos/yacn/fabric/languages","stargazers_url":"https://api.github.com/repos/yacn/fabric/stargazers","contributors_url":"https://api.github.com/repos/yacn/fabric/contributors","subscribers_url":"https://api.github.com/repos/yacn/fabric/subscribers","subscription_url":"https://api.github.com/repos/yacn/fabric/subscription","commits_url":"https://api.github.com/repos/yacn/fabric/commits{/sha}","git_commits_url":"https://api.github.com/repos/yacn/fabric/git/commits{/sha}","comments_url":"https://api.github.com/repos/yacn/fabric/comments{/number}","issue_comment_url":"https://api.github.com/repos/yacn/fabric/issues/comments{/number}","contents_url":"https://api.github.com/repos/yacn/fabric/contents/{+path}","compare_url":"https://api.github.com/repos/yacn/fabric/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yacn/fabric/merges","archive_url":"https://api.github.com/repos/yacn/fabric/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yacn/fabric/downloads","issues_url":"https://api.github.com/repos/yacn/fabric/issues{/number}","pulls_url":"https://api.github.com/repos/yacn/fabric/pulls{/number}","milestones_url":"https://api.github.com/repos/yacn/fabric/milestones{/number}","notifications_url":"https://api.github.com/repos/yacn/fabric/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yacn/fabric/labels{/name}","releases_url":"https://api.github.com/repos/yacn/fabric/releases{/id}","deployments_url":"https://api.github.com/repos/yacn/fabric/deployments","created_at":"2014-11-04T17:07:51Z","updated_at":"2014-11-04T14:46:25Z","pushed_at":"2015-12-08T14:55:40Z","git_url":"git://github.com/yacn/fabric.git","ssh_url":"git@github.com:yacn/fabric.git","clone_url":"https://github.com/yacn/fabric.git","svn_url":"https://github.com/yacn/fabric","homepage":"http://fabfile.org","size":20978,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fabric:master","ref":"master","sha":"66868afec58d1cd13a1bda4b17e62f7fd5b019c2","user":{"login":"fabric","id":400481,"avatar_url":"https://avatars3.githubusercontent.com/u/400481?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric","html_url":"https://github.com/fabric","followers_url":"https://api.github.com/users/fabric/followers","following_url":"https://api.github.com/users/fabric/following{/other_user}","gists_url":"https://api.github.com/users/fabric/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric/subscriptions","organizations_url":"https://api.github.com/users/fabric/orgs","repos_url":"https://api.github.com/users/fabric/repos","events_url":"https://api.github.com/users/fabric/events{/privacy}","received_events_url":"https://api.github.com/users/fabric/received_events","type":"Organization","site_admin":false},"repo":{"id":189840,"name":"fabric","full_name":"fabric/fabric","owner":{"login":"fabric","id":400481,"avatar_url":"https://avatars3.githubusercontent.com/u/400481?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric","html_url":"https://github.com/fabric","followers_url":"https://api.github.com/users/fabric/followers","following_url":"https://api.github.com/users/fabric/following{/other_user}","gists_url":"https://api.github.com/users/fabric/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric/subscriptions","organizations_url":"https://api.github.com/users/fabric/orgs","repos_url":"https://api.github.com/users/fabric/repos","events_url":"https://api.github.com/users/fabric/events{/privacy}","received_events_url":"https://api.github.com/users/fabric/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fabric/fabric","description":"Simple, Pythonic remote execution and deployment.","fork":false,"url":"https://api.github.com/repos/fabric/fabric","forks_url":"https://api.github.com/repos/fabric/fabric/forks","keys_url":"https://api.github.com/repos/fabric/fabric/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabric/fabric/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabric/fabric/teams","hooks_url":"https://api.github.com/repos/fabric/fabric/hooks","issue_events_url":"https://api.github.com/repos/fabric/fabric/issues/events{/number}","events_url":"https://api.github.com/repos/fabric/fabric/events","assignees_url":"https://api.github.com/repos/fabric/fabric/assignees{/user}","branches_url":"https://api.github.com/repos/fabric/fabric/branches{/branch}","tags_url":"https://api.github.com/repos/fabric/fabric/tags","blobs_url":"https://api.github.com/repos/fabric/fabric/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabric/fabric/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabric/fabric/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabric/fabric/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabric/fabric/statuses/{sha}","languages_url":"https://api.github.com/repos/fabric/fabric/languages","stargazers_url":"https://api.github.com/repos/fabric/fabric/stargazers","contributors_url":"https://api.github.com/repos/fabric/fabric/contributors","subscribers_url":"https://api.github.com/repos/fabric/fabric/subscribers","subscription_url":"https://api.github.com/repos/fabric/fabric/subscription","commits_url":"https://api.github.com/repos/fabric/fabric/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabric/fabric/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabric/fabric/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabric/fabric/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabric/fabric/contents/{+path}","compare_url":"https://api.github.com/repos/fabric/fabric/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabric/fabric/merges","archive_url":"https://api.github.com/repos/fabric/fabric/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabric/fabric/downloads","issues_url":"https://api.github.com/repos/fabric/fabric/issues{/number}","pulls_url":"https://api.github.com/repos/fabric/fabric/pulls{/number}","milestones_url":"https://api.github.com/repos/fabric/fabric/milestones{/number}","notifications_url":"https://api.github.com/repos/fabric/fabric/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabric/fabric/labels{/name}","releases_url":"https://api.github.com/repos/fabric/fabric/releases{/id}","deployments_url":"https://api.github.com/repos/fabric/fabric/deployments","created_at":"2009-05-01T01:14:24Z","updated_at":"2018-05-10T06:40:34Z","pushed_at":"2018-05-10T06:53:31Z","git_url":"git://github.com/fabric/fabric.git","ssh_url":"git@github.com:fabric/fabric.git","clone_url":"https://github.com/fabric/fabric.git","svn_url":"https://github.com/fabric/fabric","homepage":"http://fabfile.org","size":18461,"stargazers_count":9925,"watchers_count":9925,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1602,"mirror_url":null,"archived":false,"open_issues_count":303,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause"},"forks":1602,"open_issues":303,"watchers":9925,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fabric/fabric/pulls/1218"},"html":{"href":"https://github.com/fabric/fabric/pull/1218"},"issue":{"href":"https://api.github.com/repos/fabric/fabric/issues/1218"},"comments":{"href":"https://api.github.com/repos/fabric/fabric/issues/1218/comments"},"review_comments":{"href":"https://api.github.com/repos/fabric/fabric/pulls/1218/comments"},"review_comment":{"href":"https://api.github.com/repos/fabric/fabric/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fabric/fabric/pulls/1218/commits"},"statuses":{"href":"https://api.github.com/repos/fabric/fabric/statuses/2c0729689c7be02784ce7284fa31775a45d7d3e0"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":1,"maintainer_can_modify":false,"commits":3369,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"bitprophet"}}