{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/rkt/issues/3334","repository_url":"https://api.github.com/repos/coreos/rkt","labels_url":"https://api.github.com/repos/coreos/rkt/issues/3334/labels{/name}","comments_url":"https://api.github.com/repos/coreos/rkt/issues/3334/comments","events_url":"https://api.github.com/repos/coreos/rkt/issues/3334/events","html_url":"https://github.com/coreos/rkt/pull/3334","id":186355026,"number":3334,"title":"stage0/image: list images output in JSON format","user":{"login":"lucasallan","id":39306,"avatar_url":"https://avatars.githubusercontent.com/u/39306?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasallan","html_url":"https://github.com/lucasallan","followers_url":"https://api.github.com/users/lucasallan/followers","following_url":"https://api.github.com/users/lucasallan/following{/other_user}","gists_url":"https://api.github.com/users/lucasallan/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasallan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasallan/subscriptions","organizations_url":"https://api.github.com/users/lucasallan/orgs","repos_url":"https://api.github.com/users/lucasallan/repos","events_url":"https://api.github.com/users/lucasallan/events{/privacy}","received_events_url":"https://api.github.com/users/lucasallan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-31T18:05:30Z","updated_at":"2016-11-01T08:45:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coreos/rkt/pulls/3334","html_url":"https://github.com/coreos/rkt/pull/3334","diff_url":"https://github.com/coreos/rkt/pull/3334.diff","patch_url":"https://github.com/coreos/rkt/pull/3334.patch"},"body":"@lucab PTAL\r\n\r\nList images in the json format:\r\n\r\n```\r\nubuntu@ubuntu-xenial:/rkt/build-rir$ sudo target/bin/rkt image list --format=json\r\n[{\"id\":\"sha512-bd4c342830c8\",\"name\":\"coreos.com/rkt/stage1-coreos:1.17.0\",\"import_time\":\"2 days ago\",\"last_used\":\"2 days ago\",\"size\":\"179MiB\"},{\"id\":\"sha512-7b1e1a77f0b6\",\"name\":\"coreos.com/rkt/builder:1.1.0\",\"import_time\":\"2 days ago\",\"last_used\":\"2 days ago\",\"size\":\"1.6GiB\"}]\r\n```\r\n\r\nAnd json-pretty:\r\n```\r\nubuntu@ubuntu-xenial:/rkt/build-rir$ sudo target/bin/rkt image list --format=json-pretty\r\n[\r\n\t{\r\n\t\t\"id\": \"sha512-bd4c342830c8\",\r\n\t\t\"name\": \"coreos.com/rkt/stage1-coreos:1.17.0\",\r\n\t\t\"import_time\": \"2 days ago\",\r\n\t\t\"last_used\": \"2 days ago\",\r\n\t\t\"size\": \"179MiB\"\r\n\t},\r\n\t{\r\n\t\t\"id\": \"sha512-7b1e1a77f0b6\",\r\n\t\t\"name\": \"coreos.com/rkt/builder:1.1.0\",\r\n\t\t\"import_time\": \"2 days ago\",\r\n\t\t\"last_used\": \"2 days ago\",\r\n\t\t\"size\": \"1.6GiB\"\r\n\t}\r\n]\r\n```\r\n\r\naddressing feature request #3298"},"comment":{"url":"https://api.github.com/repos/coreos/rkt/issues/comments/257515540","html_url":"https://github.com/coreos/rkt/pull/3334#issuecomment-257515540","issue_url":"https://api.github.com/repos/coreos/rkt/issues/3334","id":257515540,"user":{"login":"lucab","id":98086,"avatar_url":"https://avatars.githubusercontent.com/u/98086?v=3","gravatar_id":"","url":"https://api.github.com/users/lucab","html_url":"https://github.com/lucab","followers_url":"https://api.github.com/users/lucab/followers","following_url":"https://api.github.com/users/lucab/following{/other_user}","gists_url":"https://api.github.com/users/lucab/gists{/gist_id}","starred_url":"https://api.github.com/users/lucab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucab/subscriptions","organizations_url":"https://api.github.com/users/lucab/orgs","repos_url":"https://api.github.com/users/lucab/repos","events_url":"https://api.github.com/users/lucab/events{/privacy}","received_events_url":"https://api.github.com/users/lucab/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T08:45:30Z","updated_at":"2016-11-01T08:45:30Z","body":"@lucasallan this looks really nice, thanks a lot! Code seems fine at a quick glance, can you please just format the commit titles as shown in the [doc](https://github.com/coreos/rkt/blob/master/CONTRIBUTING.md#format-of-the-commit-message)? I also retitled this PR to follow the same style, if you are unsure about the format.\r\n\r\n@euank @s-urbaniak can one of you please do a final pass on this and shepherd this in?"}}
{"actor":{"display_login":"lucab"}}