{"action":"created","comment":{"url":"https://api.github.com/repos/bitzesty/qae/pulls/comments/40420384","id":40420384,"diff_hunk":"@@ -92,6 +92,16 @@ def lead_or_assigned?(form_answer)\n     lead?(form_answer) || assigned?(form_answer)\n   end\n \n+  def lead_for_any_category?\n+    lead = false\n+    [\"trade\", \"innovation\", \"development\", \"promotion\"].each do |cat|\n+      if get_role(cat) == \"lead\"\n+        lead = true\n+      end\n+    end\n+    return lead\n+  end","path":"app/models/assessor.rb","position":null,"original_position":12,"commit_id":"9c10a5600309ca1f75ca6426b62027ac44c6e816","original_commit_id":"be98561c75e369ab9beb1a231e05f6f2c88070bc","user":{"login":"hammerfunk","id":856739,"avatar_url":"https://avatars.githubusercontent.com/u/856739?v=3","gravatar_id":"","url":"https://api.github.com/users/hammerfunk","html_url":"https://github.com/hammerfunk","followers_url":"https://api.github.com/users/hammerfunk/followers","following_url":"https://api.github.com/users/hammerfunk/following{/other_user}","gists_url":"https://api.github.com/users/hammerfunk/gists{/gist_id}","starred_url":"https://api.github.com/users/hammerfunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammerfunk/subscriptions","organizations_url":"https://api.github.com/users/hammerfunk/orgs","repos_url":"https://api.github.com/users/hammerfunk/repos","events_url":"https://api.github.com/users/hammerfunk/events{/privacy}","received_events_url":"https://api.github.com/users/hammerfunk/received_events","type":"User","site_admin":false},"body":"Changed thanks","created_at":"2015-09-25T11:24:45Z","updated_at":"2015-09-25T11:24:45Z","html_url":"https://github.com/bitzesty/qae/pull/609#discussion_r40420384","pull_request_url":"https://api.github.com/repos/bitzesty/qae/pulls/609","_links":{"self":{"href":"https://api.github.com/repos/bitzesty/qae/pulls/comments/40420384"},"html":{"href":"https://github.com/bitzesty/qae/pull/609#discussion_r40420384"},"pull_request":{"href":"https://api.github.com/repos/bitzesty/qae/pulls/609"}}},"pull_request":{"url":"https://api.github.com/repos/bitzesty/qae/pulls/609","id":46000845,"html_url":"https://github.com/bitzesty/qae/pull/609","diff_url":"https://github.com/bitzesty/qae/pull/609.diff","patch_url":"https://github.com/bitzesty/qae/pull/609.patch","issue_url":"https://api.github.com/repos/bitzesty/qae/issues/609","number":609,"state":"open","locked":false,"title":"Lead assessors can generate a case status CSV","user":{"login":"hammerfunk","id":856739,"avatar_url":"https://avatars.githubusercontent.com/u/856739?v=3","gravatar_id":"","url":"https://api.github.com/users/hammerfunk","html_url":"https://github.com/hammerfunk","followers_url":"https://api.github.com/users/hammerfunk/followers","following_url":"https://api.github.com/users/hammerfunk/following{/other_user}","gists_url":"https://api.github.com/users/hammerfunk/gists{/gist_id}","starred_url":"https://api.github.com/users/hammerfunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammerfunk/subscriptions","organizations_url":"https://api.github.com/users/hammerfunk/orgs","repos_url":"https://api.github.com/users/hammerfunk/repos","events_url":"https://api.github.com/users/hammerfunk/events{/privacy}","received_events_url":"https://api.github.com/users/hammerfunk/received_events","type":"User","site_admin":false},"body":"Lead assessors can generate a case status CSV but only for the categories they are a lead in","created_at":"2015-09-25T11:10:36Z","updated_at":"2015-09-25T11:24:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f43865ab201b2dbb6c4abc7f28eb3a6dbe1c0c97","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bitzesty/qae/pulls/609/commits","review_comments_url":"https://api.github.com/repos/bitzesty/qae/pulls/609/comments","review_comment_url":"https://api.github.com/repos/bitzesty/qae/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitzesty/qae/issues/609/comments","statuses_url":"https://api.github.com/repos/bitzesty/qae/statuses/9c10a5600309ca1f75ca6426b62027ac44c6e816","head":{"label":"bitzesty:lead-case-status-report","ref":"lead-case-status-report","sha":"9c10a5600309ca1f75ca6426b62027ac44c6e816","user":{"login":"bitzesty","id":70534,"avatar_url":"https://avatars.githubusercontent.com/u/70534?v=3","gravatar_id":"","url":"https://api.github.com/users/bitzesty","html_url":"https://github.com/bitzesty","followers_url":"https://api.github.com/users/bitzesty/followers","following_url":"https://api.github.com/users/bitzesty/following{/other_user}","gists_url":"https://api.github.com/users/bitzesty/gists{/gist_id}","starred_url":"https://api.github.com/users/bitzesty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitzesty/subscriptions","organizations_url":"https://api.github.com/users/bitzesty/orgs","repos_url":"https://api.github.com/users/bitzesty/repos","events_url":"https://api.github.com/users/bitzesty/events{/privacy}","received_events_url":"https://api.github.com/users/bitzesty/received_events","type":"Organization","site_admin":false},"repo":{"id":26758825,"name":"qae","full_name":"bitzesty/qae","owner":{"login":"bitzesty","id":70534,"avatar_url":"https://avatars.githubusercontent.com/u/70534?v=3","gravatar_id":"","url":"https://api.github.com/users/bitzesty","html_url":"https://github.com/bitzesty","followers_url":"https://api.github.com/users/bitzesty/followers","following_url":"https://api.github.com/users/bitzesty/following{/other_user}","gists_url":"https://api.github.com/users/bitzesty/gists{/gist_id}","starred_url":"https://api.github.com/users/bitzesty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitzesty/subscriptions","organizations_url":"https://api.github.com/users/bitzesty/orgs","repos_url":"https://api.github.com/users/bitzesty/repos","events_url":"https://api.github.com/users/bitzesty/events{/privacy}","received_events_url":"https://api.github.com/users/bitzesty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitzesty/qae","description":"Queens Award for Enterprise Application","fork":false,"url":"https://api.github.com/repos/bitzesty/qae","forks_url":"https://api.github.com/repos/bitzesty/qae/forks","keys_url":"https://api.github.com/repos/bitzesty/qae/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitzesty/qae/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitzesty/qae/teams","hooks_url":"https://api.github.com/repos/bitzesty/qae/hooks","issue_events_url":"https://api.github.com/repos/bitzesty/qae/issues/events{/number}","events_url":"https://api.github.com/repos/bitzesty/qae/events","assignees_url":"https://api.github.com/repos/bitzesty/qae/assignees{/user}","branches_url":"https://api.github.com/repos/bitzesty/qae/branches{/branch}","tags_url":"https://api.github.com/repos/bitzesty/qae/tags","blobs_url":"https://api.github.com/repos/bitzesty/qae/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitzesty/qae/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitzesty/qae/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitzesty/qae/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitzesty/qae/statuses/{sha}","languages_url":"https://api.github.com/repos/bitzesty/qae/languages","stargazers_url":"https://api.github.com/repos/bitzesty/qae/stargazers","contributors_url":"https://api.github.com/repos/bitzesty/qae/contributors","subscribers_url":"https://api.github.com/repos/bitzesty/qae/subscribers","subscription_url":"https://api.github.com/repos/bitzesty/qae/subscription","commits_url":"https://api.github.com/repos/bitzesty/qae/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitzesty/qae/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitzesty/qae/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitzesty/qae/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitzesty/qae/contents/{+path}","compare_url":"https://api.github.com/repos/bitzesty/qae/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitzesty/qae/merges","archive_url":"https://api.github.com/repos/bitzesty/qae/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitzesty/qae/downloads","issues_url":"https://api.github.com/repos/bitzesty/qae/issues{/number}","pulls_url":"https://api.github.com/repos/bitzesty/qae/pulls{/number}","milestones_url":"https://api.github.com/repos/bitzesty/qae/milestones{/number}","notifications_url":"https://api.github.com/repos/bitzesty/qae/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitzesty/qae/labels{/name}","releases_url":"https://api.github.com/repos/bitzesty/qae/releases{/id}","created_at":"2014-11-17T13:56:00Z","updated_at":"2015-08-21T22:33:49Z","pushed_at":"2015-09-25T11:23:48Z","git_url":"git://github.com/bitzesty/qae.git","ssh_url":"git@github.com:bitzesty/qae.git","clone_url":"https://github.com/bitzesty/qae.git","svn_url":"https://github.com/bitzesty/qae","homepage":"","size":41868,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"bitzesty:master","ref":"master","sha":"0a69c422a7a261b0fec072662432c97cce9cf828","user":{"login":"bitzesty","id":70534,"avatar_url":"https://avatars.githubusercontent.com/u/70534?v=3","gravatar_id":"","url":"https://api.github.com/users/bitzesty","html_url":"https://github.com/bitzesty","followers_url":"https://api.github.com/users/bitzesty/followers","following_url":"https://api.github.com/users/bitzesty/following{/other_user}","gists_url":"https://api.github.com/users/bitzesty/gists{/gist_id}","starred_url":"https://api.github.com/users/bitzesty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitzesty/subscriptions","organizations_url":"https://api.github.com/users/bitzesty/orgs","repos_url":"https://api.github.com/users/bitzesty/repos","events_url":"https://api.github.com/users/bitzesty/events{/privacy}","received_events_url":"https://api.github.com/users/bitzesty/received_events","type":"Organization","site_admin":false},"repo":{"id":26758825,"name":"qae","full_name":"bitzesty/qae","owner":{"login":"bitzesty","id":70534,"avatar_url":"https://avatars.githubusercontent.com/u/70534?v=3","gravatar_id":"","url":"https://api.github.com/users/bitzesty","html_url":"https://github.com/bitzesty","followers_url":"https://api.github.com/users/bitzesty/followers","following_url":"https://api.github.com/users/bitzesty/following{/other_user}","gists_url":"https://api.github.com/users/bitzesty/gists{/gist_id}","starred_url":"https://api.github.com/users/bitzesty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitzesty/subscriptions","organizations_url":"https://api.github.com/users/bitzesty/orgs","repos_url":"https://api.github.com/users/bitzesty/repos","events_url":"https://api.github.com/users/bitzesty/events{/privacy}","received_events_url":"https://api.github.com/users/bitzesty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitzesty/qae","description":"Queens Award for Enterprise Application","fork":false,"url":"https://api.github.com/repos/bitzesty/qae","forks_url":"https://api.github.com/repos/bitzesty/qae/forks","keys_url":"https://api.github.com/repos/bitzesty/qae/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitzesty/qae/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitzesty/qae/teams","hooks_url":"https://api.github.com/repos/bitzesty/qae/hooks","issue_events_url":"https://api.github.com/repos/bitzesty/qae/issues/events{/number}","events_url":"https://api.github.com/repos/bitzesty/qae/events","assignees_url":"https://api.github.com/repos/bitzesty/qae/assignees{/user}","branches_url":"https://api.github.com/repos/bitzesty/qae/branches{/branch}","tags_url":"https://api.github.com/repos/bitzesty/qae/tags","blobs_url":"https://api.github.com/repos/bitzesty/qae/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitzesty/qae/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitzesty/qae/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitzesty/qae/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitzesty/qae/statuses/{sha}","languages_url":"https://api.github.com/repos/bitzesty/qae/languages","stargazers_url":"https://api.github.com/repos/bitzesty/qae/stargazers","contributors_url":"https://api.github.com/repos/bitzesty/qae/contributors","subscribers_url":"https://api.github.com/repos/bitzesty/qae/subscribers","subscription_url":"https://api.github.com/repos/bitzesty/qae/subscription","commits_url":"https://api.github.com/repos/bitzesty/qae/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitzesty/qae/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitzesty/qae/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitzesty/qae/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitzesty/qae/contents/{+path}","compare_url":"https://api.github.com/repos/bitzesty/qae/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitzesty/qae/merges","archive_url":"https://api.github.com/repos/bitzesty/qae/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitzesty/qae/downloads","issues_url":"https://api.github.com/repos/bitzesty/qae/issues{/number}","pulls_url":"https://api.github.com/repos/bitzesty/qae/pulls{/number}","milestones_url":"https://api.github.com/repos/bitzesty/qae/milestones{/number}","notifications_url":"https://api.github.com/repos/bitzesty/qae/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitzesty/qae/labels{/name}","releases_url":"https://api.github.com/repos/bitzesty/qae/releases{/id}","created_at":"2014-11-17T13:56:00Z","updated_at":"2015-08-21T22:33:49Z","pushed_at":"2015-09-25T11:23:48Z","git_url":"git://github.com/bitzesty/qae.git","ssh_url":"git@github.com:bitzesty/qae.git","clone_url":"https://github.com/bitzesty/qae.git","svn_url":"https://github.com/bitzesty/qae","homepage":"","size":41868,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitzesty/qae/pulls/609"},"html":{"href":"https://github.com/bitzesty/qae/pull/609"},"issue":{"href":"https://api.github.com/repos/bitzesty/qae/issues/609"},"comments":{"href":"https://api.github.com/repos/bitzesty/qae/issues/609/comments"},"review_comments":{"href":"https://api.github.com/repos/bitzesty/qae/pulls/609/comments"},"review_comment":{"href":"https://api.github.com/repos/bitzesty/qae/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitzesty/qae/pulls/609/commits"},"statuses":{"href":"https://api.github.com/repos/bitzesty/qae/statuses/9c10a5600309ca1f75ca6426b62027ac44c6e816"}}}}