GitHub PullRequestReviewCommentEvent at 2014-09-02 16:43:42
Repository: profile-publisher
Actor: adamcrown
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/biola/profile-publisher/pulls/comments/16999096","id":16999096,"diff_hunk":"@@ -0,0 +1,46 @@\n+.panel.panel-default\n+  .panel-heading\n+    strong Offices and Services\n+  .panel-body\n+    - if @person.departments.empty?\n+      .alert.alert-info This person is not a member of any office or service.\n+    - else\n+      .table-responsive\n+        table.table.table-striped\n+          thead\n+            tr\n+              th Title\n+              th Email\n+              th Phone\n+          tbody\n+          - @person.departments.each do |dept|\n+            tr\n+              td = link_to_if policy(dept).edit?, dept.title, dept\n+              td = dept.email\n+              td = dept.phone.present? ? dept.phone : 'unknown'","path":"app/views/people/profile_pages/_memberships.html.slim","position":20,"original_position":20,"commit_id":"b0cd35435175adaa8b33c3a57ddce7ff085d82cc","original_commit_id":"f38627d78154bbd1479bd3b63d1644707be4d9a1","user":{"login":"adamcrown","id":277306,"avatar_url":"https://avatars.githubusercontent.com/u/277306?v=2","gravatar_id":"8e376bdb110a47cc06658bf84d46d515","url":"https://api.github.com/users/adamcrown","html_url":"https://github.com/adamcrown","followers_url":"https://api.github.com/users/adamcrown/followers","following_url":"https://api.github.com/users/adamcrown/following{/other_user}","gists_url":"https://api.github.com/users/adamcrown/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcrown/subscriptions","organizations_url":"https://api.github.com/users/adamcrown/orgs","repos_url":"https://api.github.com/users/adamcrown/repos","events_url":"https://api.github.com/users/adamcrown/events{/privacy}","received_events_url":"https://api.github.com/users/adamcrown/received_events","type":"User","site_admin":false},"body":"Not a big deal but I tend to prefer `dept.phone.presence || 'unknown'`","created_at":"2014-09-02T16:43:42Z","updated_at":"2014-09-02T16:43:43Z","html_url":"https://github.com/biola/profile-publisher/pull/83#discussion_r16999096","pull_request_url":"https://api.github.com/repos/biola/profile-publisher/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/biola/profile-publisher/pulls/comments/16999096"},"html":{"href":"https://github.com/biola/profile-publisher/pull/83#discussion_r16999096"},"pull_request":{"href":"https://api.github.com/repos/biola/profile-publisher/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/biola/profile-publisher/pulls/83","id":20527696,"html_url":"https://github.com/biola/profile-publisher/pull/83","diff_url":"https://github.com/biola/profile-publisher/pull/83.diff","patch_url":"https://github.com/biola/profile-publisher/pull/83.patch","issue_url":"https://api.github.com/repos/biola/profile-publisher/issues/83","number":83,"state":"open","locked":false,"title":"Review permissions","user":{"login":"halloffame","id":957859,"avatar_url":"https://avatars.githubusercontent.com/u/957859?v=2","gravatar_id":"e41aeefe38a79ccac335c5d232d5cfc8","url":"https://api.github.com/users/halloffame","html_url":"https://github.com/halloffame","followers_url":"https://api.github.com/users/halloffame/followers","following_url":"https://api.github.com/users/halloffame/following{/other_user}","gists_url":"https://api.github.com/users/halloffame/gists{/gist_id}","starred_url":"https://api.github.com/users/halloffame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halloffame/subscriptions","organizations_url":"https://api.github.com/users/halloffame/orgs","repos_url":"https://api.github.com/users/halloffame/repos","events_url":"https://api.github.com/users/halloffame/events{/privacy}","received_events_url":"https://api.github.com/users/halloffame/received_events","type":"User","site_admin":false},"body":"* Added users controller and index view\r\n* Added pretender for impersonation\r\n* Updated each of the edit pages to only show sub-pages that the user is allowed to see.\r\n* The permissions are now controlled in each pundit policy","created_at":"2014-08-29T22:54:57Z","updated_at":"2014-09-02T16:43:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1bb5d5721018d4a2c25af8099345fe929bf5a64","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/biola/profile-publisher/pulls/83/commits","review_comments_url":"https://api.github.com/repos/biola/profile-publisher/pulls/83/comments","review_comment_url":"https://api.github.com/repos/biola/profile-publisher/pulls/comments/{number}","comments_url":"https://api.github.com/repos/biola/profile-publisher/issues/83/comments","statuses_url":"https://api.github.com/repos/biola/profile-publisher/statuses/b0cd35435175adaa8b33c3a57ddce7ff085d82cc","head":{"label":"biola:review_permissions","ref":"review_permissions","sha":"b0cd35435175adaa8b33c3a57ddce7ff085d82cc","user":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=2","gravatar_id":"a0b30b1a5d38c1135a5597cf3d469de3","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"repo":{"id":18650938,"name":"profile-publisher","full_name":"biola/profile-publisher","owner":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=2","gravatar_id":"a0b30b1a5d38c1135a5597cf3d469de3","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biola/profile-publisher","description":"Profile Publisher App","fork":false,"url":"https://api.github.com/repos/biola/profile-publisher","forks_url":"https://api.github.com/repos/biola/profile-publisher/forks","keys_url":"https://api.github.com/repos/biola/profile-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biola/profile-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biola/profile-publisher/teams","hooks_url":"https://api.github.com/repos/biola/profile-publisher/hooks","issue_events_url":"https://api.github.com/repos/biola/profile-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/biola/profile-publisher/events","assignees_url":"https://api.github.com/repos/biola/profile-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/biola/profile-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/biola/profile-publisher/tags","blobs_url":"https://api.github.com/repos/biola/profile-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biola/profile-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biola/profile-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/biola/profile-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biola/profile-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/biola/profile-publisher/languages","stargazers_url":"https://api.github.com/repos/biola/profile-publisher/stargazers","contributors_url":"https://api.github.com/repos/biola/profile-publisher/contributors","subscribers_url":"https://api.github.com/repos/biola/profile-publisher/subscribers","subscription_url":"https://api.github.com/repos/biola/profile-publisher/subscription","commits_url":"https://api.github.com/repos/biola/profile-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/biola/profile-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/biola/profile-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/biola/profile-publisher/issues/comments/{number}","contents_url":"https://api.github.com/repos/biola/profile-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/biola/profile-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biola/profile-publisher/merges","archive_url":"https://api.github.com/repos/biola/profile-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biola/profile-publisher/downloads","issues_url":"https://api.github.com/repos/biola/profile-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/biola/profile-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/biola/profile-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/biola/profile-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biola/profile-publisher/labels{/name}","releases_url":"https://api.github.com/repos/biola/profile-publisher/releases{/id}","created_at":"2014-04-10T20:35:15Z","updated_at":"2014-08-25T16:39:39Z","pushed_at":"2014-09-02T16:25:08Z","git_url":"git://github.com/biola/profile-publisher.git","ssh_url":"git@github.com:biola/profile-publisher.git","clone_url":"https://github.com/biola/profile-publisher.git","svn_url":"https://github.com/biola/profile-publisher","homepage":null,"size":5568,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"biola:master","ref":"master","sha":"31d2cf7060aa0f3e5b89f918f2d6f4f85a4d7b9c","user":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=2","gravatar_id":"a0b30b1a5d38c1135a5597cf3d469de3","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"repo":{"id":18650938,"name":"profile-publisher","full_name":"biola/profile-publisher","owner":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=2","gravatar_id":"a0b30b1a5d38c1135a5597cf3d469de3","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biola/profile-publisher","description":"Profile Publisher App","fork":false,"url":"https://api.github.com/repos/biola/profile-publisher","forks_url":"https://api.github.com/repos/biola/profile-publisher/forks","keys_url":"https://api.github.com/repos/biola/profile-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biola/profile-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biola/profile-publisher/teams","hooks_url":"https://api.github.com/repos/biola/profile-publisher/hooks","issue_events_url":"https://api.github.com/repos/biola/profile-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/biola/profile-publisher/events","assignees_url":"https://api.github.com/repos/biola/profile-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/biola/profile-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/biola/profile-publisher/tags","blobs_url":"https://api.github.com/repos/biola/profile-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biola/profile-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biola/profile-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/biola/profile-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biola/profile-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/biola/profile-publisher/languages","stargazers_url":"https://api.github.com/repos/biola/profile-publisher/stargazers","contributors_url":"https://api.github.com/repos/biola/profile-publisher/contributors","subscribers_url":"https://api.github.com/repos/biola/profile-publisher/subscribers","subscription_url":"https://api.github.com/repos/biola/profile-publisher/subscription","commits_url":"https://api.github.com/repos/biola/profile-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/biola/profile-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/biola/profile-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/biola/profile-publisher/issues/comments/{number}","contents_url":"https://api.github.com/repos/biola/profile-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/biola/profile-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biola/profile-publisher/merges","archive_url":"https://api.github.com/repos/biola/profile-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biola/profile-publisher/downloads","issues_url":"https://api.github.com/repos/biola/profile-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/biola/profile-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/biola/profile-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/biola/profile-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biola/profile-publisher/labels{/name}","releases_url":"https://api.github.com/repos/biola/profile-publisher/releases{/id}","created_at":"2014-04-10T20:35:15Z","updated_at":"2014-08-25T16:39:39Z","pushed_at":"2014-09-02T16:25:08Z","git_url":"git://github.com/biola/profile-publisher.git","ssh_url":"git@github.com:biola/profile-publisher.git","clone_url":"https://github.com/biola/profile-publisher.git","svn_url":"https://github.com/biola/profile-publisher","homepage":null,"size":5568,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"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/biola/profile-publisher/pulls/83"},"html":{"href":"https://github.com/biola/profile-publisher/pull/83"},"issue":{"href":"https://api.github.com/repos/biola/profile-publisher/issues/83"},"comments":{"href":"https://api.github.com/repos/biola/profile-publisher/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/biola/profile-publisher/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/biola/profile-publisher/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/biola/profile-publisher/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/biola/profile-publisher/statuses/b0cd35435175adaa8b33c3a57ddce7ff085d82cc"}}}}