{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/comments/30235339","id":30235339,"diff_hunk":"@@ -1,4 +1,6 @@\n class Shift < ActiveRecord::Base\n+  store_accessor :allocation_requirements_per_weekday, Date::DAYS_INTO_WEEK.keys","path":"app/models/shift.rb","position":2,"original_position":2,"commit_id":"3a7227563a5c13ec63f210a6d000bc9489d2e84d","original_commit_id":"3a7227563a5c13ec63f210a6d000bc9489d2e84d","user":{"login":"chriscarter90","id":1398210,"avatar_url":"https://avatars.githubusercontent.com/u/1398210?v=3","gravatar_id":"","url":"https://api.github.com/users/chriscarter90","html_url":"https://github.com/chriscarter90","followers_url":"https://api.github.com/users/chriscarter90/followers","following_url":"https://api.github.com/users/chriscarter90/following{/other_user}","gists_url":"https://api.github.com/users/chriscarter90/gists{/gist_id}","starred_url":"https://api.github.com/users/chriscarter90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriscarter90/subscriptions","organizations_url":"https://api.github.com/users/chriscarter90/orgs","repos_url":"https://api.github.com/users/chriscarter90/repos","events_url":"https://api.github.com/users/chriscarter90/events{/privacy}","received_events_url":"https://api.github.com/users/chriscarter90/received_events","type":"User","site_admin":false},"body":"Nifty. :+1:","created_at":"2015-05-13T14:26:18Z","updated_at":"2015-05-13T14:26:18Z","html_url":"https://github.com/ministryofjustice/defence-request-service-rota/pull/48#discussion_r30235339","pull_request_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/comments/30235339"},"html":{"href":"https://github.com/ministryofjustice/defence-request-service-rota/pull/48#discussion_r30235339"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/48","id":35327123,"html_url":"https://github.com/ministryofjustice/defence-request-service-rota/pull/48","diff_url":"https://github.com/ministryofjustice/defence-request-service-rota/pull/48.diff","patch_url":"https://github.com/ministryofjustice/defence-request-service-rota/pull/48.patch","issue_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/issues/48","number":48,"state":"open","locked":false,"title":"Adds law firm allocation required daily to Shifts","user":{"login":"pedrosmmoreira","id":658761,"avatar_url":"https://avatars.githubusercontent.com/u/658761?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrosmmoreira","html_url":"https://github.com/pedrosmmoreira","followers_url":"https://api.github.com/users/pedrosmmoreira/followers","following_url":"https://api.github.com/users/pedrosmmoreira/following{/other_user}","gists_url":"https://api.github.com/users/pedrosmmoreira/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrosmmoreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrosmmoreira/subscriptions","organizations_url":"https://api.github.com/users/pedrosmmoreira/orgs","repos_url":"https://api.github.com/users/pedrosmmoreira/repos","events_url":"https://api.github.com/users/pedrosmmoreira/events{/privacy}","received_events_url":"https://api.github.com/users/pedrosmmoreira/received_events","type":"User","site_admin":false},"body":"Each shift now holds a `allocation_requirement_per_weekday` attribute,mapping each day of the week to the number of required firms.","created_at":"2015-05-13T13:38:26Z","updated_at":"2015-05-13T14:26:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"453a666ec1262bdb7cfa93bc64edc84ab5416a64","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/48/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/48/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/issues/48/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/statuses/3a7227563a5c13ec63f210a6d000bc9489d2e84d","head":{"label":"ministryofjustice:firms-require-per-shift-day","ref":"firms-require-per-shift-day","sha":"3a7227563a5c13ec63f210a6d000bc9489d2e84d","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":32456341,"name":"defence-request-service-rota","full_name":"ministryofjustice/defence-request-service-rota","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/defence-request-service-rota","description":"Defence Request Service - Rota Handling","fork":false,"url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota","forks_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/forks","keys_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/events","assignees_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/merges","archive_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/releases{/id}","created_at":"2015-03-18T12:04:23Z","updated_at":"2015-05-07T14:42:20Z","pushed_at":"2015-05-13T13:38:26Z","git_url":"git://github.com/ministryofjustice/defence-request-service-rota.git","ssh_url":"git@github.com:ministryofjustice/defence-request-service-rota.git","clone_url":"https://github.com/ministryofjustice/defence-request-service-rota.git","svn_url":"https://github.com/ministryofjustice/defence-request-service-rota","homepage":null,"size":1136,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"9090c371141fd76ca637890a84d0230fce30e24c","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":32456341,"name":"defence-request-service-rota","full_name":"ministryofjustice/defence-request-service-rota","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/defence-request-service-rota","description":"Defence Request Service - Rota Handling","fork":false,"url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota","forks_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/forks","keys_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/events","assignees_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/merges","archive_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/releases{/id}","created_at":"2015-03-18T12:04:23Z","updated_at":"2015-05-07T14:42:20Z","pushed_at":"2015-05-13T13:38:26Z","git_url":"git://github.com/ministryofjustice/defence-request-service-rota.git","ssh_url":"git@github.com:ministryofjustice/defence-request-service-rota.git","clone_url":"https://github.com/ministryofjustice/defence-request-service-rota.git","svn_url":"https://github.com/ministryofjustice/defence-request-service-rota","homepage":null,"size":1136,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/48"},"html":{"href":"https://github.com/ministryofjustice/defence-request-service-rota/pull/48"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/issues/48"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-rota/statuses/3a7227563a5c13ec63f210a6d000bc9489d2e84d"}}}}