{"action":"created","comment":{"url":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/comments/55063642","id":55063642,"diff_hunk":"@@ -24,10 +24,18 @@ child_process = require('child_process');\n \n path = require('path');\n \n+_ = require('lodash');\n+\n+AdmZip = require('adm-zip');\n+\n+unzip = require('unzip2');","path":"build/commands.js","position":17,"original_position":17,"commit_id":"b2119f7a4d0774c3854e1d7161400fa8fb483309","original_commit_id":"b2119f7a4d0774c3854e1d7161400fa8fb483309","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'require' is not defined.","created_at":"2016-03-04T17:55:48Z","updated_at":"2016-03-04T17:55:48Z","html_url":"https://github.com/resin-io/resin-device-operations/pull/28#discussion_r55063642","pull_request_url":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/comments/55063642"},"html":{"href":"https://github.com/resin-io/resin-device-operations/pull/28#discussion_r55063642"},"pull_request":{"href":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/28","id":61747432,"html_url":"https://github.com/resin-io/resin-device-operations/pull/28","diff_url":"https://github.com/resin-io/resin-device-operations/pull/28.diff","patch_url":"https://github.com/resin-io/resin-device-operations/pull/28.patch","issue_url":"https://api.github.com/repos/resin-io/resin-device-operations/issues/28","number":28,"state":"open","locked":false,"title":"Implement support for \"zip images\"","user":{"login":"jviotti","id":2192773,"avatar_url":"https://avatars.githubusercontent.com/u/2192773?v=3","gravatar_id":"","url":"https://api.github.com/users/jviotti","html_url":"https://github.com/jviotti","followers_url":"https://api.github.com/users/jviotti/followers","following_url":"https://api.github.com/users/jviotti/following{/other_user}","gists_url":"https://api.github.com/users/jviotti/gists{/gist_id}","starred_url":"https://api.github.com/users/jviotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jviotti/subscriptions","organizations_url":"https://api.github.com/users/jviotti/orgs","repos_url":"https://api.github.com/users/jviotti/repos","events_url":"https://api.github.com/users/jviotti/events{/privacy}","received_events_url":"https://api.github.com/users/jviotti/received_events","type":"User","site_admin":false},"body":"Zip images are Zip archives that contain a single `*.iso` or `*.img`\nfile (they can contain any other file type as well). If this is the\ncase, the single image file is extracted from the Zip as a readable\nstream and passed to `resin-image-write`.\n\nIf the Zip image is not valid (eg: it contains none, or multiple image\nfiles in it) an error is thrown.","created_at":"2016-03-04T17:55:34Z","updated_at":"2016-03-04T17:55:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0c871285bf2daec140d77b7da1a0f7fc64151c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/28/commits","review_comments_url":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/28/comments","review_comment_url":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/resin-io/resin-device-operations/issues/28/comments","statuses_url":"https://api.github.com/repos/resin-io/resin-device-operations/statuses/b2119f7a4d0774c3854e1d7161400fa8fb483309","head":{"label":"resin-io:feat/zip-images","ref":"feat/zip-images","sha":"b2119f7a4d0774c3854e1d7161400fa8fb483309","user":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":39649306,"name":"resin-device-operations","full_name":"resin-io/resin-device-operations","owner":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/resin-device-operations","description":"Execute device spec operations.","fork":false,"url":"https://api.github.com/repos/resin-io/resin-device-operations","forks_url":"https://api.github.com/repos/resin-io/resin-device-operations/forks","keys_url":"https://api.github.com/repos/resin-io/resin-device-operations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/resin-device-operations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/resin-device-operations/teams","hooks_url":"https://api.github.com/repos/resin-io/resin-device-operations/hooks","issue_events_url":"https://api.github.com/repos/resin-io/resin-device-operations/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/resin-device-operations/events","assignees_url":"https://api.github.com/repos/resin-io/resin-device-operations/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/resin-device-operations/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/resin-device-operations/tags","blobs_url":"https://api.github.com/repos/resin-io/resin-device-operations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/resin-device-operations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/resin-device-operations/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/resin-device-operations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/resin-device-operations/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/resin-device-operations/languages","stargazers_url":"https://api.github.com/repos/resin-io/resin-device-operations/stargazers","contributors_url":"https://api.github.com/repos/resin-io/resin-device-operations/contributors","subscribers_url":"https://api.github.com/repos/resin-io/resin-device-operations/subscribers","subscription_url":"https://api.github.com/repos/resin-io/resin-device-operations/subscription","commits_url":"https://api.github.com/repos/resin-io/resin-device-operations/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/resin-device-operations/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/resin-device-operations/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/resin-device-operations/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/resin-device-operations/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/resin-device-operations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/resin-device-operations/merges","archive_url":"https://api.github.com/repos/resin-io/resin-device-operations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/resin-device-operations/downloads","issues_url":"https://api.github.com/repos/resin-io/resin-device-operations/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/resin-device-operations/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/resin-device-operations/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/resin-device-operations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/resin-device-operations/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/resin-device-operations/releases{/id}","deployments_url":"https://api.github.com/repos/resin-io/resin-device-operations/deployments","created_at":"2015-07-24T18:07:35Z","updated_at":"2016-01-11T19:45:01Z","pushed_at":"2016-03-04T17:55:35Z","git_url":"git://github.com/resin-io/resin-device-operations.git","ssh_url":"git@github.com:resin-io/resin-device-operations.git","clone_url":"https://github.com/resin-io/resin-device-operations.git","svn_url":"https://github.com/resin-io/resin-device-operations","homepage":null,"size":17216,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"resin-io:master","ref":"master","sha":"7ffb2ec2da6632305c29f95038dac51a9f88c690","user":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":39649306,"name":"resin-device-operations","full_name":"resin-io/resin-device-operations","owner":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/resin-device-operations","description":"Execute device spec operations.","fork":false,"url":"https://api.github.com/repos/resin-io/resin-device-operations","forks_url":"https://api.github.com/repos/resin-io/resin-device-operations/forks","keys_url":"https://api.github.com/repos/resin-io/resin-device-operations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/resin-device-operations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/resin-device-operations/teams","hooks_url":"https://api.github.com/repos/resin-io/resin-device-operations/hooks","issue_events_url":"https://api.github.com/repos/resin-io/resin-device-operations/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/resin-device-operations/events","assignees_url":"https://api.github.com/repos/resin-io/resin-device-operations/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/resin-device-operations/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/resin-device-operations/tags","blobs_url":"https://api.github.com/repos/resin-io/resin-device-operations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/resin-device-operations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/resin-device-operations/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/resin-device-operations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/resin-device-operations/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/resin-device-operations/languages","stargazers_url":"https://api.github.com/repos/resin-io/resin-device-operations/stargazers","contributors_url":"https://api.github.com/repos/resin-io/resin-device-operations/contributors","subscribers_url":"https://api.github.com/repos/resin-io/resin-device-operations/subscribers","subscription_url":"https://api.github.com/repos/resin-io/resin-device-operations/subscription","commits_url":"https://api.github.com/repos/resin-io/resin-device-operations/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/resin-device-operations/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/resin-device-operations/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/resin-device-operations/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/resin-device-operations/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/resin-device-operations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/resin-device-operations/merges","archive_url":"https://api.github.com/repos/resin-io/resin-device-operations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/resin-device-operations/downloads","issues_url":"https://api.github.com/repos/resin-io/resin-device-operations/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/resin-device-operations/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/resin-device-operations/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/resin-device-operations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/resin-device-operations/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/resin-device-operations/releases{/id}","deployments_url":"https://api.github.com/repos/resin-io/resin-device-operations/deployments","created_at":"2015-07-24T18:07:35Z","updated_at":"2016-01-11T19:45:01Z","pushed_at":"2016-03-04T17:55:35Z","git_url":"git://github.com/resin-io/resin-device-operations.git","ssh_url":"git@github.com:resin-io/resin-device-operations.git","clone_url":"https://github.com/resin-io/resin-device-operations.git","svn_url":"https://github.com/resin-io/resin-device-operations","homepage":null,"size":17216,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/28"},"html":{"href":"https://github.com/resin-io/resin-device-operations/pull/28"},"issue":{"href":"https://api.github.com/repos/resin-io/resin-device-operations/issues/28"},"comments":{"href":"https://api.github.com/repos/resin-io/resin-device-operations/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/resin-io/resin-device-operations/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/resin-io/resin-device-operations/statuses/b2119f7a4d0774c3854e1d7161400fa8fb483309"}}}}