GitHub PullRequestEvent at 2014-12-10 21:22:54
Repository: api-docs
Actor: philwhln
Payload: {"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/cloudfoundry/api-docs/pulls/1","id":25856276,"html_url":"https://github.com/cloudfoundry/api-docs/pull/1","diff_url":"https://github.com/cloudfoundry/api-docs/pull/1.diff","patch_url":"https://github.com/cloudfoundry/api-docs/pull/1.patch","issue_url":"https://api.github.com/repos/cloudfoundry/api-docs/issues/1","number":1,"state":"open","locked":false,"title":"Update app to provide linkable docs across any cf-release version + new version discovery","user":{"login":"philwhln","id":93411,"avatar_url":"https://avatars.githubusercontent.com/u/93411?v=3","gravatar_id":"","url":"https://api.github.com/users/philwhln","html_url":"https://github.com/philwhln","followers_url":"https://api.github.com/users/philwhln/followers","following_url":"https://api.github.com/users/philwhln/following{/other_user}","gists_url":"https://api.github.com/users/philwhln/gists{/gist_id}","starred_url":"https://api.github.com/users/philwhln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwhln/subscriptions","organizations_url":"https://api.github.com/users/philwhln/orgs","repos_url":"https://api.github.com/users/philwhln/repos","events_url":"https://api.github.com/users/philwhln/events{/privacy}","received_events_url":"https://api.github.com/users/philwhln/received_events","type":"User","site_admin":false},"body":"\"/\" now redirects to the latest known cf-release version, eg. \"/193/\".\r\n\r\nProxies API docs from relevant API bucket. Keeps mapping of cf-release version => s3 bucket name (travis build id) in memory with known ones hard-coded. Discovers new or unknown version mappings.\r\n\r\nAdds links to the top of the page. eg. [192](/192/) **193** [194](/194/) which will link to the same page on different version.\r\n\r\nRewrites local docs URLs in HTML to be prefix with current version. eg. /app_usage_events/list_all_app_usage_events.html => /193/app_usage_events/list_all_app_usage_events.html\r\n\r\nTODO: Move cache to shared cache (Redis?) and move new cf-release version discovery to offline process which updates the cache in the background.\r\n\r\nNOTE: Currently 194 (the latest cf-release at time of writing) is commented out to demonstrate discovery.","created_at":"2014-12-10T21:22:52Z","updated_at":"2014-12-10T21:22:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a95f9aae50bb62b9b9c0b1e4c0bda69a01cc9cbc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudfoundry/api-docs/pulls/1/commits","review_comments_url":"https://api.github.com/repos/cloudfoundry/api-docs/pulls/1/comments","review_comment_url":"https://api.github.com/repos/cloudfoundry/api-docs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cloudfoundry/api-docs/issues/1/comments","statuses_url":"https://api.github.com/repos/cloudfoundry/api-docs/statuses/0c98c5bca9c5f8e4b0e1ceeb468c9556748f9106","head":{"label":"ActiveState:master","ref":"master","sha":"0c98c5bca9c5f8e4b0e1ceeb468c9556748f9106","user":{"login":"ActiveState","id":319781,"avatar_url":"https://avatars.githubusercontent.com/u/319781?v=3","gravatar_id":"","url":"https://api.github.com/users/ActiveState","html_url":"https://github.com/ActiveState","followers_url":"https://api.github.com/users/ActiveState/followers","following_url":"https://api.github.com/users/ActiveState/following{/other_user}","gists_url":"https://api.github.com/users/ActiveState/gists{/gist_id}","starred_url":"https://api.github.com/users/ActiveState/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ActiveState/subscriptions","organizations_url":"https://api.github.com/users/ActiveState/orgs","repos_url":"https://api.github.com/users/ActiveState/repos","events_url":"https://api.github.com/users/ActiveState/events{/privacy}","received_events_url":"https://api.github.com/users/ActiveState/received_events","type":"Organization","site_admin":false},"repo":{"id":27795666,"name":"api-docs","full_name":"ActiveState/api-docs","owner":{"login":"ActiveState","id":319781,"avatar_url":"https://avatars.githubusercontent.com/u/319781?v=3","gravatar_id":"","url":"https://api.github.com/users/ActiveState","html_url":"https://github.com/ActiveState","followers_url":"https://api.github.com/users/ActiveState/followers","following_url":"https://api.github.com/users/ActiveState/following{/other_user}","gists_url":"https://api.github.com/users/ActiveState/gists{/gist_id}","starred_url":"https://api.github.com/users/ActiveState/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ActiveState/subscriptions","organizations_url":"https://api.github.com/users/ActiveState/orgs","repos_url":"https://api.github.com/users/ActiveState/repos","events_url":"https://api.github.com/users/ActiveState/events{/privacy}","received_events_url":"https://api.github.com/users/ActiveState/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ActiveState/api-docs","description":"Cloud Controller API Docs","fork":true,"url":"https://api.github.com/repos/ActiveState/api-docs","forks_url":"https://api.github.com/repos/ActiveState/api-docs/forks","keys_url":"https://api.github.com/repos/ActiveState/api-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ActiveState/api-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ActiveState/api-docs/teams","hooks_url":"https://api.github.com/repos/ActiveState/api-docs/hooks","issue_events_url":"https://api.github.com/repos/ActiveState/api-docs/issues/events{/number}","events_url":"https://api.github.com/repos/ActiveState/api-docs/events","assignees_url":"https://api.github.com/repos/ActiveState/api-docs/assignees{/user}","branches_url":"https://api.github.com/repos/ActiveState/api-docs/branches{/branch}","tags_url":"https://api.github.com/repos/ActiveState/api-docs/tags","blobs_url":"https://api.github.com/repos/ActiveState/api-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ActiveState/api-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ActiveState/api-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ActiveState/api-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ActiveState/api-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/ActiveState/api-docs/languages","stargazers_url":"https://api.github.com/repos/ActiveState/api-docs/stargazers","contributors_url":"https://api.github.com/repos/ActiveState/api-docs/contributors","subscribers_url":"https://api.github.com/repos/ActiveState/api-docs/subscribers","subscription_url":"https://api.github.com/repos/ActiveState/api-docs/subscription","commits_url":"https://api.github.com/repos/ActiveState/api-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ActiveState/api-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ActiveState/api-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ActiveState/api-docs/issues/comments/{number}","contents_url":"https://api.github.com/repos/ActiveState/api-docs/contents/{+path}","compare_url":"https://api.github.com/repos/ActiveState/api-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ActiveState/api-docs/merges","archive_url":"https://api.github.com/repos/ActiveState/api-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ActiveState/api-docs/downloads","issues_url":"https://api.github.com/repos/ActiveState/api-docs/issues{/number}","pulls_url":"https://api.github.com/repos/ActiveState/api-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/ActiveState/api-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/ActiveState/api-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ActiveState/api-docs/labels{/name}","releases_url":"https://api.github.com/repos/ActiveState/api-docs/releases{/id}","created_at":"2014-12-10T01:05:30Z","updated_at":"2014-12-10T21:09:58Z","pushed_at":"2014-12-10T21:09:58Z","git_url":"git://github.com/ActiveState/api-docs.git","ssh_url":"git@github.com:ActiveState/api-docs.git","clone_url":"https://github.com/ActiveState/api-docs.git","svn_url":"https://github.com/ActiveState/api-docs","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"cloudfoundry:master","ref":"master","sha":"21b0bb8febe27c6e643e65d6636968e74c543d67","user":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars.githubusercontent.com/u/621746?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"repo":{"id":19788312,"name":"api-docs","full_name":"cloudfoundry/api-docs","owner":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars.githubusercontent.com/u/621746?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfoundry/api-docs","description":"Cloud Controller API Docs","fork":false,"url":"https://api.github.com/repos/cloudfoundry/api-docs","forks_url":"https://api.github.com/repos/cloudfoundry/api-docs/forks","keys_url":"https://api.github.com/repos/cloudfoundry/api-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfoundry/api-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfoundry/api-docs/teams","hooks_url":"https://api.github.com/repos/cloudfoundry/api-docs/hooks","issue_events_url":"https://api.github.com/repos/cloudfoundry/api-docs/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfoundry/api-docs/events","assignees_url":"https://api.github.com/repos/cloudfoundry/api-docs/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfoundry/api-docs/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfoundry/api-docs/tags","blobs_url":"https://api.github.com/repos/cloudfoundry/api-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfoundry/api-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfoundry/api-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfoundry/api-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfoundry/api-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfoundry/api-docs/languages","stargazers_url":"https://api.github.com/repos/cloudfoundry/api-docs/stargazers","contributors_url":"https://api.github.com/repos/cloudfoundry/api-docs/contributors","subscribers_url":"https://api.github.com/repos/cloudfoundry/api-docs/subscribers","subscription_url":"https://api.github.com/repos/cloudfoundry/api-docs/subscription","commits_url":"https://api.github.com/repos/cloudfoundry/api-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfoundry/api-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfoundry/api-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfoundry/api-docs/issues/comments/{number}","contents_url":"https://api.github.com/repos/cloudfoundry/api-docs/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfoundry/api-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfoundry/api-docs/merges","archive_url":"https://api.github.com/repos/cloudfoundry/api-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfoundry/api-docs/downloads","issues_url":"https://api.github.com/repos/cloudfoundry/api-docs/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfoundry/api-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfoundry/api-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfoundry/api-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfoundry/api-docs/labels{/name}","releases_url":"https://api.github.com/repos/cloudfoundry/api-docs/releases{/id}","created_at":"2014-05-14T17:03:00Z","updated_at":"2014-09-19T18:14:46Z","pushed_at":"2014-10-23T00:07:28Z","git_url":"git://github.com/cloudfoundry/api-docs.git","ssh_url":"git@github.com:cloudfoundry/api-docs.git","clone_url":"https://github.com/cloudfoundry/api-docs.git","svn_url":"https://github.com/cloudfoundry/api-docs","homepage":null,"size":179,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry/api-docs/pulls/1"},"html":{"href":"https://github.com/cloudfoundry/api-docs/pull/1"},"issue":{"href":"https://api.github.com/repos/cloudfoundry/api-docs/issues/1"},"comments":{"href":"https://api.github.com/repos/cloudfoundry/api-docs/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudfoundry/api-docs/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudfoundry/api-docs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cloudfoundry/api-docs/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/cloudfoundry/api-docs/statuses/0c98c5bca9c5f8e4b0e1ceeb468c9556748f9106"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":168,"deletions":25,"changed_files":3}}