{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/react-native/pulls/comments/52059539","id":52059539,"diff_hunk":"@@ -0,0 +1,74 @@\n+/**\n+ * Copyright (c) 2015-present, Facebook, Inc.\n+ * All rights reserved.\n+ *\n+ * This source code is licensed under the BSD-style license found in the\n+ * LICENSE file in the root directory of this source tree. An additional grant\n+ * of patent rights can be found in the PATENTS file in the same directory.\n+ */\n+'use strict';\n+\n+const branch = process.env.TRAVIS_BRANCH;\n+const isPullRequest = process.env.TRAVIS_PULL_REQUEST;\n+const isTravis = process.env.TRAVIS;\n+const remoteBranch = 'git://github.com/facebook/react-native.git';\n+require('shelljs/global');\n+\n+if (!which('git')) {","path":"website/publish-gh-pages.js","position":17,"original_position":17,"commit_id":"8cd854eb9c938327656756541f3f08a9fbd243ca","original_commit_id":"8cd854eb9c938327656756541f3f08a9fbd243ca","user":{"login":"vjeux","id":197597,"avatar_url":"https://avatars.githubusercontent.com/u/197597?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"body":"This is so cool","created_at":"2016-02-05T19:13:28Z","updated_at":"2016-02-05T19:13:28Z","html_url":"https://github.com/facebook/react-native/pull/5760#discussion_r52059539","pull_request_url":"https://api.github.com/repos/facebook/react-native/pulls/5760","_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments/52059539"},"html":{"href":"https://github.com/facebook/react-native/pull/5760#discussion_r52059539"},"pull_request":{"href":"https://api.github.com/repos/facebook/react-native/pulls/5760"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/5760","id":58309714,"html_url":"https://github.com/facebook/react-native/pull/5760","diff_url":"https://github.com/facebook/react-native/pull/5760.diff","patch_url":"https://github.com/facebook/react-native/pull/5760.patch","issue_url":"https://api.github.com/repos/facebook/react-native/issues/5760","number":5760,"state":"open","locked":false,"title":"CI now builds docs website and deploys it to /%version% path","user":{"login":"bestander","id":2121048,"avatar_url":"https://avatars.githubusercontent.com/u/2121048?v=3","gravatar_id":"","url":"https://api.github.com/users/bestander","html_url":"https://github.com/bestander","followers_url":"https://api.github.com/users/bestander/followers","following_url":"https://api.github.com/users/bestander/following{/other_user}","gists_url":"https://api.github.com/users/bestander/gists{/gist_id}","starred_url":"https://api.github.com/users/bestander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestander/subscriptions","organizations_url":"https://api.github.com/users/bestander/orgs","repos_url":"https://api.github.com/users/bestander/repos","events_url":"https://api.github.com/users/bestander/events{/privacy}","received_events_url":"https://api.github.com/users/bestander/received_events","type":"User","site_admin":false},"body":"fixes #4234 \r\n\r\nThe idea: don't overwrite root folder with every new release of branch `xx-stable`.\r\n\r\nWhen `xx-stable` is being pushed to this repo the script will create folder `xx` in `facebook.github.io/react-native/` and put the whole website there.\r\nWhen `master` is being pushed to this repo the script will create/rewrite folder `next` in `facebook.github.io/react-native/` and put the whole website there.\r\n\r\nFor now this should not affect the `facebook.github.io/react-native/`.\r\nIn the following up pull request we can cleanup the root of `facebook.github.io/react-native/` to have an automatic redirect to the lastest stable release.\r\nAlso we will think if and how we want a transient navigation between releases.","created_at":"2016-02-04T16:17:33Z","updated_at":"2016-02-05T19:13:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e5092272398328c7de8b1b621248d96b26b47ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/react-native/pulls/5760/commits","review_comments_url":"https://api.github.com/repos/facebook/react-native/pulls/5760/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/5760/comments","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/8cd854eb9c938327656756541f3f08a9fbd243ca","head":{"label":"bestander:versioned-website","ref":"versioned-website","sha":"8cd854eb9c938327656756541f3f08a9fbd243ca","user":{"login":"bestander","id":2121048,"avatar_url":"https://avatars.githubusercontent.com/u/2121048?v=3","gravatar_id":"","url":"https://api.github.com/users/bestander","html_url":"https://github.com/bestander","followers_url":"https://api.github.com/users/bestander/followers","following_url":"https://api.github.com/users/bestander/following{/other_user}","gists_url":"https://api.github.com/users/bestander/gists{/gist_id}","starred_url":"https://api.github.com/users/bestander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestander/subscriptions","organizations_url":"https://api.github.com/users/bestander/orgs","repos_url":"https://api.github.com/users/bestander/repos","events_url":"https://api.github.com/users/bestander/events{/privacy}","received_events_url":"https://api.github.com/users/bestander/received_events","type":"User","site_admin":false},"repo":{"id":46353296,"name":"react-native","full_name":"bestander/react-native","owner":{"login":"bestander","id":2121048,"avatar_url":"https://avatars.githubusercontent.com/u/2121048?v=3","gravatar_id":"","url":"https://api.github.com/users/bestander","html_url":"https://github.com/bestander","followers_url":"https://api.github.com/users/bestander/followers","following_url":"https://api.github.com/users/bestander/following{/other_user}","gists_url":"https://api.github.com/users/bestander/gists{/gist_id}","starred_url":"https://api.github.com/users/bestander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestander/subscriptions","organizations_url":"https://api.github.com/users/bestander/orgs","repos_url":"https://api.github.com/users/bestander/repos","events_url":"https://api.github.com/users/bestander/events{/privacy}","received_events_url":"https://api.github.com/users/bestander/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bestander/react-native","description":"A framework for building native apps with React.","fork":true,"url":"https://api.github.com/repos/bestander/react-native","forks_url":"https://api.github.com/repos/bestander/react-native/forks","keys_url":"https://api.github.com/repos/bestander/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bestander/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bestander/react-native/teams","hooks_url":"https://api.github.com/repos/bestander/react-native/hooks","issue_events_url":"https://api.github.com/repos/bestander/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/bestander/react-native/events","assignees_url":"https://api.github.com/repos/bestander/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/bestander/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/bestander/react-native/tags","blobs_url":"https://api.github.com/repos/bestander/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bestander/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bestander/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/bestander/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bestander/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/bestander/react-native/languages","stargazers_url":"https://api.github.com/repos/bestander/react-native/stargazers","contributors_url":"https://api.github.com/repos/bestander/react-native/contributors","subscribers_url":"https://api.github.com/repos/bestander/react-native/subscribers","subscription_url":"https://api.github.com/repos/bestander/react-native/subscription","commits_url":"https://api.github.com/repos/bestander/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/bestander/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/bestander/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/bestander/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/bestander/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/bestander/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bestander/react-native/merges","archive_url":"https://api.github.com/repos/bestander/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bestander/react-native/downloads","issues_url":"https://api.github.com/repos/bestander/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/bestander/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/bestander/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/bestander/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bestander/react-native/labels{/name}","releases_url":"https://api.github.com/repos/bestander/react-native/releases{/id}","deployments_url":"https://api.github.com/repos/bestander/react-native/deployments","created_at":"2015-11-17T14:45:43Z","updated_at":"2016-01-15T10:07:19Z","pushed_at":"2016-02-05T19:04:41Z","git_url":"git://github.com/bestander/react-native.git","ssh_url":"git@github.com:bestander/react-native.git","clone_url":"https://github.com/bestander/react-native.git","svn_url":"https://github.com/bestander/react-native","homepage":"http://facebook.github.io/react-native/","size":38122,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"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":"aea67c88901be99f22db72148498ae09bb347ec9","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}","deployments_url":"https://api.github.com/repos/facebook/react-native/deployments","created_at":"2015-01-09T18:10:16Z","updated_at":"2016-02-05T18:50:08Z","pushed_at":"2016-02-05T19:09:35Z","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":75108,"stargazers_count":26855,"watchers_count":26855,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4834,"mirror_url":null,"open_issues_count":1073,"forks":4834,"open_issues":1073,"watchers":26855,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/5760"},"html":{"href":"https://github.com/facebook/react-native/pull/5760"},"issue":{"href":"https://api.github.com/repos/facebook/react-native/issues/5760"},"comments":{"href":"https://api.github.com/repos/facebook/react-native/issues/5760/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react-native/pulls/5760/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/5760/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react-native/statuses/8cd854eb9c938327656756541f3f08a9fbd243ca"}}}}