{"action":"created","comment":{"url":"https://api.github.com/repos/coreos/mantle/pulls/comments/241722100","pull_request_review_id":185066154,"id":241722100,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTcyMjEwMA==","diff_hunk":"@@ -200,6 +278,45 @@ func getImageFile(client *http.Client, src *storage.Bucket, fileName string) (st\n \treturn imagePath, nil\n }\n \n+func getFedoraImageFile(client *http.Client, src *storage.Bucket, fileName string) (string, error) {\n+\tcacheDir := filepath.Join(sdk.RepoCache(), \"images\", specChannel, specFedoraBoard, specFedoraVersion)\n+\trawxzPath := filepath.Join(cacheDir, fileName)\n+\timagePath := strings.TrimSuffix(rawxzPath, filepath.Ext(rawxzPath))\n+\n+\tif _, err := os.Stat(imagePath); err == nil {\n+\t\tplog.Printf(\"Reusing existing image %q\", imagePath)\n+\t\treturn imagePath, nil\n+\t}\n+\n+\trawxzURI, err := url.Parse(\"https://kojipkgs.fedoraproject.org/compose/cloud/Fedora-Cloud-29-20181114.0/compose/Cloud/x86_64/images/Fedora-Cloud-Base-29-20181114.0.x86_64.raw.xz\")\n+\tif err != nil {\n+\t\treturn \"\", err\n+\t}\n+\n+\tplog.Printf(\"Downloading image %q to %q\", rawxzURI, rawxzPath)\n+\n+\tif err := sdk.UpdateFile(rawxzPath, rawxzURI.String(), client); err != nil {\n+\t\treturn \"\", err\n+\t}\n+\n+\t//decompress it\n+\tplog.Printf(\"Decompressing %q...\", rawxzPath)\n+\tif err := util.XZ2File(imagePath, rawxzPath); err != nil {\n+\t\treturn \"\", err\n+\t}\n+\treturn imagePath, nil\n+}\n+\n+// getImageFile downloads a bzipped CoreOS image, verifies its signature,\n+// decompresses it, and returns the decompressed path.\n+func getImageFile(system string, client *http.Client, src *storage.Bucket, fileName string) (string, error) {\n+\tif system == \"cl\" {","path":"cmd/plume/prerelease.go","position":null,"original_position":186,"commit_id":"8e431930c5d5c1b3254ae84945abf33a0b0fcce8","original_commit_id":"2d507a9b31e7c1d979642a6c081ddb49ce9db0b9","user":{"login":"sayanchowdhury","id":500628,"node_id":"MDQ6VXNlcjUwMDYyOA==","avatar_url":"https://avatars3.githubusercontent.com/u/500628?v=4","gravatar_id":"","url":"https://api.github.com/users/sayanchowdhury","html_url":"https://github.com/sayanchowdhury","followers_url":"https://api.github.com/users/sayanchowdhury/followers","following_url":"https://api.github.com/users/sayanchowdhury/following{/other_user}","gists_url":"https://api.github.com/users/sayanchowdhury/gists{/gist_id}","starred_url":"https://api.github.com/users/sayanchowdhury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayanchowdhury/subscriptions","organizations_url":"https://api.github.com/users/sayanchowdhury/orgs","repos_url":"https://api.github.com/users/sayanchowdhury/repos","events_url":"https://api.github.com/users/sayanchowdhury/events{/privacy}","received_events_url":"https://api.github.com/users/sayanchowdhury/received_events","type":"User","site_admin":false},"body":"Done!\r\n","created_at":"2018-12-14T11:18:01Z","updated_at":"2018-12-14T11:18:01Z","html_url":"https://github.com/coreos/mantle/pull/934#discussion_r241722100","pull_request_url":"https://api.github.com/repos/coreos/mantle/pulls/934","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/coreos/mantle/pulls/comments/241722100"},"html":{"href":"https://github.com/coreos/mantle/pull/934#discussion_r241722100"},"pull_request":{"href":"https://api.github.com/repos/coreos/mantle/pulls/934"}},"in_reply_to_id":240546151},"pull_request":{"url":"https://api.github.com/repos/coreos/mantle/pulls/934","id":223056143,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMDU2MTQz","html_url":"https://github.com/coreos/mantle/pull/934","diff_url":"https://github.com/coreos/mantle/pull/934.diff","patch_url":"https://github.com/coreos/mantle/pull/934.patch","issue_url":"https://api.github.com/repos/coreos/mantle/issues/934","number":934,"state":"open","locked":false,"title":"Add functionality to upload Fedora images to AWS","user":{"login":"sayanchowdhury","id":500628,"node_id":"MDQ6VXNlcjUwMDYyOA==","avatar_url":"https://avatars3.githubusercontent.com/u/500628?v=4","gravatar_id":"","url":"https://api.github.com/users/sayanchowdhury","html_url":"https://github.com/sayanchowdhury","followers_url":"https://api.github.com/users/sayanchowdhury/followers","following_url":"https://api.github.com/users/sayanchowdhury/following{/other_user}","gists_url":"https://api.github.com/users/sayanchowdhury/gists{/gist_id}","starred_url":"https://api.github.com/users/sayanchowdhury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayanchowdhury/subscriptions","organizations_url":"https://api.github.com/users/sayanchowdhury/orgs","repos_url":"https://api.github.com/users/sayanchowdhury/repos","events_url":"https://api.github.com/users/sayanchowdhury/events{/privacy}","received_events_url":"https://api.github.com/users/sayanchowdhury/received_events","type":"User","site_admin":false},"body":"This PR downloads the Fedora Cloud images and creates the AMIs for them in AWS. This PR also make the AMIs public","created_at":"2018-10-15T21:58:52Z","updated_at":"2018-12-14T11:18:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a413534082f0bd87fde7da5f89a3152157955378","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/coreos/mantle/pulls/934/commits","review_comments_url":"https://api.github.com/repos/coreos/mantle/pulls/934/comments","review_comment_url":"https://api.github.com/repos/coreos/mantle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coreos/mantle/issues/934/comments","statuses_url":"https://api.github.com/repos/coreos/mantle/statuses/8e431930c5d5c1b3254ae84945abf33a0b0fcce8","head":{"label":"sayanchowdhury:plumev21","ref":"plumev21","sha":"8e431930c5d5c1b3254ae84945abf33a0b0fcce8","user":{"login":"sayanchowdhury","id":500628,"node_id":"MDQ6VXNlcjUwMDYyOA==","avatar_url":"https://avatars3.githubusercontent.com/u/500628?v=4","gravatar_id":"","url":"https://api.github.com/users/sayanchowdhury","html_url":"https://github.com/sayanchowdhury","followers_url":"https://api.github.com/users/sayanchowdhury/followers","following_url":"https://api.github.com/users/sayanchowdhury/following{/other_user}","gists_url":"https://api.github.com/users/sayanchowdhury/gists{/gist_id}","starred_url":"https://api.github.com/users/sayanchowdhury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayanchowdhury/subscriptions","organizations_url":"https://api.github.com/users/sayanchowdhury/orgs","repos_url":"https://api.github.com/users/sayanchowdhury/repos","events_url":"https://api.github.com/users/sayanchowdhury/events{/privacy}","received_events_url":"https://api.github.com/users/sayanchowdhury/received_events","type":"User","site_admin":false},"repo":{"id":137091866,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcwOTE4NjY=","name":"mantle","full_name":"sayanchowdhury/mantle","private":false,"owner":{"login":"sayanchowdhury","id":500628,"node_id":"MDQ6VXNlcjUwMDYyOA==","avatar_url":"https://avatars3.githubusercontent.com/u/500628?v=4","gravatar_id":"","url":"https://api.github.com/users/sayanchowdhury","html_url":"https://github.com/sayanchowdhury","followers_url":"https://api.github.com/users/sayanchowdhury/followers","following_url":"https://api.github.com/users/sayanchowdhury/following{/other_user}","gists_url":"https://api.github.com/users/sayanchowdhury/gists{/gist_id}","starred_url":"https://api.github.com/users/sayanchowdhury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayanchowdhury/subscriptions","organizations_url":"https://api.github.com/users/sayanchowdhury/orgs","repos_url":"https://api.github.com/users/sayanchowdhury/repos","events_url":"https://api.github.com/users/sayanchowdhury/events{/privacy}","received_events_url":"https://api.github.com/users/sayanchowdhury/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sayanchowdhury/mantle","description":"Mantle: Gluing Container Linux together","fork":true,"url":"https://api.github.com/repos/sayanchowdhury/mantle","forks_url":"https://api.github.com/repos/sayanchowdhury/mantle/forks","keys_url":"https://api.github.com/repos/sayanchowdhury/mantle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sayanchowdhury/mantle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sayanchowdhury/mantle/teams","hooks_url":"https://api.github.com/repos/sayanchowdhury/mantle/hooks","issue_events_url":"https://api.github.com/repos/sayanchowdhury/mantle/issues/events{/number}","events_url":"https://api.github.com/repos/sayanchowdhury/mantle/events","assignees_url":"https://api.github.com/repos/sayanchowdhury/mantle/assignees{/user}","branches_url":"https://api.github.com/repos/sayanchowdhury/mantle/branches{/branch}","tags_url":"https://api.github.com/repos/sayanchowdhury/mantle/tags","blobs_url":"https://api.github.com/repos/sayanchowdhury/mantle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sayanchowdhury/mantle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sayanchowdhury/mantle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sayanchowdhury/mantle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sayanchowdhury/mantle/statuses/{sha}","languages_url":"https://api.github.com/repos/sayanchowdhury/mantle/languages","stargazers_url":"https://api.github.com/repos/sayanchowdhury/mantle/stargazers","contributors_url":"https://api.github.com/repos/sayanchowdhury/mantle/contributors","subscribers_url":"https://api.github.com/repos/sayanchowdhury/mantle/subscribers","subscription_url":"https://api.github.com/repos/sayanchowdhury/mantle/subscription","commits_url":"https://api.github.com/repos/sayanchowdhury/mantle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sayanchowdhury/mantle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sayanchowdhury/mantle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sayanchowdhury/mantle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sayanchowdhury/mantle/contents/{+path}","compare_url":"https://api.github.com/repos/sayanchowdhury/mantle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sayanchowdhury/mantle/merges","archive_url":"https://api.github.com/repos/sayanchowdhury/mantle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sayanchowdhury/mantle/downloads","issues_url":"https://api.github.com/repos/sayanchowdhury/mantle/issues{/number}","pulls_url":"https://api.github.com/repos/sayanchowdhury/mantle/pulls{/number}","milestones_url":"https://api.github.com/repos/sayanchowdhury/mantle/milestones{/number}","notifications_url":"https://api.github.com/repos/sayanchowdhury/mantle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sayanchowdhury/mantle/labels{/name}","releases_url":"https://api.github.com/repos/sayanchowdhury/mantle/releases{/id}","deployments_url":"https://api.github.com/repos/sayanchowdhury/mantle/deployments","created_at":"2018-06-12T15:28:42Z","updated_at":"2018-06-12T15:28:45Z","pushed_at":"2018-12-14T11:16:30Z","git_url":"git://github.com/sayanchowdhury/mantle.git","ssh_url":"git@github.com:sayanchowdhury/mantle.git","clone_url":"https://github.com/sayanchowdhury/mantle.git","svn_url":"https://github.com/sayanchowdhury/mantle","homepage":"","size":21936,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coreos:master","ref":"master","sha":"bee07ac7022f34215a6f5aec3a6be7cdd094cacd","user":{"login":"coreos","id":3730757,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MzA3NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/3730757?v=4","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"repo":{"id":27562362,"node_id":"MDEwOlJlcG9zaXRvcnkyNzU2MjM2Mg==","name":"mantle","full_name":"coreos/mantle","private":false,"owner":{"login":"coreos","id":3730757,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MzA3NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/3730757?v=4","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/coreos/mantle","description":"Mantle: Gluing Container Linux together","fork":false,"url":"https://api.github.com/repos/coreos/mantle","forks_url":"https://api.github.com/repos/coreos/mantle/forks","keys_url":"https://api.github.com/repos/coreos/mantle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreos/mantle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreos/mantle/teams","hooks_url":"https://api.github.com/repos/coreos/mantle/hooks","issue_events_url":"https://api.github.com/repos/coreos/mantle/issues/events{/number}","events_url":"https://api.github.com/repos/coreos/mantle/events","assignees_url":"https://api.github.com/repos/coreos/mantle/assignees{/user}","branches_url":"https://api.github.com/repos/coreos/mantle/branches{/branch}","tags_url":"https://api.github.com/repos/coreos/mantle/tags","blobs_url":"https://api.github.com/repos/coreos/mantle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreos/mantle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreos/mantle/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreos/mantle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreos/mantle/statuses/{sha}","languages_url":"https://api.github.com/repos/coreos/mantle/languages","stargazers_url":"https://api.github.com/repos/coreos/mantle/stargazers","contributors_url":"https://api.github.com/repos/coreos/mantle/contributors","subscribers_url":"https://api.github.com/repos/coreos/mantle/subscribers","subscription_url":"https://api.github.com/repos/coreos/mantle/subscription","commits_url":"https://api.github.com/repos/coreos/mantle/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreos/mantle/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreos/mantle/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreos/mantle/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreos/mantle/contents/{+path}","compare_url":"https://api.github.com/repos/coreos/mantle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreos/mantle/merges","archive_url":"https://api.github.com/repos/coreos/mantle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreos/mantle/downloads","issues_url":"https://api.github.com/repos/coreos/mantle/issues{/number}","pulls_url":"https://api.github.com/repos/coreos/mantle/pulls{/number}","milestones_url":"https://api.github.com/repos/coreos/mantle/milestones{/number}","notifications_url":"https://api.github.com/repos/coreos/mantle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreos/mantle/labels{/name}","releases_url":"https://api.github.com/repos/coreos/mantle/releases{/id}","deployments_url":"https://api.github.com/repos/coreos/mantle/deployments","created_at":"2014-12-04T22:09:02Z","updated_at":"2018-12-13T21:36:41Z","pushed_at":"2018-12-14T11:16:32Z","git_url":"git://github.com/coreos/mantle.git","ssh_url":"git@github.com:coreos/mantle.git","clone_url":"https://github.com/coreos/mantle.git","svn_url":"https://github.com/coreos/mantle","homepage":"","size":21811,"stargazers_count":70,"watchers_count":70,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":68,"mirror_url":null,"archived":false,"open_issues_count":55,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":68,"open_issues":55,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coreos/mantle/pulls/934"},"html":{"href":"https://github.com/coreos/mantle/pull/934"},"issue":{"href":"https://api.github.com/repos/coreos/mantle/issues/934"},"comments":{"href":"https://api.github.com/repos/coreos/mantle/issues/934/comments"},"review_comments":{"href":"https://api.github.com/repos/coreos/mantle/pulls/934/comments"},"review_comment":{"href":"https://api.github.com/repos/coreos/mantle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coreos/mantle/pulls/934/commits"},"statuses":{"href":"https://api.github.com/repos/coreos/mantle/statuses/8e431930c5d5c1b3254ae84945abf33a0b0fcce8"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"sayanchowdhury"}}