{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/comments/32207952","id":32207952,"diff_hunk":"@@ -62,12 +99,19 @@\n         stub_request(:get, \"https://docs.google.com/spreadsheet/pub?gid=testing_gid&key=testing_key&output=csv&single=true\").\n           with(headers: {'Accept'=>'text/csv', 'Host'=>'docs.google.com:443'}).\n           to_return(status: 200, body: empty_values_body, headers: {})\n+        today = Date.today\n+        schedule_ids.each do|sid|\n+          stub_request(:get, \"https://moj.pagerduty.com/api/v1/schedules/#{sid}/users?since=#{today.strftime('%FT%TZ')}&until=#{(today + 1).strftime('%FT%TZ')}\").\n+              to_return(status: 200, body: ir_empty, headers: {})\n+        end\n+        stub_request(:get, \"https://moj.pagerduty.com/api/v1/users/XXXXXX/contact_methods\").","path":"spec/services/whos_on_duty_spec.rb","position":70,"original_position":70,"commit_id":"a8e7053bee2b9bfa19f84be377d807d49fd4d9b8","original_commit_id":"a8e7053bee2b9bfa19f84be377d807d49fd4d9b8","user":{"login":"andyhd","id":35194,"avatar_url":"https://avatars.githubusercontent.com/u/35194?v=3","gravatar_id":"","url":"https://api.github.com/users/andyhd","html_url":"https://github.com/andyhd","followers_url":"https://api.github.com/users/andyhd/followers","following_url":"https://api.github.com/users/andyhd/following{/other_user}","gists_url":"https://api.github.com/users/andyhd/gists{/gist_id}","starred_url":"https://api.github.com/users/andyhd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyhd/subscriptions","organizations_url":"https://api.github.com/users/andyhd/orgs","repos_url":"https://api.github.com/users/andyhd/repos","events_url":"https://api.github.com/users/andyhd/events{/privacy}","received_events_url":"https://api.github.com/users/andyhd/received_events","type":"User","site_admin":false},"body":"There's a bit of repetition here, with the URL.","created_at":"2015-06-11T10:29:04Z","updated_at":"2015-06-11T10:29:04Z","html_url":"https://github.com/ministryofjustice/2nd-line-support/pull/39#discussion_r32207952","pull_request_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/comments/32207952"},"html":{"href":"https://github.com/ministryofjustice/2nd-line-support/pull/39#discussion_r32207952"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/39","id":37249293,"html_url":"https://github.com/ministryofjustice/2nd-line-support/pull/39","diff_url":"https://github.com/ministryofjustice/2nd-line-support/pull/39.diff","patch_url":"https://github.com/ministryofjustice/2nd-line-support/pull/39.patch","issue_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/39","number":39,"state":"open","locked":false,"title":"get IRM from pagerduty","user":{"login":"s-block","id":3502157,"avatar_url":"https://avatars.githubusercontent.com/u/3502157?v=3","gravatar_id":"","url":"https://api.github.com/users/s-block","html_url":"https://github.com/s-block","followers_url":"https://api.github.com/users/s-block/followers","following_url":"https://api.github.com/users/s-block/following{/other_user}","gists_url":"https://api.github.com/users/s-block/gists{/gist_id}","starred_url":"https://api.github.com/users/s-block/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-block/subscriptions","organizations_url":"https://api.github.com/users/s-block/orgs","repos_url":"https://api.github.com/users/s-block/repos","events_url":"https://api.github.com/users/s-block/events{/privacy}","received_events_url":"https://api.github.com/users/s-block/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-09T12:49:48Z","updated_at":"2015-06-11T10:29:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40ad0b629af2ef03345a8cc80cac04904d584629","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/39/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/39/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/39/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/statuses/a8e7053bee2b9bfa19f84be377d807d49fd4d9b8","head":{"label":"ministryofjustice:irm-from-pagerduty","ref":"irm-from-pagerduty","sha":"a8e7053bee2b9bfa19f84be377d807d49fd4d9b8","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.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":31538120,"name":"2nd-line-support","full_name":"ministryofjustice/2nd-line-support","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.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/2nd-line-support","description":"2nd Line Support Monitoring App ","fork":false,"url":"https://api.github.com/repos/ministryofjustice/2nd-line-support","forks_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/forks","keys_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/events","assignees_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/merges","archive_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/releases{/id}","created_at":"2015-03-02T11:56:23Z","updated_at":"2015-05-01T15:19:06Z","pushed_at":"2015-06-11T09:36:23Z","git_url":"git://github.com/ministryofjustice/2nd-line-support.git","ssh_url":"git@github.com:ministryofjustice/2nd-line-support.git","clone_url":"https://github.com/ministryofjustice/2nd-line-support.git","svn_url":"https://github.com/ministryofjustice/2nd-line-support","homepage":null,"size":1097,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"1bf815ed44356638ef2ebf6b52f2982afd314c22","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.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":31538120,"name":"2nd-line-support","full_name":"ministryofjustice/2nd-line-support","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.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/2nd-line-support","description":"2nd Line Support Monitoring App ","fork":false,"url":"https://api.github.com/repos/ministryofjustice/2nd-line-support","forks_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/forks","keys_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/events","assignees_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/merges","archive_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/releases{/id}","created_at":"2015-03-02T11:56:23Z","updated_at":"2015-05-01T15:19:06Z","pushed_at":"2015-06-11T09:36:23Z","git_url":"git://github.com/ministryofjustice/2nd-line-support.git","ssh_url":"git@github.com:ministryofjustice/2nd-line-support.git","clone_url":"https://github.com/ministryofjustice/2nd-line-support.git","svn_url":"https://github.com/ministryofjustice/2nd-line-support","homepage":null,"size":1097,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/39"},"html":{"href":"https://github.com/ministryofjustice/2nd-line-support/pull/39"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/39"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/statuses/a8e7053bee2b9bfa19f84be377d807d49fd4d9b8"}}}}