{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/react-native/pulls/comments/27310067","id":27310067,"diff_hunk":"@@ -150,6 +150,20 @@ function getDevToolsLauncher(options) {\n   };\n }\n \n+// A status page so the React/project.pbxproj build script\n+// can verify that packager is running on 8081 and not \n+// another program / service.\n+function statusPageMiddleware(req, res, next){","path":"packager/packager.js","position":7,"original_position":7,"commit_id":"89fc0aa064760382d373966da4f388beba70a9d7","original_commit_id":"89fc0aa064760382d373966da4f388beba70a9d7","user":{"login":"amasad","id":587518,"avatar_url":"https://avatars.githubusercontent.com/u/587518?v=3","gravatar_id":"","url":"https://api.github.com/users/amasad","html_url":"https://github.com/amasad","followers_url":"https://api.github.com/users/amasad/followers","following_url":"https://api.github.com/users/amasad/following{/other_user}","gists_url":"https://api.github.com/users/amasad/gists{/gist_id}","starred_url":"https://api.github.com/users/amasad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amasad/subscriptions","organizations_url":"https://api.github.com/users/amasad/orgs","repos_url":"https://api.github.com/users/amasad/repos","events_url":"https://api.github.com/users/amasad/events{/privacy}","received_events_url":"https://api.github.com/users/amasad/received_events","type":"User","site_admin":false},"body":"nit: space between `)` and `{`","created_at":"2015-03-27T16:43:14Z","updated_at":"2015-03-27T16:43:14Z","html_url":"https://github.com/facebook/react-native/pull/308#discussion_r27310067","pull_request_url":"https://api.github.com/repos/facebook/react-native/pulls/308","_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments/27310067"},"html":{"href":"https://github.com/facebook/react-native/pull/308#discussion_r27310067"},"pull_request":{"href":"https://api.github.com/repos/facebook/react-native/pulls/308"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/308","id":32082218,"html_url":"https://github.com/facebook/react-native/pull/308","diff_url":"https://github.com/facebook/react-native/pull/308.diff","patch_url":"https://github.com/facebook/react-native/pull/308.patch","issue_url":"https://api.github.com/repos/facebook/react-native/issues/308","number":308,"state":"open","locked":false,"title":"Packager status page & build validating against it.","user":{"login":"JustinCarmony","id":602176,"avatar_url":"https://avatars.githubusercontent.com/u/602176?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinCarmony","html_url":"https://github.com/JustinCarmony","followers_url":"https://api.github.com/users/JustinCarmony/followers","following_url":"https://api.github.com/users/JustinCarmony/following{/other_user}","gists_url":"https://api.github.com/users/JustinCarmony/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinCarmony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinCarmony/subscriptions","organizations_url":"https://api.github.com/users/JustinCarmony/orgs","repos_url":"https://api.github.com/users/JustinCarmony/repos","events_url":"https://api.github.com/users/JustinCarmony/events{/privacy}","received_events_url":"https://api.github.com/users/JustinCarmony/received_events","type":"User","site_admin":false},"body":"Creating a packager status page so React can validate a proper packager instance is running on 8081.\r\n\r\nSee #257 for details on this bug.\r\n\r\nThe biggest thing in this PR is I have it perform an exit 2 in the build script if the check fails. This will cause the build to fail, they can click on the error and see a nice message. Not sure if there is a way to throw a warning instead.\r\n\r\nAlso, I broke the bash script into several lines, in the Xcode editor it looks fine but in the source code it looks less than ideal. We might want to break that out into it's own bash script that is called. Let me know if you want to do that.","created_at":"2015-03-27T04:13:51Z","updated_at":"2015-03-27T16:43:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"283605aba661b67413b5d5938493f87dc9c782ec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/react-native/pulls/308/commits","review_comments_url":"https://api.github.com/repos/facebook/react-native/pulls/308/comments","review_comment_url":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/308/comments","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/89fc0aa064760382d373966da4f388beba70a9d7","head":{"label":"JustinCarmony:packager-status","ref":"packager-status","sha":"89fc0aa064760382d373966da4f388beba70a9d7","user":{"login":"JustinCarmony","id":602176,"avatar_url":"https://avatars.githubusercontent.com/u/602176?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinCarmony","html_url":"https://github.com/JustinCarmony","followers_url":"https://api.github.com/users/JustinCarmony/followers","following_url":"https://api.github.com/users/JustinCarmony/following{/other_user}","gists_url":"https://api.github.com/users/JustinCarmony/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinCarmony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinCarmony/subscriptions","organizations_url":"https://api.github.com/users/JustinCarmony/orgs","repos_url":"https://api.github.com/users/JustinCarmony/repos","events_url":"https://api.github.com/users/JustinCarmony/events{/privacy}","received_events_url":"https://api.github.com/users/JustinCarmony/received_events","type":"User","site_admin":false},"repo":{"id":32960734,"name":"react-native","full_name":"JustinCarmony/react-native","owner":{"login":"JustinCarmony","id":602176,"avatar_url":"https://avatars.githubusercontent.com/u/602176?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinCarmony","html_url":"https://github.com/JustinCarmony","followers_url":"https://api.github.com/users/JustinCarmony/followers","following_url":"https://api.github.com/users/JustinCarmony/following{/other_user}","gists_url":"https://api.github.com/users/JustinCarmony/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinCarmony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinCarmony/subscriptions","organizations_url":"https://api.github.com/users/JustinCarmony/orgs","repos_url":"https://api.github.com/users/JustinCarmony/repos","events_url":"https://api.github.com/users/JustinCarmony/events{/privacy}","received_events_url":"https://api.github.com/users/JustinCarmony/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JustinCarmony/react-native","description":"A framework for building native apps with React.","fork":true,"url":"https://api.github.com/repos/JustinCarmony/react-native","forks_url":"https://api.github.com/repos/JustinCarmony/react-native/forks","keys_url":"https://api.github.com/repos/JustinCarmony/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JustinCarmony/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JustinCarmony/react-native/teams","hooks_url":"https://api.github.com/repos/JustinCarmony/react-native/hooks","issue_events_url":"https://api.github.com/repos/JustinCarmony/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/JustinCarmony/react-native/events","assignees_url":"https://api.github.com/repos/JustinCarmony/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/JustinCarmony/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/JustinCarmony/react-native/tags","blobs_url":"https://api.github.com/repos/JustinCarmony/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JustinCarmony/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JustinCarmony/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/JustinCarmony/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JustinCarmony/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/JustinCarmony/react-native/languages","stargazers_url":"https://api.github.com/repos/JustinCarmony/react-native/stargazers","contributors_url":"https://api.github.com/repos/JustinCarmony/react-native/contributors","subscribers_url":"https://api.github.com/repos/JustinCarmony/react-native/subscribers","subscription_url":"https://api.github.com/repos/JustinCarmony/react-native/subscription","commits_url":"https://api.github.com/repos/JustinCarmony/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/JustinCarmony/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/JustinCarmony/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/JustinCarmony/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/JustinCarmony/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/JustinCarmony/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JustinCarmony/react-native/merges","archive_url":"https://api.github.com/repos/JustinCarmony/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JustinCarmony/react-native/downloads","issues_url":"https://api.github.com/repos/JustinCarmony/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/JustinCarmony/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/JustinCarmony/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/JustinCarmony/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JustinCarmony/react-native/labels{/name}","releases_url":"https://api.github.com/repos/JustinCarmony/react-native/releases{/id}","created_at":"2015-03-27T01:10:30Z","updated_at":"2015-03-27T01:10:31Z","pushed_at":"2015-03-27T04:08:26Z","git_url":"git://github.com/JustinCarmony/react-native.git","ssh_url":"git@github.com:JustinCarmony/react-native.git","clone_url":"https://github.com/JustinCarmony/react-native.git","svn_url":"https://github.com/JustinCarmony/react-native","homepage":"http://facebook.github.io/react-native/","size":6189,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"9c2dbbf99744945f32ca7c3fdbfaba044fdd4d1d","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","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":29028775,"name":"react-native","full_name":"facebook/react-native","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","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/react-native","description":"A framework for building native apps with React.","fork":false,"url":"https://api.github.com/repos/facebook/react-native","forks_url":"https://api.github.com/repos/facebook/react-native/forks","keys_url":"https://api.github.com/repos/facebook/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/react-native/teams","hooks_url":"https://api.github.com/repos/facebook/react-native/hooks","issue_events_url":"https://api.github.com/repos/facebook/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/react-native/events","assignees_url":"https://api.github.com/repos/facebook/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/react-native/tags","blobs_url":"https://api.github.com/repos/facebook/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/react-native/languages","stargazers_url":"https://api.github.com/repos/facebook/react-native/stargazers","contributors_url":"https://api.github.com/repos/facebook/react-native/contributors","subscribers_url":"https://api.github.com/repos/facebook/react-native/subscribers","subscription_url":"https://api.github.com/repos/facebook/react-native/subscription","commits_url":"https://api.github.com/repos/facebook/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/react-native/merges","archive_url":"https://api.github.com/repos/facebook/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/react-native/downloads","issues_url":"https://api.github.com/repos/facebook/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/react-native/labels{/name}","releases_url":"https://api.github.com/repos/facebook/react-native/releases{/id}","created_at":"2015-01-09T18:10:16Z","updated_at":"2015-03-27T16:41:44Z","pushed_at":"2015-03-27T16:00:13Z","git_url":"git://github.com/facebook/react-native.git","ssh_url":"git@github.com:facebook/react-native.git","clone_url":"https://github.com/facebook/react-native.git","svn_url":"https://github.com/facebook/react-native","homepage":"http://facebook.github.io/react-native/","size":17342,"stargazers_count":7211,"watchers_count":7211,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":496,"mirror_url":null,"open_issues_count":160,"forks":496,"open_issues":160,"watchers":7211,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/308"},"html":{"href":"https://github.com/facebook/react-native/pull/308"},"issue":{"href":"https://api.github.com/repos/facebook/react-native/issues/308"},"comments":{"href":"https://api.github.com/repos/facebook/react-native/issues/308/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react-native/pulls/308/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/react-native/pulls/308/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react-native/statuses/89fc0aa064760382d373966da4f388beba70a9d7"}}}}