{"action":"created","comment":{"url":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/comments/57205133","id":57205133,"diff_hunk":"@@ -207,6 +208,26 @@ function MULTIGET (fhurls, where, cb) {\n }\n \n /**\n+ * Creates a closure over a callback that handles error and status code checking for a upload request\n+ * @param  {Function} cb Callback function\n+ * @return {Function}      Node-style callback closed over `cb`\n+ * @access private\n+ */\n+function uploadHandlerFor(cb) {\n+  return function(err, response) {\n+    if(err) {\n+      return cb(\"Error Uploading File \" + err);","path":"lib/utils/request.js","position":20,"original_position":20,"commit_id":"beed6fe9f5a07f0d42ec0a30b1937a39534af317","original_commit_id":"beed6fe9f5a07f0d42ec0a30b1937a39534af317","user":{"login":"vchepeli","id":1727278,"avatar_url":"https://avatars.githubusercontent.com/u/1727278?v=3","gravatar_id":"","url":"https://api.github.com/users/vchepeli","html_url":"https://github.com/vchepeli","followers_url":"https://api.github.com/users/vchepeli/followers","following_url":"https://api.github.com/users/vchepeli/following{/other_user}","gists_url":"https://api.github.com/users/vchepeli/gists{/gist_id}","starred_url":"https://api.github.com/users/vchepeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchepeli/subscriptions","organizations_url":"https://api.github.com/users/vchepeli/orgs","repos_url":"https://api.github.com/users/vchepeli/repos","events_url":"https://api.github.com/users/vchepeli/events{/privacy}","received_events_url":"https://api.github.com/users/vchepeli/received_events","type":"User","site_admin":false},"body":"cb(err, \"Error Uploading File \")?","created_at":"2016-03-23T17:48:33Z","updated_at":"2016-03-23T17:48:33Z","html_url":"https://github.com/feedhenry/fh-fhc/pull/192#discussion_r57205133","pull_request_url":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/192","_links":{"self":{"href":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/comments/57205133"},"html":{"href":"https://github.com/feedhenry/fh-fhc/pull/192#discussion_r57205133"},"pull_request":{"href":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/192"}}},"pull_request":{"url":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/192","id":63888117,"html_url":"https://github.com/feedhenry/fh-fhc/pull/192","diff_url":"https://github.com/feedhenry/fh-fhc/pull/192.diff","patch_url":"https://github.com/feedhenry/fh-fhc/pull/192.patch","issue_url":"https://api.github.com/repos/feedhenry/fh-fhc/issues/192","number":192,"state":"open","locked":false,"title":"[RHMAP-5254] Create a command for import that takes a zipfile location","user":{"login":"paolobueno","id":1294893,"avatar_url":"https://avatars.githubusercontent.com/u/1294893?v=3","gravatar_id":"","url":"https://api.github.com/users/paolobueno","html_url":"https://github.com/paolobueno","followers_url":"https://api.github.com/users/paolobueno/followers","following_url":"https://api.github.com/users/paolobueno/following{/other_user}","gists_url":"https://api.github.com/users/paolobueno/gists{/gist_id}","starred_url":"https://api.github.com/users/paolobueno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paolobueno/subscriptions","organizations_url":"https://api.github.com/users/paolobueno/orgs","repos_url":"https://api.github.com/users/paolobueno/repos","events_url":"https://api.github.com/users/paolobueno/events{/privacy}","received_events_url":"https://api.github.com/users/paolobueno/received_events","type":"User","site_admin":false},"body":"Create the `fhc appforms forms import --file=forms.zip` command.\r\n\r\nVersion bump is pending, will do after code review.","created_at":"2016-03-23T14:14:27Z","updated_at":"2016-03-23T17:48:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2330f5ff744e3838783630f3465356d9c099e19d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/192/commits","review_comments_url":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/192/comments","review_comment_url":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/feedhenry/fh-fhc/issues/192/comments","statuses_url":"https://api.github.com/repos/feedhenry/fh-fhc/statuses/beed6fe9f5a07f0d42ec0a30b1937a39534af317","head":{"label":"paolobueno:RHMAP-5254","ref":"RHMAP-5254","sha":"beed6fe9f5a07f0d42ec0a30b1937a39534af317","user":{"login":"paolobueno","id":1294893,"avatar_url":"https://avatars.githubusercontent.com/u/1294893?v=3","gravatar_id":"","url":"https://api.github.com/users/paolobueno","html_url":"https://github.com/paolobueno","followers_url":"https://api.github.com/users/paolobueno/followers","following_url":"https://api.github.com/users/paolobueno/following{/other_user}","gists_url":"https://api.github.com/users/paolobueno/gists{/gist_id}","starred_url":"https://api.github.com/users/paolobueno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paolobueno/subscriptions","organizations_url":"https://api.github.com/users/paolobueno/orgs","repos_url":"https://api.github.com/users/paolobueno/repos","events_url":"https://api.github.com/users/paolobueno/events{/privacy}","received_events_url":"https://api.github.com/users/paolobueno/received_events","type":"User","site_admin":false},"repo":{"id":53423096,"name":"fh-fhc","full_name":"paolobueno/fh-fhc","owner":{"login":"paolobueno","id":1294893,"avatar_url":"https://avatars.githubusercontent.com/u/1294893?v=3","gravatar_id":"","url":"https://api.github.com/users/paolobueno","html_url":"https://github.com/paolobueno","followers_url":"https://api.github.com/users/paolobueno/followers","following_url":"https://api.github.com/users/paolobueno/following{/other_user}","gists_url":"https://api.github.com/users/paolobueno/gists{/gist_id}","starred_url":"https://api.github.com/users/paolobueno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paolobueno/subscriptions","organizations_url":"https://api.github.com/users/paolobueno/orgs","repos_url":"https://api.github.com/users/paolobueno/repos","events_url":"https://api.github.com/users/paolobueno/events{/privacy}","received_events_url":"https://api.github.com/users/paolobueno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paolobueno/fh-fhc","description":"FeedHenry CLI, the Command Line Interface to FeedHenry","fork":true,"url":"https://api.github.com/repos/paolobueno/fh-fhc","forks_url":"https://api.github.com/repos/paolobueno/fh-fhc/forks","keys_url":"https://api.github.com/repos/paolobueno/fh-fhc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paolobueno/fh-fhc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paolobueno/fh-fhc/teams","hooks_url":"https://api.github.com/repos/paolobueno/fh-fhc/hooks","issue_events_url":"https://api.github.com/repos/paolobueno/fh-fhc/issues/events{/number}","events_url":"https://api.github.com/repos/paolobueno/fh-fhc/events","assignees_url":"https://api.github.com/repos/paolobueno/fh-fhc/assignees{/user}","branches_url":"https://api.github.com/repos/paolobueno/fh-fhc/branches{/branch}","tags_url":"https://api.github.com/repos/paolobueno/fh-fhc/tags","blobs_url":"https://api.github.com/repos/paolobueno/fh-fhc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paolobueno/fh-fhc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paolobueno/fh-fhc/git/refs{/sha}","trees_url":"https://api.github.com/repos/paolobueno/fh-fhc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paolobueno/fh-fhc/statuses/{sha}","languages_url":"https://api.github.com/repos/paolobueno/fh-fhc/languages","stargazers_url":"https://api.github.com/repos/paolobueno/fh-fhc/stargazers","contributors_url":"https://api.github.com/repos/paolobueno/fh-fhc/contributors","subscribers_url":"https://api.github.com/repos/paolobueno/fh-fhc/subscribers","subscription_url":"https://api.github.com/repos/paolobueno/fh-fhc/subscription","commits_url":"https://api.github.com/repos/paolobueno/fh-fhc/commits{/sha}","git_commits_url":"https://api.github.com/repos/paolobueno/fh-fhc/git/commits{/sha}","comments_url":"https://api.github.com/repos/paolobueno/fh-fhc/comments{/number}","issue_comment_url":"https://api.github.com/repos/paolobueno/fh-fhc/issues/comments{/number}","contents_url":"https://api.github.com/repos/paolobueno/fh-fhc/contents/{+path}","compare_url":"https://api.github.com/repos/paolobueno/fh-fhc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paolobueno/fh-fhc/merges","archive_url":"https://api.github.com/repos/paolobueno/fh-fhc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paolobueno/fh-fhc/downloads","issues_url":"https://api.github.com/repos/paolobueno/fh-fhc/issues{/number}","pulls_url":"https://api.github.com/repos/paolobueno/fh-fhc/pulls{/number}","milestones_url":"https://api.github.com/repos/paolobueno/fh-fhc/milestones{/number}","notifications_url":"https://api.github.com/repos/paolobueno/fh-fhc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paolobueno/fh-fhc/labels{/name}","releases_url":"https://api.github.com/repos/paolobueno/fh-fhc/releases{/id}","deployments_url":"https://api.github.com/repos/paolobueno/fh-fhc/deployments","created_at":"2016-03-08T15:29:28Z","updated_at":"2016-03-08T15:29:29Z","pushed_at":"2016-03-23T15:21:52Z","git_url":"git://github.com/paolobueno/fh-fhc.git","ssh_url":"git@github.com:paolobueno/fh-fhc.git","clone_url":"https://github.com/paolobueno/fh-fhc.git","svn_url":"https://github.com/paolobueno/fh-fhc","homepage":"","size":2190,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"feedhenry:master","ref":"master","sha":"e980685c2691a0910b49eae2a6fe129e64e00f98","user":{"login":"feedhenry","id":772226,"avatar_url":"https://avatars.githubusercontent.com/u/772226?v=3","gravatar_id":"","url":"https://api.github.com/users/feedhenry","html_url":"https://github.com/feedhenry","followers_url":"https://api.github.com/users/feedhenry/followers","following_url":"https://api.github.com/users/feedhenry/following{/other_user}","gists_url":"https://api.github.com/users/feedhenry/gists{/gist_id}","starred_url":"https://api.github.com/users/feedhenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feedhenry/subscriptions","organizations_url":"https://api.github.com/users/feedhenry/orgs","repos_url":"https://api.github.com/users/feedhenry/repos","events_url":"https://api.github.com/users/feedhenry/events{/privacy}","received_events_url":"https://api.github.com/users/feedhenry/received_events","type":"Organization","site_admin":false},"repo":{"id":2850815,"name":"fh-fhc","full_name":"feedhenry/fh-fhc","owner":{"login":"feedhenry","id":772226,"avatar_url":"https://avatars.githubusercontent.com/u/772226?v=3","gravatar_id":"","url":"https://api.github.com/users/feedhenry","html_url":"https://github.com/feedhenry","followers_url":"https://api.github.com/users/feedhenry/followers","following_url":"https://api.github.com/users/feedhenry/following{/other_user}","gists_url":"https://api.github.com/users/feedhenry/gists{/gist_id}","starred_url":"https://api.github.com/users/feedhenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feedhenry/subscriptions","organizations_url":"https://api.github.com/users/feedhenry/orgs","repos_url":"https://api.github.com/users/feedhenry/repos","events_url":"https://api.github.com/users/feedhenry/events{/privacy}","received_events_url":"https://api.github.com/users/feedhenry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/feedhenry/fh-fhc","description":"FeedHenry CLI, the Command Line Interface to FeedHenry","fork":false,"url":"https://api.github.com/repos/feedhenry/fh-fhc","forks_url":"https://api.github.com/repos/feedhenry/fh-fhc/forks","keys_url":"https://api.github.com/repos/feedhenry/fh-fhc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/feedhenry/fh-fhc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/feedhenry/fh-fhc/teams","hooks_url":"https://api.github.com/repos/feedhenry/fh-fhc/hooks","issue_events_url":"https://api.github.com/repos/feedhenry/fh-fhc/issues/events{/number}","events_url":"https://api.github.com/repos/feedhenry/fh-fhc/events","assignees_url":"https://api.github.com/repos/feedhenry/fh-fhc/assignees{/user}","branches_url":"https://api.github.com/repos/feedhenry/fh-fhc/branches{/branch}","tags_url":"https://api.github.com/repos/feedhenry/fh-fhc/tags","blobs_url":"https://api.github.com/repos/feedhenry/fh-fhc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/feedhenry/fh-fhc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/feedhenry/fh-fhc/git/refs{/sha}","trees_url":"https://api.github.com/repos/feedhenry/fh-fhc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/feedhenry/fh-fhc/statuses/{sha}","languages_url":"https://api.github.com/repos/feedhenry/fh-fhc/languages","stargazers_url":"https://api.github.com/repos/feedhenry/fh-fhc/stargazers","contributors_url":"https://api.github.com/repos/feedhenry/fh-fhc/contributors","subscribers_url":"https://api.github.com/repos/feedhenry/fh-fhc/subscribers","subscription_url":"https://api.github.com/repos/feedhenry/fh-fhc/subscription","commits_url":"https://api.github.com/repos/feedhenry/fh-fhc/commits{/sha}","git_commits_url":"https://api.github.com/repos/feedhenry/fh-fhc/git/commits{/sha}","comments_url":"https://api.github.com/repos/feedhenry/fh-fhc/comments{/number}","issue_comment_url":"https://api.github.com/repos/feedhenry/fh-fhc/issues/comments{/number}","contents_url":"https://api.github.com/repos/feedhenry/fh-fhc/contents/{+path}","compare_url":"https://api.github.com/repos/feedhenry/fh-fhc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/feedhenry/fh-fhc/merges","archive_url":"https://api.github.com/repos/feedhenry/fh-fhc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/feedhenry/fh-fhc/downloads","issues_url":"https://api.github.com/repos/feedhenry/fh-fhc/issues{/number}","pulls_url":"https://api.github.com/repos/feedhenry/fh-fhc/pulls{/number}","milestones_url":"https://api.github.com/repos/feedhenry/fh-fhc/milestones{/number}","notifications_url":"https://api.github.com/repos/feedhenry/fh-fhc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/feedhenry/fh-fhc/labels{/name}","releases_url":"https://api.github.com/repos/feedhenry/fh-fhc/releases{/id}","deployments_url":"https://api.github.com/repos/feedhenry/fh-fhc/deployments","created_at":"2011-11-25T16:34:58Z","updated_at":"2016-02-14T04:32:25Z","pushed_at":"2016-03-23T15:21:52Z","git_url":"git://github.com/feedhenry/fh-fhc.git","ssh_url":"git@github.com:feedhenry/fh-fhc.git","clone_url":"https://github.com/feedhenry/fh-fhc.git","svn_url":"https://github.com/feedhenry/fh-fhc","homepage":"","size":2313,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":11,"forks":36,"open_issues":11,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/192"},"html":{"href":"https://github.com/feedhenry/fh-fhc/pull/192"},"issue":{"href":"https://api.github.com/repos/feedhenry/fh-fhc/issues/192"},"comments":{"href":"https://api.github.com/repos/feedhenry/fh-fhc/issues/192/comments"},"review_comments":{"href":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/192/comments"},"review_comment":{"href":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/feedhenry/fh-fhc/pulls/192/commits"},"statuses":{"href":"https://api.github.com/repos/feedhenry/fh-fhc/statuses/beed6fe9f5a07f0d42ec0a30b1937a39534af317"}}}}