{"action":"created","comment":{"url":"https://api.github.com/repos/docker-library/elasticsearch/pulls/comments/83482261","pull_request_review_id":4326266,"id":83482261,"diff_hunk":"@@ -12,17 +12,20 @@ versions=( \"${versions[@]%/}\" )\n travisEnv=\n for version in \"${versions[@]}\"; do\n \ttravisEnv='\\n  - VERSION='\"$version$travisEnv\"\n-\t\n-\trepoBase=\"http://packages.elasticsearch.org/elasticsearch/$version/debian\"\n-\tif [ \"${version%%.*}\" -ge 2 ]; then\n-\t\trepoBase=\"http://packages.elasticsearch.org/elasticsearch/${version%%.*}.x/debian\"\n-\tfi\n-\t\n+\n+\tmajorVersion=\"${version%%.*}\"\n+\trepoBase=\"http://packages.elasticsearch.org/elasticsearch/${majorVersion}.x/debian\"\n+\tcase \"$majorVersion\" in\n+\t\t5) repoBase=\"https://artifacts.elastic.co/packages/${majorVersion}.x-prerelease/apt\" ;;","path":"update.sh","position":14,"original_position":14,"commit_id":"7416d6a45ad398dce423315bc3c4dc5d06eb3b8e","original_commit_id":"7416d6a45ad398dce423315bc3c4dc5d06eb3b8e","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"body":"Yeah, we'll have to make changes at release time anyhow (to adjust the repo), so IMO renaming the directory is simpler than looking for this line in `update.sh` (and then if there's a pre-release of 5.0.x later that we want to pull in, we can do that too).\r\n\r\nOk, I'll update.","created_at":"2016-10-14T18:59:54Z","updated_at":"2016-10-14T18:59:54Z","html_url":"https://github.com/docker-library/elasticsearch/pull/124#discussion_r83482261","pull_request_url":"https://api.github.com/repos/docker-library/elasticsearch/pulls/124","_links":{"self":{"href":"https://api.github.com/repos/docker-library/elasticsearch/pulls/comments/83482261"},"html":{"href":"https://github.com/docker-library/elasticsearch/pull/124#discussion_r83482261"},"pull_request":{"href":"https://api.github.com/repos/docker-library/elasticsearch/pulls/124"}}},"pull_request":{"url":"https://api.github.com/repos/docker-library/elasticsearch/pulls/124","id":89425686,"html_url":"https://github.com/docker-library/elasticsearch/pull/124","diff_url":"https://github.com/docker-library/elasticsearch/pull/124.diff","patch_url":"https://github.com/docker-library/elasticsearch/pull/124.patch","issue_url":"https://api.github.com/repos/docker-library/elasticsearch/issues/124","number":124,"state":"open","locked":false,"title":"Refactor template, especially for 5+","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"body":"This accounts for the changes in #123","created_at":"2016-10-14T17:46:39Z","updated_at":"2016-10-14T18:59:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36366eefd1ab3f98a39e144765f05fed390986dd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/docker-library/elasticsearch/pulls/124/commits","review_comments_url":"https://api.github.com/repos/docker-library/elasticsearch/pulls/124/comments","review_comment_url":"https://api.github.com/repos/docker-library/elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker-library/elasticsearch/issues/124/comments","statuses_url":"https://api.github.com/repos/docker-library/elasticsearch/statuses/7416d6a45ad398dce423315bc3c4dc5d06eb3b8e","head":{"label":"infosiftr:template-refactor","ref":"template-refactor","sha":"7416d6a45ad398dce423315bc3c4dc5d06eb3b8e","user":{"login":"infosiftr","id":894614,"avatar_url":"https://avatars.githubusercontent.com/u/894614?v=3","gravatar_id":"","url":"https://api.github.com/users/infosiftr","html_url":"https://github.com/infosiftr","followers_url":"https://api.github.com/users/infosiftr/followers","following_url":"https://api.github.com/users/infosiftr/following{/other_user}","gists_url":"https://api.github.com/users/infosiftr/gists{/gist_id}","starred_url":"https://api.github.com/users/infosiftr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infosiftr/subscriptions","organizations_url":"https://api.github.com/users/infosiftr/orgs","repos_url":"https://api.github.com/users/infosiftr/repos","events_url":"https://api.github.com/users/infosiftr/events{/privacy}","received_events_url":"https://api.github.com/users/infosiftr/received_events","type":"Organization","site_admin":false},"repo":{"id":34416740,"name":"elasticsearch","full_name":"infosiftr/elasticsearch","owner":{"login":"infosiftr","id":894614,"avatar_url":"https://avatars.githubusercontent.com/u/894614?v=3","gravatar_id":"","url":"https://api.github.com/users/infosiftr","html_url":"https://github.com/infosiftr","followers_url":"https://api.github.com/users/infosiftr/followers","following_url":"https://api.github.com/users/infosiftr/following{/other_user}","gists_url":"https://api.github.com/users/infosiftr/gists{/gist_id}","starred_url":"https://api.github.com/users/infosiftr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infosiftr/subscriptions","organizations_url":"https://api.github.com/users/infosiftr/orgs","repos_url":"https://api.github.com/users/infosiftr/repos","events_url":"https://api.github.com/users/infosiftr/events{/privacy}","received_events_url":"https://api.github.com/users/infosiftr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infosiftr/elasticsearch","description":"Docker Official Image packaging for elasticsearch","fork":true,"url":"https://api.github.com/repos/infosiftr/elasticsearch","forks_url":"https://api.github.com/repos/infosiftr/elasticsearch/forks","keys_url":"https://api.github.com/repos/infosiftr/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infosiftr/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infosiftr/elasticsearch/teams","hooks_url":"https://api.github.com/repos/infosiftr/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/infosiftr/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/infosiftr/elasticsearch/events","assignees_url":"https://api.github.com/repos/infosiftr/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/infosiftr/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/infosiftr/elasticsearch/tags","blobs_url":"https://api.github.com/repos/infosiftr/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infosiftr/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infosiftr/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/infosiftr/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infosiftr/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/infosiftr/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/infosiftr/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/infosiftr/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/infosiftr/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/infosiftr/elasticsearch/subscription","commits_url":"https://api.github.com/repos/infosiftr/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/infosiftr/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/infosiftr/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/infosiftr/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/infosiftr/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/infosiftr/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infosiftr/elasticsearch/merges","archive_url":"https://api.github.com/repos/infosiftr/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infosiftr/elasticsearch/downloads","issues_url":"https://api.github.com/repos/infosiftr/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/infosiftr/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/infosiftr/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/infosiftr/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infosiftr/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/infosiftr/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/infosiftr/elasticsearch/deployments","created_at":"2015-04-22T21:23:17Z","updated_at":"2016-01-18T20:58:56Z","pushed_at":"2016-10-14T17:46:37Z","git_url":"git://github.com/infosiftr/elasticsearch.git","ssh_url":"git@github.com:infosiftr/elasticsearch.git","clone_url":"https://github.com/infosiftr/elasticsearch.git","svn_url":"https://github.com/infosiftr/elasticsearch","homepage":"https://elasticsearch.org","size":122,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"docker-library:master","ref":"master","sha":"1f1605eca9435fbd10abbec14a9a4209eca10343","user":{"login":"docker-library","id":7739233,"avatar_url":"https://avatars.githubusercontent.com/u/7739233?v=3","gravatar_id":"","url":"https://api.github.com/users/docker-library","html_url":"https://github.com/docker-library","followers_url":"https://api.github.com/users/docker-library/followers","following_url":"https://api.github.com/users/docker-library/following{/other_user}","gists_url":"https://api.github.com/users/docker-library/gists{/gist_id}","starred_url":"https://api.github.com/users/docker-library/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker-library/subscriptions","organizations_url":"https://api.github.com/users/docker-library/orgs","repos_url":"https://api.github.com/users/docker-library/repos","events_url":"https://api.github.com/users/docker-library/events{/privacy}","received_events_url":"https://api.github.com/users/docker-library/received_events","type":"Organization","site_admin":false},"repo":{"id":28992290,"name":"elasticsearch","full_name":"docker-library/elasticsearch","owner":{"login":"docker-library","id":7739233,"avatar_url":"https://avatars.githubusercontent.com/u/7739233?v=3","gravatar_id":"","url":"https://api.github.com/users/docker-library","html_url":"https://github.com/docker-library","followers_url":"https://api.github.com/users/docker-library/followers","following_url":"https://api.github.com/users/docker-library/following{/other_user}","gists_url":"https://api.github.com/users/docker-library/gists{/gist_id}","starred_url":"https://api.github.com/users/docker-library/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker-library/subscriptions","organizations_url":"https://api.github.com/users/docker-library/orgs","repos_url":"https://api.github.com/users/docker-library/repos","events_url":"https://api.github.com/users/docker-library/events{/privacy}","received_events_url":"https://api.github.com/users/docker-library/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker-library/elasticsearch","description":"Docker Official Image packaging for elasticsearch","fork":false,"url":"https://api.github.com/repos/docker-library/elasticsearch","forks_url":"https://api.github.com/repos/docker-library/elasticsearch/forks","keys_url":"https://api.github.com/repos/docker-library/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker-library/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker-library/elasticsearch/teams","hooks_url":"https://api.github.com/repos/docker-library/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/docker-library/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/docker-library/elasticsearch/events","assignees_url":"https://api.github.com/repos/docker-library/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/docker-library/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/docker-library/elasticsearch/tags","blobs_url":"https://api.github.com/repos/docker-library/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker-library/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker-library/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker-library/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker-library/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/docker-library/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/docker-library/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/docker-library/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/docker-library/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/docker-library/elasticsearch/subscription","commits_url":"https://api.github.com/repos/docker-library/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker-library/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker-library/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker-library/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker-library/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/docker-library/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker-library/elasticsearch/merges","archive_url":"https://api.github.com/repos/docker-library/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker-library/elasticsearch/downloads","issues_url":"https://api.github.com/repos/docker-library/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/docker-library/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/docker-library/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/docker-library/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker-library/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/docker-library/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/docker-library/elasticsearch/deployments","created_at":"2015-01-08T23:59:03Z","updated_at":"2016-10-11T19:16:00Z","pushed_at":"2016-10-14T17:46:39Z","git_url":"git://github.com/docker-library/elasticsearch.git","ssh_url":"git@github.com:docker-library/elasticsearch.git","clone_url":"https://github.com/docker-library/elasticsearch.git","svn_url":"https://github.com/docker-library/elasticsearch","homepage":"https://elastic.co","size":210,"stargazers_count":155,"watchers_count":155,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":177,"mirror_url":null,"open_issues_count":25,"forks":177,"open_issues":25,"watchers":155,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker-library/elasticsearch/pulls/124"},"html":{"href":"https://github.com/docker-library/elasticsearch/pull/124"},"issue":{"href":"https://api.github.com/repos/docker-library/elasticsearch/issues/124"},"comments":{"href":"https://api.github.com/repos/docker-library/elasticsearch/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/docker-library/elasticsearch/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/docker-library/elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker-library/elasticsearch/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/docker-library/elasticsearch/statuses/7416d6a45ad398dce423315bc3c4dc5d06eb3b8e"}}}}
{"actor":{"display_login":"tianon"}}