{"action":"created","comment":{"url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/comments/202462296","pull_request_review_id":137176845,"id":202462296,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjQ2MjI5Ng==","diff_hunk":"@@ -0,0 +1,78 @@\n+const index = require('..');\n+const assume = require('assume');\n+const thenify = require('tinythen');\n+const request = require('request-promise-native');\n+const StatusHandler = require('../status-handler');\n+const fixtures = require('./fixtures');\n+const { address } = require('./util');\n+const rip = require('rip-out');\n+\n+\n+describe('routes', function () {\n+  describe('integration', function () {\n+    this.timeout(6E4);\n+    let status;\n+    let app;\n+    let spec;\n+\n+    before(function (done) {\n+      index.start({ auth: false }, (err, instance) => {\n+        app = instance;\n+        status = new StatusHandler({\n+          models: app.models\n+        });\n+        spec = status._transform(fixtures.singleEvent);\n+        done(err);\n+      });\n+    });\n+\n+    after(async function () {\n+      if (!app) return;\n+      await app.models.drop();\n+      await thenify(app, 'close');\n+    });\n+\n+    beforeEach(async () => {\n+      if (!app) return;\n+      await status.event(fixtures.singleEvent);\n+      await status.queued(fixtures.singleQueued);\n+      await status.complete(fixtures.singleComplete);","path":"test/routes.test.js","position":39,"original_position":39,"commit_id":"e118441aae9c457da3472c832895c2548c4a27a7","original_commit_id":"e118441aae9c457da3472c832895c2548c4a27a7","user":{"login":"jcrugzz","id":592149,"node_id":"MDQ6VXNlcjU5MjE0OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/592149?v=4","gravatar_id":"","url":"https://api.github.com/users/jcrugzz","html_url":"https://github.com/jcrugzz","followers_url":"https://api.github.com/users/jcrugzz/followers","following_url":"https://api.github.com/users/jcrugzz/following{/other_user}","gists_url":"https://api.github.com/users/jcrugzz/gists{/gist_id}","starred_url":"https://api.github.com/users/jcrugzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcrugzz/subscriptions","organizations_url":"https://api.github.com/users/jcrugzz/orgs","repos_url":"https://api.github.com/users/jcrugzz/repos","events_url":"https://api.github.com/users/jcrugzz/events{/privacy}","received_events_url":"https://api.github.com/users/jcrugzz/received_events","type":"User","site_admin":false},"body":"@indexzero understood, i can fetch from the route at these different parts of the lifecycle","created_at":"2018-07-13T20:20:19Z","updated_at":"2018-07-13T20:20:19Z","html_url":"https://github.com/godaddy/warehouse.ai-status-api/pull/4#discussion_r202462296","pull_request_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/4","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/comments/202462296"},"html":{"href":"https://github.com/godaddy/warehouse.ai-status-api/pull/4#discussion_r202462296"},"pull_request":{"href":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/4"}},"in_reply_to_id":202452728},"pull_request":{"url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/4","id":201171372,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMTcxMzcy","html_url":"https://github.com/godaddy/warehouse.ai-status-api/pull/4","diff_url":"https://github.com/godaddy/warehouse.ai-status-api/pull/4.diff","patch_url":"https://github.com/godaddy/warehouse.ai-status-api/pull/4.patch","issue_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/issues/4","number":4,"state":"open","locked":false,"title":"Routes","user":{"login":"jcrugzz","id":592149,"node_id":"MDQ6VXNlcjU5MjE0OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/592149?v=4","gravatar_id":"","url":"https://api.github.com/users/jcrugzz","html_url":"https://github.com/jcrugzz","followers_url":"https://api.github.com/users/jcrugzz/followers","following_url":"https://api.github.com/users/jcrugzz/following{/other_user}","gists_url":"https://api.github.com/users/jcrugzz/gists{/gist_id}","starred_url":"https://api.github.com/users/jcrugzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcrugzz/subscriptions","organizations_url":"https://api.github.com/users/jcrugzz/orgs","repos_url":"https://api.github.com/users/jcrugzz/repos","events_url":"https://api.github.com/users/jcrugzz/events{/privacy}","received_events_url":"https://api.github.com/users/jcrugzz/received_events","type":"User","site_admin":false},"body":"Adds \r\n`/status`\r\n`/status-events`\r\n`/progress`\r\n\r\nroutes.","created_at":"2018-07-13T02:21:23Z","updated_at":"2018-07-13T20:20:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cdcf5bc884a797f4e22434d657e43771fb128ede","assignee":null,"assignees":[],"requested_reviewers":[{"login":"bmeck","id":234659,"node_id":"MDQ6VXNlcjIzNDY1OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/234659?v=4","gravatar_id":"","url":"https://api.github.com/users/bmeck","html_url":"https://github.com/bmeck","followers_url":"https://api.github.com/users/bmeck/followers","following_url":"https://api.github.com/users/bmeck/following{/other_user}","gists_url":"https://api.github.com/users/bmeck/gists{/gist_id}","starred_url":"https://api.github.com/users/bmeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmeck/subscriptions","organizations_url":"https://api.github.com/users/bmeck/orgs","repos_url":"https://api.github.com/users/bmeck/repos","events_url":"https://api.github.com/users/bmeck/events{/privacy}","received_events_url":"https://api.github.com/users/bmeck/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/4/commits","review_comments_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/4/comments","review_comment_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/issues/4/comments","statuses_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/statuses/e118441aae9c457da3472c832895c2548c4a27a7","head":{"label":"godaddy:routes","ref":"routes","sha":"e118441aae9c457da3472c832895c2548c4a27a7","user":{"login":"godaddy","id":1406546,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MDY1NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/1406546?v=4","gravatar_id":"","url":"https://api.github.com/users/godaddy","html_url":"https://github.com/godaddy","followers_url":"https://api.github.com/users/godaddy/followers","following_url":"https://api.github.com/users/godaddy/following{/other_user}","gists_url":"https://api.github.com/users/godaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/godaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godaddy/subscriptions","organizations_url":"https://api.github.com/users/godaddy/orgs","repos_url":"https://api.github.com/users/godaddy/repos","events_url":"https://api.github.com/users/godaddy/events{/privacy}","received_events_url":"https://api.github.com/users/godaddy/received_events","type":"Organization","site_admin":false},"repo":{"id":136257989,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYyNTc5ODk=","name":"warehouse.ai-status-api","full_name":"godaddy/warehouse.ai-status-api","owner":{"login":"godaddy","id":1406546,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MDY1NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/1406546?v=4","gravatar_id":"","url":"https://api.github.com/users/godaddy","html_url":"https://github.com/godaddy","followers_url":"https://api.github.com/users/godaddy/followers","following_url":"https://api.github.com/users/godaddy/following{/other_user}","gists_url":"https://api.github.com/users/godaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/godaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godaddy/subscriptions","organizations_url":"https://api.github.com/users/godaddy/orgs","repos_url":"https://api.github.com/users/godaddy/repos","events_url":"https://api.github.com/users/godaddy/events{/privacy}","received_events_url":"https://api.github.com/users/godaddy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/godaddy/warehouse.ai-status-api","description":"status api for the warehouse.ai system","fork":false,"url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api","forks_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/forks","keys_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/teams","hooks_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/hooks","issue_events_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/issues/events{/number}","events_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/events","assignees_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/assignees{/user}","branches_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/branches{/branch}","tags_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/tags","blobs_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/statuses/{sha}","languages_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/languages","stargazers_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/stargazers","contributors_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/contributors","subscribers_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/subscribers","subscription_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/subscription","commits_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/contents/{+path}","compare_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/merges","archive_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/downloads","issues_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/issues{/number}","pulls_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls{/number}","milestones_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/milestones{/number}","notifications_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/labels{/name}","releases_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/releases{/id}","deployments_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/deployments","created_at":"2018-06-06T02:04:28Z","updated_at":"2018-07-09T14:52:51Z","pushed_at":"2018-07-13T02:21:24Z","git_url":"git://github.com/godaddy/warehouse.ai-status-api.git","ssh_url":"git@github.com:godaddy/warehouse.ai-status-api.git","clone_url":"https://github.com/godaddy/warehouse.ai-status-api.git","svn_url":"https://github.com/godaddy/warehouse.ai-status-api","homepage":null,"size":165,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"godaddy:master","ref":"master","sha":"d8a626d46db4a956634628dffbf20498c903a440","user":{"login":"godaddy","id":1406546,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MDY1NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/1406546?v=4","gravatar_id":"","url":"https://api.github.com/users/godaddy","html_url":"https://github.com/godaddy","followers_url":"https://api.github.com/users/godaddy/followers","following_url":"https://api.github.com/users/godaddy/following{/other_user}","gists_url":"https://api.github.com/users/godaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/godaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godaddy/subscriptions","organizations_url":"https://api.github.com/users/godaddy/orgs","repos_url":"https://api.github.com/users/godaddy/repos","events_url":"https://api.github.com/users/godaddy/events{/privacy}","received_events_url":"https://api.github.com/users/godaddy/received_events","type":"Organization","site_admin":false},"repo":{"id":136257989,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYyNTc5ODk=","name":"warehouse.ai-status-api","full_name":"godaddy/warehouse.ai-status-api","owner":{"login":"godaddy","id":1406546,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MDY1NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/1406546?v=4","gravatar_id":"","url":"https://api.github.com/users/godaddy","html_url":"https://github.com/godaddy","followers_url":"https://api.github.com/users/godaddy/followers","following_url":"https://api.github.com/users/godaddy/following{/other_user}","gists_url":"https://api.github.com/users/godaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/godaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godaddy/subscriptions","organizations_url":"https://api.github.com/users/godaddy/orgs","repos_url":"https://api.github.com/users/godaddy/repos","events_url":"https://api.github.com/users/godaddy/events{/privacy}","received_events_url":"https://api.github.com/users/godaddy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/godaddy/warehouse.ai-status-api","description":"status api for the warehouse.ai system","fork":false,"url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api","forks_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/forks","keys_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/teams","hooks_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/hooks","issue_events_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/issues/events{/number}","events_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/events","assignees_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/assignees{/user}","branches_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/branches{/branch}","tags_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/tags","blobs_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/statuses/{sha}","languages_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/languages","stargazers_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/stargazers","contributors_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/contributors","subscribers_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/subscribers","subscription_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/subscription","commits_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/contents/{+path}","compare_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/merges","archive_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/downloads","issues_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/issues{/number}","pulls_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls{/number}","milestones_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/milestones{/number}","notifications_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/labels{/name}","releases_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/releases{/id}","deployments_url":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/deployments","created_at":"2018-06-06T02:04:28Z","updated_at":"2018-07-09T14:52:51Z","pushed_at":"2018-07-13T02:21:24Z","git_url":"git://github.com/godaddy/warehouse.ai-status-api.git","ssh_url":"git@github.com:godaddy/warehouse.ai-status-api.git","clone_url":"https://github.com/godaddy/warehouse.ai-status-api.git","svn_url":"https://github.com/godaddy/warehouse.ai-status-api","homepage":null,"size":165,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/4"},"html":{"href":"https://github.com/godaddy/warehouse.ai-status-api/pull/4"},"issue":{"href":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/issues/4"},"comments":{"href":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/godaddy/warehouse.ai-status-api/statuses/e118441aae9c457da3472c832895c2548c4a27a7"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"jcrugzz"}}