{"action":"opened","number":976,"pull_request":{"url":"https://api.github.com/repos/facebook/WebDriverAgent/pulls/976","id":207770839,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3NzcwODM5","html_url":"https://github.com/facebook/WebDriverAgent/pull/976","diff_url":"https://github.com/facebook/WebDriverAgent/pull/976.diff","patch_url":"https://github.com/facebook/WebDriverAgent/pull/976.patch","issue_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/976","number":976,"state":"open","locked":false,"title":"Fix port value selection","user":{"login":"mykola-mokhnach","id":7767781,"node_id":"MDQ6VXNlcjc3Njc3ODE=","avatar_url":"https://avatars1.githubusercontent.com/u/7767781?v=4","gravatar_id":"","url":"https://api.github.com/users/mykola-mokhnach","html_url":"https://github.com/mykola-mokhnach","followers_url":"https://api.github.com/users/mykola-mokhnach/followers","following_url":"https://api.github.com/users/mykola-mokhnach/following{/other_user}","gists_url":"https://api.github.com/users/mykola-mokhnach/gists{/gist_id}","starred_url":"https://api.github.com/users/mykola-mokhnach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mykola-mokhnach/subscriptions","organizations_url":"https://api.github.com/users/mykola-mokhnach/orgs","repos_url":"https://api.github.com/users/mykola-mokhnach/repos","events_url":"https://api.github.com/users/mykola-mokhnach/events{/privacy}","received_events_url":"https://api.github.com/users/mykola-mokhnach/received_events","type":"User","site_admin":false},"body":"It turns out, that `NSProcessInfo.processInfo.environment[@\"USE_PORT\"]` returns an empty string instead of nil if `USE_PORT` is not present in the environment which causes zero value to be assigned by default. ","created_at":"2018-08-11T11:28:55Z","updated_at":"2018-08-11T11:28:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/WebDriverAgent/pulls/976/commits","review_comments_url":"https://api.github.com/repos/facebook/WebDriverAgent/pulls/976/comments","review_comment_url":"https://api.github.com/repos/facebook/WebDriverAgent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/976/comments","statuses_url":"https://api.github.com/repos/facebook/WebDriverAgent/statuses/773658851b0bb0434cf6cd8abb0f6ce1928ff6ed","head":{"label":"mykola-mokhnach:port_fix","ref":"port_fix","sha":"773658851b0bb0434cf6cd8abb0f6ce1928ff6ed","user":{"login":"mykola-mokhnach","id":7767781,"node_id":"MDQ6VXNlcjc3Njc3ODE=","avatar_url":"https://avatars1.githubusercontent.com/u/7767781?v=4","gravatar_id":"","url":"https://api.github.com/users/mykola-mokhnach","html_url":"https://github.com/mykola-mokhnach","followers_url":"https://api.github.com/users/mykola-mokhnach/followers","following_url":"https://api.github.com/users/mykola-mokhnach/following{/other_user}","gists_url":"https://api.github.com/users/mykola-mokhnach/gists{/gist_id}","starred_url":"https://api.github.com/users/mykola-mokhnach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mykola-mokhnach/subscriptions","organizations_url":"https://api.github.com/users/mykola-mokhnach/orgs","repos_url":"https://api.github.com/users/mykola-mokhnach/repos","events_url":"https://api.github.com/users/mykola-mokhnach/events{/privacy}","received_events_url":"https://api.github.com/users/mykola-mokhnach/received_events","type":"User","site_admin":false},"repo":{"id":69477973,"node_id":"MDEwOlJlcG9zaXRvcnk2OTQ3Nzk3Mw==","name":"WebDriverAgent","full_name":"mykola-mokhnach/WebDriverAgent","owner":{"login":"mykola-mokhnach","id":7767781,"node_id":"MDQ6VXNlcjc3Njc3ODE=","avatar_url":"https://avatars1.githubusercontent.com/u/7767781?v=4","gravatar_id":"","url":"https://api.github.com/users/mykola-mokhnach","html_url":"https://github.com/mykola-mokhnach","followers_url":"https://api.github.com/users/mykola-mokhnach/followers","following_url":"https://api.github.com/users/mykola-mokhnach/following{/other_user}","gists_url":"https://api.github.com/users/mykola-mokhnach/gists{/gist_id}","starred_url":"https://api.github.com/users/mykola-mokhnach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mykola-mokhnach/subscriptions","organizations_url":"https://api.github.com/users/mykola-mokhnach/orgs","repos_url":"https://api.github.com/users/mykola-mokhnach/repos","events_url":"https://api.github.com/users/mykola-mokhnach/events{/privacy}","received_events_url":"https://api.github.com/users/mykola-mokhnach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mykola-mokhnach/WebDriverAgent","description":"A WebDriver server for iOS that runs inside the Simulator.","fork":true,"url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent","forks_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/forks","keys_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/teams","hooks_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/hooks","issue_events_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/issues/events{/number}","events_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/events","assignees_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/assignees{/user}","branches_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/branches{/branch}","tags_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/tags","blobs_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/git/refs{/sha}","trees_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/statuses/{sha}","languages_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/languages","stargazers_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/stargazers","contributors_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/contributors","subscribers_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/subscribers","subscription_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/subscription","commits_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/commits{/sha}","git_commits_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/git/commits{/sha}","comments_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/comments{/number}","issue_comment_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/issues/comments{/number}","contents_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/contents/{+path}","compare_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/merges","archive_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/downloads","issues_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/issues{/number}","pulls_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/pulls{/number}","milestones_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/milestones{/number}","notifications_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/labels{/name}","releases_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/releases{/id}","deployments_url":"https://api.github.com/repos/mykola-mokhnach/WebDriverAgent/deployments","created_at":"2016-09-28T15:36:31Z","updated_at":"2018-08-11T11:24:34Z","pushed_at":"2018-08-11T11:26:53Z","git_url":"git://github.com/mykola-mokhnach/WebDriverAgent.git","ssh_url":"git@github.com:mykola-mokhnach/WebDriverAgent.git","clone_url":"https://github.com/mykola-mokhnach/WebDriverAgent.git","svn_url":"https://github.com/mykola-mokhnach/WebDriverAgent","homepage":null,"size":15923,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"c4da863b9c8d6d076ba74bf1ff58b47ef56dd2fa","user":{"login":"facebook","id":69631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjMx","avatar_url":"https://avatars3.githubusercontent.com/u/69631?v=4","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":41855272,"node_id":"MDEwOlJlcG9zaXRvcnk0MTg1NTI3Mg==","name":"WebDriverAgent","full_name":"facebook/WebDriverAgent","owner":{"login":"facebook","id":69631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjMx","avatar_url":"https://avatars3.githubusercontent.com/u/69631?v=4","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/WebDriverAgent","description":"A WebDriver server for iOS that runs inside the Simulator.","fork":false,"url":"https://api.github.com/repos/facebook/WebDriverAgent","forks_url":"https://api.github.com/repos/facebook/WebDriverAgent/forks","keys_url":"https://api.github.com/repos/facebook/WebDriverAgent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/WebDriverAgent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/WebDriverAgent/teams","hooks_url":"https://api.github.com/repos/facebook/WebDriverAgent/hooks","issue_events_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/WebDriverAgent/events","assignees_url":"https://api.github.com/repos/facebook/WebDriverAgent/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/WebDriverAgent/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/WebDriverAgent/tags","blobs_url":"https://api.github.com/repos/facebook/WebDriverAgent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/WebDriverAgent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/WebDriverAgent/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/WebDriverAgent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/WebDriverAgent/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/WebDriverAgent/languages","stargazers_url":"https://api.github.com/repos/facebook/WebDriverAgent/stargazers","contributors_url":"https://api.github.com/repos/facebook/WebDriverAgent/contributors","subscribers_url":"https://api.github.com/repos/facebook/WebDriverAgent/subscribers","subscription_url":"https://api.github.com/repos/facebook/WebDriverAgent/subscription","commits_url":"https://api.github.com/repos/facebook/WebDriverAgent/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/WebDriverAgent/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/WebDriverAgent/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/WebDriverAgent/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/WebDriverAgent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/WebDriverAgent/merges","archive_url":"https://api.github.com/repos/facebook/WebDriverAgent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/WebDriverAgent/downloads","issues_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/WebDriverAgent/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/WebDriverAgent/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/WebDriverAgent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/WebDriverAgent/labels{/name}","releases_url":"https://api.github.com/repos/facebook/WebDriverAgent/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/WebDriverAgent/deployments","created_at":"2015-09-03T11:00:00Z","updated_at":"2018-08-11T02:36:41Z","pushed_at":"2018-08-07T11:05:39Z","git_url":"git://github.com/facebook/WebDriverAgent.git","ssh_url":"git@github.com:facebook/WebDriverAgent.git","clone_url":"https://github.com/facebook/WebDriverAgent.git","svn_url":"https://github.com/facebook/WebDriverAgent","homepage":null,"size":15956,"stargazers_count":2919,"watchers_count":2919,"language":"Objective-C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":581,"mirror_url":null,"archived":false,"open_issues_count":91,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":581,"open_issues":91,"watchers":2919,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/WebDriverAgent/pulls/976"},"html":{"href":"https://github.com/facebook/WebDriverAgent/pull/976"},"issue":{"href":"https://api.github.com/repos/facebook/WebDriverAgent/issues/976"},"comments":{"href":"https://api.github.com/repos/facebook/WebDriverAgent/issues/976/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/WebDriverAgent/pulls/976/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/WebDriverAgent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/WebDriverAgent/pulls/976/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/WebDriverAgent/statuses/773658851b0bb0434cf6cd8abb0f6ce1928ff6ed"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":2,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"mykola-mokhnach"}}