{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/comments/39147961","id":39147961,"diff_hunk":"@@ -0,0 +1,21 @@\n+require 'spec_helper'\n+require 'support/request_handlers'\n+\n+shared_examples \"stubbed api requests\" do\n+  include RequestHandlers\n+\n+  let(:csv_dir)       { File.dirname(__FILE__)                                            }\n+  let(:float_json)    { File.read(csv_dir + '/fixtures/float_tasks_api_response.json')    }\n+  let(:csv_new_body)  { File.read(csv_dir + '/fixtures/googledocs_schedule_new_body.csv') }\n+  let(:incidents)     { \"{\\\"incidents\\\":[]}\"                                              }","path":"spec/shared_examples_of_stubbed_api_requests.rb","position":10,"original_position":10,"commit_id":"c2a74e2a1bd5912d53f34ec304c7ac744c80d18a","original_commit_id":"c2a74e2a1bd5912d53f34ec304c7ac744c80d18a","user":{"login":"mattpep","id":1692709,"avatar_url":"https://avatars.githubusercontent.com/u/1692709?v=3","gravatar_id":"","url":"https://api.github.com/users/mattpep","html_url":"https://github.com/mattpep","followers_url":"https://api.github.com/users/mattpep/followers","following_url":"https://api.github.com/users/mattpep/following{/other_user}","gists_url":"https://api.github.com/users/mattpep/gists{/gist_id}","starred_url":"https://api.github.com/users/mattpep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattpep/subscriptions","organizations_url":"https://api.github.com/users/mattpep/orgs","repos_url":"https://api.github.com/users/mattpep/repos","events_url":"https://api.github.com/users/mattpep/events{/privacy}","received_events_url":"https://api.github.com/users/mattpep/received_events","type":"User","site_admin":false},"body":"For uninterpolated JSON, use single quotes to prevent having to escape all of the double quotes.","created_at":"2015-09-10T11:07:27Z","updated_at":"2015-09-10T11:07:27Z","html_url":"https://github.com/ministryofjustice/2nd-line-support/pull/71#discussion_r39147961","pull_request_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/comments/39147961"},"html":{"href":"https://github.com/ministryofjustice/2nd-line-support/pull/71#discussion_r39147961"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/71","id":44565194,"html_url":"https://github.com/ministryofjustice/2nd-line-support/pull/71","diff_url":"https://github.com/ministryofjustice/2nd-line-support/pull/71.diff","patch_url":"https://github.com/ministryofjustice/2nd-line-support/pull/71.patch","issue_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/71","number":71,"state":"open","locked":false,"title":"Fetch in hours schedule from flow instead of sheets","user":{"login":"tatyree","id":20921,"avatar_url":"https://avatars.githubusercontent.com/u/20921?v=3","gravatar_id":"","url":"https://api.github.com/users/tatyree","html_url":"https://github.com/tatyree","followers_url":"https://api.github.com/users/tatyree/followers","following_url":"https://api.github.com/users/tatyree/following{/other_user}","gists_url":"https://api.github.com/users/tatyree/gists{/gist_id}","starred_url":"https://api.github.com/users/tatyree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatyree/subscriptions","organizations_url":"https://api.github.com/users/tatyree/orgs","repos_url":"https://api.github.com/users/tatyree/repos","events_url":"https://api.github.com/users/tatyree/events{/privacy}","received_events_url":"https://api.github.com/users/tatyree/received_events","type":"User","site_admin":false},"body":"Enable fetching the in hours rota from float\r\n\r\nThis allows us to replace the google sheet that we currently use for the rota with the floatchedule.com scheduling tool.","created_at":"2015-09-09T15:34:16Z","updated_at":"2015-09-10T11:07:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59080f406f86bee6e9aa9e52a77f9e0782694515","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/71/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/71/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/71/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/2nd-line-support/statuses/c2a74e2a1bd5912d53f34ec304c7ac744c80d18a","head":{"label":"ministryofjustice:fetch-in-hours-schedule-from-flow-instead-of-sheets","ref":"fetch-in-hours-schedule-from-flow-instead-of-sheets","sha":"c2a74e2a1bd5912d53f34ec304c7ac744c80d18a","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-09-09T15:34:16Z","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":1235,"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":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"16ad9f1d8ff29516709ed7d2194f61e6467919bd","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-09-09T15:34:16Z","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":1235,"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":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/71"},"html":{"href":"https://github.com/ministryofjustice/2nd-line-support/pull/71"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/71"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/pulls/71/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/71/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/2nd-line-support/statuses/c2a74e2a1bd5912d53f34ec304c7ac744c80d18a"}}}}