{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/comments/120114682","pull_request_review_id":42046355,"id":120114682,"diff_hunk":"@@ -0,0 +1,27 @@\n+const expect = require('chai').expect\n+const knexConfig = require('../../../../knexfile').development\n+const knex = require('knex')(knexConfig)\n+const config = require('../../../../config')\n+const insertWorkloadOwner = require('../../../../app/services/data/insert-workload-owner')\n+const WorkloadOwner = require('wmt-probation-rules').Team","path":"test/integration/services/data/test-insert-workload-owner.js","position":6,"original_position":6,"commit_id":"89bbb6ef90305748e1fa9d04d88ce9642c922a40","original_commit_id":"89bbb6ef90305748e1fa9d04d88ce9642c922a40","user":{"login":"andrew-js-wright","id":2773538,"avatar_url":"https://avatars2.githubusercontent.com/u/2773538?v=3","gravatar_id":"","url":"https://api.github.com/users/andrew-js-wright","html_url":"https://github.com/andrew-js-wright","followers_url":"https://api.github.com/users/andrew-js-wright/followers","following_url":"https://api.github.com/users/andrew-js-wright/following{/other_user}","gists_url":"https://api.github.com/users/andrew-js-wright/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-js-wright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-js-wright/subscriptions","organizations_url":"https://api.github.com/users/andrew-js-wright/orgs","repos_url":"https://api.github.com/users/andrew-js-wright/repos","events_url":"https://api.github.com/users/andrew-js-wright/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-js-wright/received_events","type":"User","site_admin":false},"body":"Typo `Team` -> `WorkloadOwner`.","created_at":"2017-06-05T14:03:51Z","updated_at":"2017-06-05T14:38:31Z","html_url":"https://github.com/ministryofjustice/wmt-worker/pull/27#discussion_r120114682","pull_request_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/comments/120114682"},"html":{"href":"https://github.com/ministryofjustice/wmt-worker/pull/27#discussion_r120114682"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/27","id":123049921,"html_url":"https://github.com/ministryofjustice/wmt-worker/pull/27","diff_url":"https://github.com/ministryofjustice/wmt-worker/pull/27.diff","patch_url":"https://github.com/ministryofjustice/wmt-worker/pull/27.patch","issue_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/issues/27","number":27,"state":"open","locked":false,"title":"Feature/create workload task","user":{"login":"scoch","id":5822098,"avatar_url":"https://avatars0.githubusercontent.com/u/5822098?v=3","gravatar_id":"","url":"https://api.github.com/users/scoch","html_url":"https://github.com/scoch","followers_url":"https://api.github.com/users/scoch/followers","following_url":"https://api.github.com/users/scoch/following{/other_user}","gists_url":"https://api.github.com/users/scoch/gists{/gist_id}","starred_url":"https://api.github.com/users/scoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoch/subscriptions","organizations_url":"https://api.github.com/users/scoch/orgs","repos_url":"https://api.github.com/users/scoch/repos","events_url":"https://api.github.com/users/scoch/events{/privacy}","received_events_url":"https://api.github.com/users/scoch/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-30T13:27:45Z","updated_at":"2017-06-05T14:38:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c56843f4ebe31fa8355bbe97a1840fa460aa2fd1","assignee":{"login":"scoch","id":5822098,"avatar_url":"https://avatars0.githubusercontent.com/u/5822098?v=3","gravatar_id":"","url":"https://api.github.com/users/scoch","html_url":"https://github.com/scoch","followers_url":"https://api.github.com/users/scoch/followers","following_url":"https://api.github.com/users/scoch/following{/other_user}","gists_url":"https://api.github.com/users/scoch/gists{/gist_id}","starred_url":"https://api.github.com/users/scoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoch/subscriptions","organizations_url":"https://api.github.com/users/scoch/orgs","repos_url":"https://api.github.com/users/scoch/repos","events_url":"https://api.github.com/users/scoch/events{/privacy}","received_events_url":"https://api.github.com/users/scoch/received_events","type":"User","site_admin":false},"assignees":[{"login":"scoch","id":5822098,"avatar_url":"https://avatars0.githubusercontent.com/u/5822098?v=3","gravatar_id":"","url":"https://api.github.com/users/scoch","html_url":"https://github.com/scoch","followers_url":"https://api.github.com/users/scoch/followers","following_url":"https://api.github.com/users/scoch/following{/other_user}","gists_url":"https://api.github.com/users/scoch/gists{/gist_id}","starred_url":"https://api.github.com/users/scoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoch/subscriptions","organizations_url":"https://api.github.com/users/scoch/orgs","repos_url":"https://api.github.com/users/scoch/repos","events_url":"https://api.github.com/users/scoch/events{/privacy}","received_events_url":"https://api.github.com/users/scoch/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/27/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/27/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/issues/27/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/statuses/89bbb6ef90305748e1fa9d04d88ce9642c922a40","head":{"label":"ministryofjustice:feature/create-workload-task","ref":"feature/create-workload-task","sha":"89bbb6ef90305748e1fa9d04d88ce9642c922a40","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars0.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":86353532,"name":"wmt-worker","full_name":"ministryofjustice/wmt-worker","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars0.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/wmt-worker","description":null,"fork":false,"url":"https://api.github.com/repos/ministryofjustice/wmt-worker","forks_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/forks","keys_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/events","assignees_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/merges","archive_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/deployments","created_at":"2017-03-27T15:39:47Z","updated_at":"2017-04-05T09:03:13Z","pushed_at":"2017-06-05T08:02:55Z","git_url":"git://github.com/ministryofjustice/wmt-worker.git","ssh_url":"git@github.com:ministryofjustice/wmt-worker.git","clone_url":"https://github.com/ministryofjustice/wmt-worker.git","svn_url":"https://github.com/ministryofjustice/wmt-worker","homepage":null,"size":104,"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,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ministryofjustice:feature/WMT-474","ref":"feature/WMT-474","sha":"9915a33dbe318268ba088a41f7da04c84509acad","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars0.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":86353532,"name":"wmt-worker","full_name":"ministryofjustice/wmt-worker","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars0.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/wmt-worker","description":null,"fork":false,"url":"https://api.github.com/repos/ministryofjustice/wmt-worker","forks_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/forks","keys_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/events","assignees_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/merges","archive_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/wmt-worker/deployments","created_at":"2017-03-27T15:39:47Z","updated_at":"2017-04-05T09:03:13Z","pushed_at":"2017-06-05T08:02:55Z","git_url":"git://github.com/ministryofjustice/wmt-worker.git","ssh_url":"git@github.com:ministryofjustice/wmt-worker.git","clone_url":"https://github.com/ministryofjustice/wmt-worker.git","svn_url":"https://github.com/ministryofjustice/wmt-worker","homepage":null,"size":104,"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,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/27"},"html":{"href":"https://github.com/ministryofjustice/wmt-worker/pull/27"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/wmt-worker/issues/27"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/wmt-worker/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/wmt-worker/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/wmt-worker/statuses/89bbb6ef90305748e1fa9d04d88ce9642c922a40"}}}}
{"actor":{"display_login":"andrew-js-wright"}}