{"action":"created","comment":{"url":"https://api.github.com/repos/elementary/houston/pulls/comments/62429991","id":62429991,"diff_hunk":"@@ -0,0 +1,44 @@\n+/**\n+ * houston/controller/hook/strongback.js\n+ * Handles all communcation from atc strongback connections\n+ */\n+\n+import atc from '~/houston/service/atc'\n+import Cycle from '~/houston/model/cycle'\n+\n+/**\n+ * Receives data from build\n+ *\n+ * @param {Object} - {\n+ *   {String} arch - architecture to build (amd64)\n+ *   {String} dist - distribution to build (xenial)\n+ *   {Error} error - error while trying to build (only exists on failure to run build)\n+ *   {String} owner - repo owner on github (vocalapp)\n+ *   {String} repo - repo name on github (vocal)\n+ *   {Boolean} success - true if successful build (only exists on build)\n+ *   {String} tag - git tag to checkout\n+ *   {String} version - package version\n+ *   {Array} files - [{\n+ *     {String} name - file name\n+ *     {String} data - file data\n+ *   }]\n+ * }\n+ */\n+atc.on('build:finish', async (data) => {\n+  const build = await Cycle.findOne({\n+    \n+  })\n+\n+  if (data.errors > 0) {\n+    cycle.update({ '_status': 'FAIL' })\n+  } else if (cycle.type === 'RELEASE') {\n+    cycle.build()","path":"houston/controller/hook/strongback.js","position":35,"original_position":35,"commit_id":"04e44385a42878ac8c00944ebd066d2cf7b50d30","original_commit_id":"04e44385a42878ac8c00944ebd066d2cf7b50d30","user":{"login":"fabianthoma","id":1058124,"avatar_url":"https://avatars.githubusercontent.com/u/1058124?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianthoma","html_url":"https://github.com/fabianthoma","followers_url":"https://api.github.com/users/fabianthoma/followers","following_url":"https://api.github.com/users/fabianthoma/following{/other_user}","gists_url":"https://api.github.com/users/fabianthoma/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianthoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianthoma/subscriptions","organizations_url":"https://api.github.com/users/fabianthoma/orgs","repos_url":"https://api.github.com/users/fabianthoma/repos","events_url":"https://api.github.com/users/fabianthoma/events{/privacy}","received_events_url":"https://api.github.com/users/fabianthoma/received_events","type":"User","site_admin":false},"body":"Will fix down the line or in this PR? Cause your PRs all depend on each other, which could make changing this now weird","created_at":"2016-05-08T10:39:17Z","updated_at":"2016-05-08T10:39:17Z","html_url":"https://github.com/elementary/houston/pull/168#discussion_r62429991","pull_request_url":"https://api.github.com/repos/elementary/houston/pulls/168","_links":{"self":{"href":"https://api.github.com/repos/elementary/houston/pulls/comments/62429991"},"html":{"href":"https://github.com/elementary/houston/pull/168#discussion_r62429991"},"pull_request":{"href":"https://api.github.com/repos/elementary/houston/pulls/168"}}},"pull_request":{"url":"https://api.github.com/repos/elementary/houston/pulls/168","id":66963991,"html_url":"https://github.com/elementary/houston/pull/168","diff_url":"https://github.com/elementary/houston/pull/168.diff","patch_url":"https://github.com/elementary/houston/pull/168.patch","issue_url":"https://api.github.com/repos/elementary/houston/issues/168","number":168,"state":"open","locked":false,"title":"created a dockerfile with liftoff","user":{"login":"btkostner","id":3385679,"avatar_url":"https://avatars.githubusercontent.com/u/3385679?v=3","gravatar_id":"","url":"https://api.github.com/users/btkostner","html_url":"https://github.com/btkostner","followers_url":"https://api.github.com/users/btkostner/followers","following_url":"https://api.github.com/users/btkostner/following{/other_user}","gists_url":"https://api.github.com/users/btkostner/gists{/gist_id}","starred_url":"https://api.github.com/users/btkostner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btkostner/subscriptions","organizations_url":"https://api.github.com/users/btkostner/orgs","repos_url":"https://api.github.com/users/btkostner/repos","events_url":"https://api.github.com/users/btkostner/events{/privacy}","received_events_url":"https://api.github.com/users/btkostner/received_events","type":"User","site_admin":false},"body":"the start of strongback\r\n\r\n#### Changes:\r\n- created a `Dockerfile` to install liftoff","created_at":"2016-04-19T05:55:16Z","updated_at":"2016-05-08T10:39:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1e76081e9b0dd0e1f9660fb65b363aaf12c1333","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elementary/houston/pulls/168/commits","review_comments_url":"https://api.github.com/repos/elementary/houston/pulls/168/comments","review_comment_url":"https://api.github.com/repos/elementary/houston/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elementary/houston/issues/168/comments","statuses_url":"https://api.github.com/repos/elementary/houston/statuses/04e44385a42878ac8c00944ebd066d2cf7b50d30","head":{"label":"elementary:strongback-liftoff","ref":"strongback-liftoff","sha":"04e44385a42878ac8c00944ebd066d2cf7b50d30","user":{"login":"elementary","id":1978534,"avatar_url":"https://avatars.githubusercontent.com/u/1978534?v=3","gravatar_id":"","url":"https://api.github.com/users/elementary","html_url":"https://github.com/elementary","followers_url":"https://api.github.com/users/elementary/followers","following_url":"https://api.github.com/users/elementary/following{/other_user}","gists_url":"https://api.github.com/users/elementary/gists{/gist_id}","starred_url":"https://api.github.com/users/elementary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elementary/subscriptions","organizations_url":"https://api.github.com/users/elementary/orgs","repos_url":"https://api.github.com/users/elementary/repos","events_url":"https://api.github.com/users/elementary/events{/privacy}","received_events_url":"https://api.github.com/users/elementary/received_events","type":"Organization","site_admin":false},"repo":{"id":30740615,"name":"houston","full_name":"elementary/houston","owner":{"login":"elementary","id":1978534,"avatar_url":"https://avatars.githubusercontent.com/u/1978534?v=3","gravatar_id":"","url":"https://api.github.com/users/elementary","html_url":"https://github.com/elementary","followers_url":"https://api.github.com/users/elementary/followers","following_url":"https://api.github.com/users/elementary/following{/other_user}","gists_url":"https://api.github.com/users/elementary/gists{/gist_id}","starred_url":"https://api.github.com/users/elementary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elementary/subscriptions","organizations_url":"https://api.github.com/users/elementary/orgs","repos_url":"https://api.github.com/users/elementary/repos","events_url":"https://api.github.com/users/elementary/events{/privacy}","received_events_url":"https://api.github.com/users/elementary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elementary/houston","description":"Backend for AppHub","fork":false,"url":"https://api.github.com/repos/elementary/houston","forks_url":"https://api.github.com/repos/elementary/houston/forks","keys_url":"https://api.github.com/repos/elementary/houston/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elementary/houston/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elementary/houston/teams","hooks_url":"https://api.github.com/repos/elementary/houston/hooks","issue_events_url":"https://api.github.com/repos/elementary/houston/issues/events{/number}","events_url":"https://api.github.com/repos/elementary/houston/events","assignees_url":"https://api.github.com/repos/elementary/houston/assignees{/user}","branches_url":"https://api.github.com/repos/elementary/houston/branches{/branch}","tags_url":"https://api.github.com/repos/elementary/houston/tags","blobs_url":"https://api.github.com/repos/elementary/houston/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elementary/houston/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elementary/houston/git/refs{/sha}","trees_url":"https://api.github.com/repos/elementary/houston/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elementary/houston/statuses/{sha}","languages_url":"https://api.github.com/repos/elementary/houston/languages","stargazers_url":"https://api.github.com/repos/elementary/houston/stargazers","contributors_url":"https://api.github.com/repos/elementary/houston/contributors","subscribers_url":"https://api.github.com/repos/elementary/houston/subscribers","subscription_url":"https://api.github.com/repos/elementary/houston/subscription","commits_url":"https://api.github.com/repos/elementary/houston/commits{/sha}","git_commits_url":"https://api.github.com/repos/elementary/houston/git/commits{/sha}","comments_url":"https://api.github.com/repos/elementary/houston/comments{/number}","issue_comment_url":"https://api.github.com/repos/elementary/houston/issues/comments{/number}","contents_url":"https://api.github.com/repos/elementary/houston/contents/{+path}","compare_url":"https://api.github.com/repos/elementary/houston/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elementary/houston/merges","archive_url":"https://api.github.com/repos/elementary/houston/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elementary/houston/downloads","issues_url":"https://api.github.com/repos/elementary/houston/issues{/number}","pulls_url":"https://api.github.com/repos/elementary/houston/pulls{/number}","milestones_url":"https://api.github.com/repos/elementary/houston/milestones{/number}","notifications_url":"https://api.github.com/repos/elementary/houston/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elementary/houston/labels{/name}","releases_url":"https://api.github.com/repos/elementary/houston/releases{/id}","deployments_url":"https://api.github.com/repos/elementary/houston/deployments","created_at":"2015-02-13T04:39:19Z","updated_at":"2016-04-07T13:23:28Z","pushed_at":"2016-05-07T02:40:16Z","git_url":"git://github.com/elementary/houston.git","ssh_url":"git@github.com:elementary/houston.git","clone_url":"https://github.com/elementary/houston.git","svn_url":"https://github.com/elementary/houston","homepage":"https://houston.elementary.io","size":573,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":27,"forks":2,"open_issues":27,"watchers":19,"default_branch":"master"}},"base":{"label":"elementary:strongback","ref":"strongback","sha":"8f33013edc1f31991831c9790067d7bca588a354","user":{"login":"elementary","id":1978534,"avatar_url":"https://avatars.githubusercontent.com/u/1978534?v=3","gravatar_id":"","url":"https://api.github.com/users/elementary","html_url":"https://github.com/elementary","followers_url":"https://api.github.com/users/elementary/followers","following_url":"https://api.github.com/users/elementary/following{/other_user}","gists_url":"https://api.github.com/users/elementary/gists{/gist_id}","starred_url":"https://api.github.com/users/elementary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elementary/subscriptions","organizations_url":"https://api.github.com/users/elementary/orgs","repos_url":"https://api.github.com/users/elementary/repos","events_url":"https://api.github.com/users/elementary/events{/privacy}","received_events_url":"https://api.github.com/users/elementary/received_events","type":"Organization","site_admin":false},"repo":{"id":30740615,"name":"houston","full_name":"elementary/houston","owner":{"login":"elementary","id":1978534,"avatar_url":"https://avatars.githubusercontent.com/u/1978534?v=3","gravatar_id":"","url":"https://api.github.com/users/elementary","html_url":"https://github.com/elementary","followers_url":"https://api.github.com/users/elementary/followers","following_url":"https://api.github.com/users/elementary/following{/other_user}","gists_url":"https://api.github.com/users/elementary/gists{/gist_id}","starred_url":"https://api.github.com/users/elementary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elementary/subscriptions","organizations_url":"https://api.github.com/users/elementary/orgs","repos_url":"https://api.github.com/users/elementary/repos","events_url":"https://api.github.com/users/elementary/events{/privacy}","received_events_url":"https://api.github.com/users/elementary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elementary/houston","description":"Backend for AppHub","fork":false,"url":"https://api.github.com/repos/elementary/houston","forks_url":"https://api.github.com/repos/elementary/houston/forks","keys_url":"https://api.github.com/repos/elementary/houston/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elementary/houston/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elementary/houston/teams","hooks_url":"https://api.github.com/repos/elementary/houston/hooks","issue_events_url":"https://api.github.com/repos/elementary/houston/issues/events{/number}","events_url":"https://api.github.com/repos/elementary/houston/events","assignees_url":"https://api.github.com/repos/elementary/houston/assignees{/user}","branches_url":"https://api.github.com/repos/elementary/houston/branches{/branch}","tags_url":"https://api.github.com/repos/elementary/houston/tags","blobs_url":"https://api.github.com/repos/elementary/houston/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elementary/houston/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elementary/houston/git/refs{/sha}","trees_url":"https://api.github.com/repos/elementary/houston/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elementary/houston/statuses/{sha}","languages_url":"https://api.github.com/repos/elementary/houston/languages","stargazers_url":"https://api.github.com/repos/elementary/houston/stargazers","contributors_url":"https://api.github.com/repos/elementary/houston/contributors","subscribers_url":"https://api.github.com/repos/elementary/houston/subscribers","subscription_url":"https://api.github.com/repos/elementary/houston/subscription","commits_url":"https://api.github.com/repos/elementary/houston/commits{/sha}","git_commits_url":"https://api.github.com/repos/elementary/houston/git/commits{/sha}","comments_url":"https://api.github.com/repos/elementary/houston/comments{/number}","issue_comment_url":"https://api.github.com/repos/elementary/houston/issues/comments{/number}","contents_url":"https://api.github.com/repos/elementary/houston/contents/{+path}","compare_url":"https://api.github.com/repos/elementary/houston/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elementary/houston/merges","archive_url":"https://api.github.com/repos/elementary/houston/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elementary/houston/downloads","issues_url":"https://api.github.com/repos/elementary/houston/issues{/number}","pulls_url":"https://api.github.com/repos/elementary/houston/pulls{/number}","milestones_url":"https://api.github.com/repos/elementary/houston/milestones{/number}","notifications_url":"https://api.github.com/repos/elementary/houston/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elementary/houston/labels{/name}","releases_url":"https://api.github.com/repos/elementary/houston/releases{/id}","deployments_url":"https://api.github.com/repos/elementary/houston/deployments","created_at":"2015-02-13T04:39:19Z","updated_at":"2016-04-07T13:23:28Z","pushed_at":"2016-05-07T02:40:16Z","git_url":"git://github.com/elementary/houston.git","ssh_url":"git@github.com:elementary/houston.git","clone_url":"https://github.com/elementary/houston.git","svn_url":"https://github.com/elementary/houston","homepage":"https://houston.elementary.io","size":573,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":27,"forks":2,"open_issues":27,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elementary/houston/pulls/168"},"html":{"href":"https://github.com/elementary/houston/pull/168"},"issue":{"href":"https://api.github.com/repos/elementary/houston/issues/168"},"comments":{"href":"https://api.github.com/repos/elementary/houston/issues/168/comments"},"review_comments":{"href":"https://api.github.com/repos/elementary/houston/pulls/168/comments"},"review_comment":{"href":"https://api.github.com/repos/elementary/houston/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elementary/houston/pulls/168/commits"},"statuses":{"href":"https://api.github.com/repos/elementary/houston/statuses/04e44385a42878ac8c00944ebd066d2cf7b50d30"}}}}