{"action":"created","comment":{"url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/comments/201986689","pull_request_review_id":136591827,"id":201986689,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTk4NjY4OQ==","diff_hunk":"@@ -0,0 +1,182 @@\n+package uk.gov.moj.cpp.task.execution;\n+\n+import static java.time.ZonedDateTime.now;\n+import static java.util.Optional.empty;\n+import static java.util.Optional.of;\n+import static java.util.Optional.ofNullable;\n+import static java.util.UUID.randomUUID;\n+import static org.mockito.Matchers.any;\n+import static org.mockito.Matchers.eq;\n+import static org.mockito.Mockito.mock;\n+import static org.mockito.Mockito.never;\n+import static org.mockito.Mockito.verify;\n+import static org.mockito.Mockito.when;\n+import static uk.gov.moj.cpp.jobstore.persistence.JobStatus.NEXT_STEP;\n+import static uk.gov.moj.cpp.jobstore.persistence.JobStatus.PERMANENT_FAILURE;\n+import static uk.gov.moj.cpp.jobstore.persistence.JobStatus.SUCCESSFUL;\n+import static uk.gov.moj.cpp.jobstore.persistence.JobStatus.TEMPORARY_FAILURE;\n+\n+import uk.gov.moj.cpp.jobstore.api.JobService;\n+import uk.gov.moj.cpp.jobstore.persistence.Job;\n+import uk.gov.moj.cpp.task.extension.SampleTask;\n+import uk.gov.moj.cpp.task.extension.TaskRegistry;\n+\n+import java.time.ZonedDateTime;\n+import java.util.UUID;\n+\n+import javax.json.JsonObject;\n+import javax.transaction.UserTransaction;\n+\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.mockito.Mock;\n+import org.mockito.runners.MockitoJUnitRunner;\n+\n+\n+\n+@RunWith(MockitoJUnitRunner.class)\n+public class TaskExecutorTest {\n+\n+\n+    @Mock\n+    private Job job;\n+\n+    @Mock\n+    private TaskRegistry taskRegistry;\n+    @Mock\n+    private JobService jobService;\n+    @Mock\n+    private SampleTask sampleTask;\n+    @Mock\n+    private UserTransaction userTransaction;\n+\n+\n+\n+    @Test\n+    public void shouldUpdateJobViaJobServiceWhenJobStatusIsTemporaryFailure() {\n+        final UUID jobId = randomUUID();\n+        final JsonObject jobData = mock(JsonObject.class);\n+        final ZonedDateTime nextTaskStartTime = now();\n+\n+        when(job.getNextTask()).thenReturn(\"taskName\");\n+        when(taskRegistry.getTask(eq(\"taskName\"))).thenReturn(ofNullable(sampleTask));\n+        when(sampleTask.execute(job)).thenReturn(job);\n+        when(job.getJobStatus()).thenReturn(of(TEMPORARY_FAILURE));\n+        when(job.getJobId()).thenReturn(jobId);\n+        when(job.getJobData()).thenReturn(jobData);\n+        when(job.getNextTask()).thenReturn(\"taskName\");\n+        when(job.getNextTaskStartTime()).thenReturn(nextTaskStartTime);\n+\n+        TaskExecutor taskExecutor = new TaskExecutor(job, taskRegistry, jobService, userTransaction);\n+        taskExecutor.run();\n+\n+        verify(sampleTask).execute(eq(job));\n+        verify(jobService).updateJobTaskData(jobId, jobData);\n+        verify(jobService).updateNextTaskDetails(jobId, \"taskName\", nextTaskStartTime);\n+        verify(jobService).releaseJob(jobId);\n+        verify(jobService, never()).deleteJob(any());\n+\n+    }\n+\n+    @Test\n+    public void shouldDeleteJobViaJobServiceWhenJobStatusIsSuccessful() {\n+        final UUID jobId = randomUUID();\n+        final JsonObject jobData = mock(JsonObject.class);\n+        final ZonedDateTime nextTaskStartTime = now();\n+\n+        when(job.getNextTask()).thenReturn(\"taskName\");\n+        when(taskRegistry.getTask(eq(\"taskName\"))).thenReturn(ofNullable(sampleTask));\n+        when(sampleTask.execute(job)).thenReturn(job);\n+        when(job.getJobStatus()).thenReturn(of(SUCCESSFUL));\n+        when(job.getJobId()).thenReturn(jobId);\n+\n+        TaskExecutor taskExecutor = new TaskExecutor(job, taskRegistry, jobService, userTransaction);\n+        taskExecutor.run();\n+\n+        verify(sampleTask).execute(eq(job));\n+        verify(jobService, never()).updateJobTaskData(any(), any());\n+        verify(jobService, never()).updateNextTaskDetails(any(), any(), any());\n+        verify(jobService, never()).releaseJob(any());\n+        verify(jobService).deleteJob(jobId);\n+\n+    }\n+\n+\n+    @Test\n+    public void shouldDeleteJobViaJobServiceWhenJobStatusIsPermanentFailure() {\n+        final UUID jobId = randomUUID();\n+        final JsonObject jobData = mock(JsonObject.class);\n+        final ZonedDateTime nextTaskStartTime = now();\n+\n+        when(job.getNextTask()).thenReturn(\"taskName\");\n+        when(taskRegistry.getTask(eq(\"taskName\"))).thenReturn(ofNullable(sampleTask));\n+        when(sampleTask.execute(job)).thenReturn(job);\n+        when(job.getJobStatus()).thenReturn(of(PERMANENT_FAILURE));\n+        when(job.getJobId()).thenReturn(jobId);\n+\n+        TaskExecutor taskExecutor = new TaskExecutor(job, taskRegistry, jobService, userTransaction);\n+        taskExecutor.run();\n+\n+        verify(sampleTask).execute(eq(job));\n+        verify(jobService, never()).updateJobTaskData(any(), any());\n+        verify(jobService, never()).updateNextTaskDetails(any(), any(), any());\n+        verify(jobService, never()).releaseJob(any());\n+        verify(jobService).deleteJob(jobId);\n+\n+    }\n+\n+\n+    @Test\n+    public void shouldDeleteJobAndCreateNextJobViaJobServiceWhenJobStatusIsNextStep() {\n+\n+        final UUID jobId = randomUUID();\n+        final JsonObject jobData = mock(JsonObject.class);\n+        final ZonedDateTime nextTaskStartTime = now();\n+\n+        when(job.getNextTask()).thenReturn(\"taskName\");\n+        when(taskRegistry.getTask(eq(\"taskName\"))).thenReturn(ofNullable(sampleTask));\n+        when(sampleTask.execute(job)).thenReturn(job);\n+        when(job.getJobStatus()).thenReturn(of(NEXT_STEP));\n+        when(job.getJobId()).thenReturn(jobId);\n+\n+        TaskExecutor taskExecutor = new TaskExecutor(job, taskRegistry, jobService, userTransaction);","path":"job-executor/src/test/java/uk/gov/moj/cpp/task/execution/TaskExecutorTest.java","position":142,"original_position":142,"commit_id":"cf06663166f6bce713dcdfa2b292dd91758d48ca","original_commit_id":"cf06663166f6bce713dcdfa2b292dd91758d48ca","user":{"login":"DesMarshall01","id":32835741,"node_id":"MDQ6VXNlcjMyODM1NzQx","avatar_url":"https://avatars0.githubusercontent.com/u/32835741?v=4","gravatar_id":"","url":"https://api.github.com/users/DesMarshall01","html_url":"https://github.com/DesMarshall01","followers_url":"https://api.github.com/users/DesMarshall01/followers","following_url":"https://api.github.com/users/DesMarshall01/following{/other_user}","gists_url":"https://api.github.com/users/DesMarshall01/gists{/gist_id}","starred_url":"https://api.github.com/users/DesMarshall01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DesMarshall01/subscriptions","organizations_url":"https://api.github.com/users/DesMarshall01/orgs","repos_url":"https://api.github.com/users/DesMarshall01/repos","events_url":"https://api.github.com/users/DesMarshall01/events{/privacy}","received_events_url":"https://api.github.com/users/DesMarshall01/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2018-07-12T10:31:03Z","updated_at":"2018-07-12T10:31:03Z","html_url":"https://github.com/CJSCommonPlatform/job-manager/pull/1#discussion_r201986689","pull_request_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/comments/201986689"},"html":{"href":"https://github.com/CJSCommonPlatform/job-manager/pull/1#discussion_r201986689"},"pull_request":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1"}},"in_reply_to_id":200941396},"pull_request":{"url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1","id":198074932,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MDc0OTMy","html_url":"https://github.com/CJSCommonPlatform/job-manager/pull/1","diff_url":"https://github.com/CJSCommonPlatform/job-manager/pull/1.diff","patch_url":"https://github.com/CJSCommonPlatform/job-manager/pull/1.patch","issue_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/1","number":1,"state":"open","locked":false,"title":"Add initial code","user":{"login":"DesMarshall01","id":32835741,"node_id":"MDQ6VXNlcjMyODM1NzQx","avatar_url":"https://avatars0.githubusercontent.com/u/32835741?v=4","gravatar_id":"","url":"https://api.github.com/users/DesMarshall01","html_url":"https://github.com/DesMarshall01","followers_url":"https://api.github.com/users/DesMarshall01/followers","following_url":"https://api.github.com/users/DesMarshall01/following{/other_user}","gists_url":"https://api.github.com/users/DesMarshall01/gists{/gist_id}","starred_url":"https://api.github.com/users/DesMarshall01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DesMarshall01/subscriptions","organizations_url":"https://api.github.com/users/DesMarshall01/orgs","repos_url":"https://api.github.com/users/DesMarshall01/repos","events_url":"https://api.github.com/users/DesMarshall01/events{/privacy}","received_events_url":"https://api.github.com/users/DesMarshall01/received_events","type":"User","site_admin":false},"body":"Initial code","created_at":"2018-06-28T15:49:52Z","updated_at":"2018-07-12T10:31:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8edd676b1fe151f4bf131b0f15fcf55c4d48fdc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"skiddykong","id":17156444,"node_id":"MDQ6VXNlcjE3MTU2NDQ0","avatar_url":"https://avatars3.githubusercontent.com/u/17156444?v=4","gravatar_id":"","url":"https://api.github.com/users/skiddykong","html_url":"https://github.com/skiddykong","followers_url":"https://api.github.com/users/skiddykong/followers","following_url":"https://api.github.com/users/skiddykong/following{/other_user}","gists_url":"https://api.github.com/users/skiddykong/gists{/gist_id}","starred_url":"https://api.github.com/users/skiddykong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skiddykong/subscriptions","organizations_url":"https://api.github.com/users/skiddykong/orgs","repos_url":"https://api.github.com/users/skiddykong/repos","events_url":"https://api.github.com/users/skiddykong/events{/privacy}","received_events_url":"https://api.github.com/users/skiddykong/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1/commits","review_comments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1/comments","review_comment_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/1/comments","statuses_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/statuses/cf06663166f6bce713dcdfa2b292dd91758d48ca","head":{"label":"CJSCommonPlatform:migrate_initial_code_from_notificationnotify","ref":"migrate_initial_code_from_notificationnotify","sha":"cf06663166f6bce713dcdfa2b292dd91758d48ca","user":{"login":"CJSCommonPlatform","id":16131145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTMxMTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16131145?v=4","gravatar_id":"","url":"https://api.github.com/users/CJSCommonPlatform","html_url":"https://github.com/CJSCommonPlatform","followers_url":"https://api.github.com/users/CJSCommonPlatform/followers","following_url":"https://api.github.com/users/CJSCommonPlatform/following{/other_user}","gists_url":"https://api.github.com/users/CJSCommonPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/CJSCommonPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJSCommonPlatform/subscriptions","organizations_url":"https://api.github.com/users/CJSCommonPlatform/orgs","repos_url":"https://api.github.com/users/CJSCommonPlatform/repos","events_url":"https://api.github.com/users/CJSCommonPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/CJSCommonPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":138301125,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgzMDExMjU=","name":"job-manager","full_name":"CJSCommonPlatform/job-manager","owner":{"login":"CJSCommonPlatform","id":16131145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTMxMTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16131145?v=4","gravatar_id":"","url":"https://api.github.com/users/CJSCommonPlatform","html_url":"https://github.com/CJSCommonPlatform","followers_url":"https://api.github.com/users/CJSCommonPlatform/followers","following_url":"https://api.github.com/users/CJSCommonPlatform/following{/other_user}","gists_url":"https://api.github.com/users/CJSCommonPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/CJSCommonPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJSCommonPlatform/subscriptions","organizations_url":"https://api.github.com/users/CJSCommonPlatform/orgs","repos_url":"https://api.github.com/users/CJSCommonPlatform/repos","events_url":"https://api.github.com/users/CJSCommonPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/CJSCommonPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CJSCommonPlatform/job-manager","description":"A stateful multithreaded job and task executor ","fork":false,"url":"https://api.github.com/repos/CJSCommonPlatform/job-manager","forks_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/forks","keys_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/teams","hooks_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/hooks","issue_events_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/events{/number}","events_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/events","assignees_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/assignees{/user}","branches_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/branches{/branch}","tags_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/tags","blobs_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/languages","stargazers_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/stargazers","contributors_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/contributors","subscribers_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/subscribers","subscription_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/subscription","commits_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/contents/{+path}","compare_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/merges","archive_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/downloads","issues_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues{/number}","pulls_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/labels{/name}","releases_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/releases{/id}","deployments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/deployments","created_at":"2018-06-22T12:37:33Z","updated_at":"2018-06-28T15:35:19Z","pushed_at":"2018-07-04T14:30:19Z","git_url":"git://github.com/CJSCommonPlatform/job-manager.git","ssh_url":"git@github.com:CJSCommonPlatform/job-manager.git","clone_url":"https://github.com/CJSCommonPlatform/job-manager.git","svn_url":"https://github.com/CJSCommonPlatform/job-manager","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":null,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CJSCommonPlatform:master","ref":"master","sha":"0e52838dada884132c37963415fa8af8965dcfe0","user":{"login":"CJSCommonPlatform","id":16131145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTMxMTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16131145?v=4","gravatar_id":"","url":"https://api.github.com/users/CJSCommonPlatform","html_url":"https://github.com/CJSCommonPlatform","followers_url":"https://api.github.com/users/CJSCommonPlatform/followers","following_url":"https://api.github.com/users/CJSCommonPlatform/following{/other_user}","gists_url":"https://api.github.com/users/CJSCommonPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/CJSCommonPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJSCommonPlatform/subscriptions","organizations_url":"https://api.github.com/users/CJSCommonPlatform/orgs","repos_url":"https://api.github.com/users/CJSCommonPlatform/repos","events_url":"https://api.github.com/users/CJSCommonPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/CJSCommonPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":138301125,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgzMDExMjU=","name":"job-manager","full_name":"CJSCommonPlatform/job-manager","owner":{"login":"CJSCommonPlatform","id":16131145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTMxMTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16131145?v=4","gravatar_id":"","url":"https://api.github.com/users/CJSCommonPlatform","html_url":"https://github.com/CJSCommonPlatform","followers_url":"https://api.github.com/users/CJSCommonPlatform/followers","following_url":"https://api.github.com/users/CJSCommonPlatform/following{/other_user}","gists_url":"https://api.github.com/users/CJSCommonPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/CJSCommonPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJSCommonPlatform/subscriptions","organizations_url":"https://api.github.com/users/CJSCommonPlatform/orgs","repos_url":"https://api.github.com/users/CJSCommonPlatform/repos","events_url":"https://api.github.com/users/CJSCommonPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/CJSCommonPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CJSCommonPlatform/job-manager","description":"A stateful multithreaded job and task executor ","fork":false,"url":"https://api.github.com/repos/CJSCommonPlatform/job-manager","forks_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/forks","keys_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/teams","hooks_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/hooks","issue_events_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/events{/number}","events_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/events","assignees_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/assignees{/user}","branches_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/branches{/branch}","tags_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/tags","blobs_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/languages","stargazers_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/stargazers","contributors_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/contributors","subscribers_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/subscribers","subscription_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/subscription","commits_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/contents/{+path}","compare_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/merges","archive_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/downloads","issues_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues{/number}","pulls_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/labels{/name}","releases_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/releases{/id}","deployments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/deployments","created_at":"2018-06-22T12:37:33Z","updated_at":"2018-06-28T15:35:19Z","pushed_at":"2018-07-04T14:30:19Z","git_url":"git://github.com/CJSCommonPlatform/job-manager.git","ssh_url":"git@github.com:CJSCommonPlatform/job-manager.git","clone_url":"https://github.com/CJSCommonPlatform/job-manager.git","svn_url":"https://github.com/CJSCommonPlatform/job-manager","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":null,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1"},"html":{"href":"https://github.com/CJSCommonPlatform/job-manager/pull/1"},"issue":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/1"},"comments":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/statuses/cf06663166f6bce713dcdfa2b292dd91758d48ca"}},"author_association":"NONE"}}
{"actor":{"display_login":"DesMarshall01"}}