{"action":"created","comment":{"url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/comments/22769176","id":22769176,"diff_hunk":"@@ -18,11 +20,19 @@ def initialize(remaining_weeks: raise, team_members: raise, iteration: raise, ch\n       @team_members = team_members\n       @iteration_number = iteration\n       @pivotal_operations = pivotal_operations\n-      @iterations = @pivotal_operations.iteration(@iteration_number)\n       @change_from_planning = change_from_planning\n       @retro_actions = retro_actions\n       @worked_hours = worked_hours\n       @planning_actions = planning_actions\n+      @validator = SprintReviewContract.new(self)\n+\n+      if valid?\n+        @iterations = @pivotal_operations.iteration(@iteration_number)","path":"pivotal/lib/sprint_review.rb","position":18,"original_position":18,"commit_id":"402c97ccd8b083f333269f7a3f0c3dccf9e886a0","original_commit_id":"402c97ccd8b083f333269f7a3f0c3dccf9e886a0","user":{"login":"guiman","id":1200861,"avatar_url":"https://avatars.githubusercontent.com/u/1200861?v=3","gravatar_id":"","url":"https://api.github.com/users/guiman","html_url":"https://github.com/guiman","followers_url":"https://api.github.com/users/guiman/followers","following_url":"https://api.github.com/users/guiman/following{/other_user}","gists_url":"https://api.github.com/users/guiman/gists{/gist_id}","starred_url":"https://api.github.com/users/guiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guiman/subscriptions","organizations_url":"https://api.github.com/users/guiman/orgs","repos_url":"https://api.github.com/users/guiman/repos","events_url":"https://api.github.com/users/guiman/events{/privacy}","received_events_url":"https://api.github.com/users/guiman/received_events","type":"User","site_admin":false},"body":"actually, I think I need to change the name of the method to reflect the result better","created_at":"2015-01-11T19:25:05Z","updated_at":"2015-01-11T19:25:05Z","html_url":"https://github.com/guiman/pivotal_data_visualizer/pull/9#discussion_r22769176","pull_request_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/comments/22769176"},"html":{"href":"https://github.com/guiman/pivotal_data_visualizer/pull/9#discussion_r22769176"},"pull_request":{"href":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/9","id":27163507,"html_url":"https://github.com/guiman/pivotal_data_visualizer/pull/9","diff_url":"https://github.com/guiman/pivotal_data_visualizer/pull/9.diff","patch_url":"https://github.com/guiman/pivotal_data_visualizer/pull/9.patch","issue_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/issues/9","number":9,"state":"open","locked":false,"title":"Add error validation for main forms","user":{"login":"guiman","id":1200861,"avatar_url":"https://avatars.githubusercontent.com/u/1200861?v=3","gravatar_id":"","url":"https://api.github.com/users/guiman","html_url":"https://github.com/guiman","followers_url":"https://api.github.com/users/guiman/followers","following_url":"https://api.github.com/users/guiman/following{/other_user}","gists_url":"https://api.github.com/users/guiman/gists{/gist_id}","starred_url":"https://api.github.com/users/guiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guiman/subscriptions","organizations_url":"https://api.github.com/users/guiman/orgs","repos_url":"https://api.github.com/users/guiman/repos","events_url":"https://api.github.com/users/guiman/events{/privacy}","received_events_url":"https://api.github.com/users/guiman/received_events","type":"User","site_admin":false},"body":"Adding Reform as a validation mechanism for configuration objects and sprint review features","created_at":"2015-01-11T14:43:45Z","updated_at":"2015-01-11T19:25:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c238e3816320c005cd43feb788eab53f914dfa5e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/9/commits","review_comments_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/9/comments","review_comment_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/comments/{number}","comments_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/issues/9/comments","statuses_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/statuses/402c97ccd8b083f333269f7a3f0c3dccf9e886a0","head":{"label":"guiman:add-error-verification","ref":"add-error-verification","sha":"402c97ccd8b083f333269f7a3f0c3dccf9e886a0","user":{"login":"guiman","id":1200861,"avatar_url":"https://avatars.githubusercontent.com/u/1200861?v=3","gravatar_id":"","url":"https://api.github.com/users/guiman","html_url":"https://github.com/guiman","followers_url":"https://api.github.com/users/guiman/followers","following_url":"https://api.github.com/users/guiman/following{/other_user}","gists_url":"https://api.github.com/users/guiman/gists{/gist_id}","starred_url":"https://api.github.com/users/guiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guiman/subscriptions","organizations_url":"https://api.github.com/users/guiman/orgs","repos_url":"https://api.github.com/users/guiman/repos","events_url":"https://api.github.com/users/guiman/events{/privacy}","received_events_url":"https://api.github.com/users/guiman/received_events","type":"User","site_admin":false},"repo":{"id":18924359,"name":"pivotal_data_visualizer","full_name":"guiman/pivotal_data_visualizer","owner":{"login":"guiman","id":1200861,"avatar_url":"https://avatars.githubusercontent.com/u/1200861?v=3","gravatar_id":"","url":"https://api.github.com/users/guiman","html_url":"https://github.com/guiman","followers_url":"https://api.github.com/users/guiman/followers","following_url":"https://api.github.com/users/guiman/following{/other_user}","gists_url":"https://api.github.com/users/guiman/gists{/gist_id}","starred_url":"https://api.github.com/users/guiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guiman/subscriptions","organizations_url":"https://api.github.com/users/guiman/orgs","repos_url":"https://api.github.com/users/guiman/repos","events_url":"https://api.github.com/users/guiman/events{/privacy}","received_events_url":"https://api.github.com/users/guiman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guiman/pivotal_data_visualizer","description":"A simple web app to visualise pivotal stories data.","fork":false,"url":"https://api.github.com/repos/guiman/pivotal_data_visualizer","forks_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/forks","keys_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/teams","hooks_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/hooks","issue_events_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/issues/events{/number}","events_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/events","assignees_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/assignees{/user}","branches_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/branches{/branch}","tags_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/tags","blobs_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/git/refs{/sha}","trees_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/statuses/{sha}","languages_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/languages","stargazers_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/stargazers","contributors_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/contributors","subscribers_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/subscribers","subscription_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/subscription","commits_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/commits{/sha}","git_commits_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/git/commits{/sha}","comments_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/comments{/number}","issue_comment_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/issues/comments/{number}","contents_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/contents/{+path}","compare_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/merges","archive_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/downloads","issues_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/issues{/number}","pulls_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls{/number}","milestones_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/milestones{/number}","notifications_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/labels{/name}","releases_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/releases{/id}","created_at":"2014-04-18T20:14:56Z","updated_at":"2015-01-04T15:00:02Z","pushed_at":"2015-01-11T14:42:46Z","git_url":"git://github.com/guiman/pivotal_data_visualizer.git","ssh_url":"git@github.com:guiman/pivotal_data_visualizer.git","clone_url":"https://github.com/guiman/pivotal_data_visualizer.git","svn_url":"https://github.com/guiman/pivotal_data_visualizer","homepage":"","size":625,"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":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"guiman:master","ref":"master","sha":"09e069b199dc77423e8f59e20a0243ed5c82b09b","user":{"login":"guiman","id":1200861,"avatar_url":"https://avatars.githubusercontent.com/u/1200861?v=3","gravatar_id":"","url":"https://api.github.com/users/guiman","html_url":"https://github.com/guiman","followers_url":"https://api.github.com/users/guiman/followers","following_url":"https://api.github.com/users/guiman/following{/other_user}","gists_url":"https://api.github.com/users/guiman/gists{/gist_id}","starred_url":"https://api.github.com/users/guiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guiman/subscriptions","organizations_url":"https://api.github.com/users/guiman/orgs","repos_url":"https://api.github.com/users/guiman/repos","events_url":"https://api.github.com/users/guiman/events{/privacy}","received_events_url":"https://api.github.com/users/guiman/received_events","type":"User","site_admin":false},"repo":{"id":18924359,"name":"pivotal_data_visualizer","full_name":"guiman/pivotal_data_visualizer","owner":{"login":"guiman","id":1200861,"avatar_url":"https://avatars.githubusercontent.com/u/1200861?v=3","gravatar_id":"","url":"https://api.github.com/users/guiman","html_url":"https://github.com/guiman","followers_url":"https://api.github.com/users/guiman/followers","following_url":"https://api.github.com/users/guiman/following{/other_user}","gists_url":"https://api.github.com/users/guiman/gists{/gist_id}","starred_url":"https://api.github.com/users/guiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guiman/subscriptions","organizations_url":"https://api.github.com/users/guiman/orgs","repos_url":"https://api.github.com/users/guiman/repos","events_url":"https://api.github.com/users/guiman/events{/privacy}","received_events_url":"https://api.github.com/users/guiman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guiman/pivotal_data_visualizer","description":"A simple web app to visualise pivotal stories data.","fork":false,"url":"https://api.github.com/repos/guiman/pivotal_data_visualizer","forks_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/forks","keys_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/teams","hooks_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/hooks","issue_events_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/issues/events{/number}","events_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/events","assignees_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/assignees{/user}","branches_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/branches{/branch}","tags_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/tags","blobs_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/git/refs{/sha}","trees_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/statuses/{sha}","languages_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/languages","stargazers_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/stargazers","contributors_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/contributors","subscribers_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/subscribers","subscription_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/subscription","commits_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/commits{/sha}","git_commits_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/git/commits{/sha}","comments_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/comments{/number}","issue_comment_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/issues/comments/{number}","contents_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/contents/{+path}","compare_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/merges","archive_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/downloads","issues_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/issues{/number}","pulls_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls{/number}","milestones_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/milestones{/number}","notifications_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/labels{/name}","releases_url":"https://api.github.com/repos/guiman/pivotal_data_visualizer/releases{/id}","created_at":"2014-04-18T20:14:56Z","updated_at":"2015-01-04T15:00:02Z","pushed_at":"2015-01-11T14:42:46Z","git_url":"git://github.com/guiman/pivotal_data_visualizer.git","ssh_url":"git@github.com:guiman/pivotal_data_visualizer.git","clone_url":"https://github.com/guiman/pivotal_data_visualizer.git","svn_url":"https://github.com/guiman/pivotal_data_visualizer","homepage":"","size":625,"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":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/9"},"html":{"href":"https://github.com/guiman/pivotal_data_visualizer/pull/9"},"issue":{"href":"https://api.github.com/repos/guiman/pivotal_data_visualizer/issues/9"},"comments":{"href":"https://api.github.com/repos/guiman/pivotal_data_visualizer/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/guiman/pivotal_data_visualizer/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/guiman/pivotal_data_visualizer/statuses/402c97ccd8b083f333269f7a3f0c3dccf9e886a0"}}}}