GitHub PullRequestReviewCommentEvent at 2014-11-19 18:23:51
Repository: katello
Actor: ehelms
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Katello/katello/pulls/comments/20595505","id":20595505,"diff_hunk":"@@ -0,0 +1,71 @@\n+module Katello\n+  class ErrataMailer < ApplicationMailer\n+    helper :'katello/errata_mailer'\n+\n+    def host_errata(options)\n+      return unless (user = User.find(options[:user]))\n+\n+      @content_hosts = Katello::System.authorized_as(user, :view_content_hosts).reject { |host| host.applicable_errata.empty? }\n+\n+      set_locale_for user\n+\n+      mail(:to        => user.mail,\n+           :subject   => _(\"Katello Host Advisory\"),\n+           :date      => Time.now)\n+    end\n+\n+    def sync_errata(options)\n+      return unless (@repo = Katello::Repository.find(options[:repo])) && (last_updated = options[:last_updated].to_datetime)\n+\n+      recipients = User.all.select do |user|\n+        user.receives?(:katello_sync_errata) && user.can?(:view_repositories, @repo)","path":"app/mailers/katello/errata_mailer.rb","position":21,"original_position":21,"commit_id":"a1081bc198ff36f2cdc458f9a5c44c36ba67485b","original_commit_id":"a1081bc198ff36f2cdc458f9a5c44c36ba67485b","user":{"login":"ehelms","id":293363,"avatar_url":"https://avatars.githubusercontent.com/u/293363?v=3","gravatar_id":"","url":"https://api.github.com/users/ehelms","html_url":"https://github.com/ehelms","followers_url":"https://api.github.com/users/ehelms/followers","following_url":"https://api.github.com/users/ehelms/following{/other_user}","gists_url":"https://api.github.com/users/ehelms/gists{/gist_id}","starred_url":"https://api.github.com/users/ehelms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehelms/subscriptions","organizations_url":"https://api.github.com/users/ehelms/orgs","repos_url":"https://api.github.com/users/ehelms/repos","events_url":"https://api.github.com/users/ehelms/events{/privacy}","received_events_url":"https://api.github.com/users/ehelms/received_events","type":"User","site_admin":false},"body":"I don't believe 'view_repositories' permission exists.","created_at":"2014-11-19T18:23:51Z","updated_at":"2014-11-19T18:23:51Z","html_url":"https://github.com/Katello/katello/pull/4780#discussion_r20595505","pull_request_url":"https://api.github.com/repos/Katello/katello/pulls/4780","_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments/20595505"},"html":{"href":"https://github.com/Katello/katello/pull/4780#discussion_r20595505"},"pull_request":{"href":"https://api.github.com/repos/Katello/katello/pulls/4780"}}},"pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/4780","id":23533589,"html_url":"https://github.com/Katello/katello/pull/4780","diff_url":"https://github.com/Katello/katello/pull/4780.diff","patch_url":"https://github.com/Katello/katello/pull/4780.patch","issue_url":"https://api.github.com/repos/Katello/katello/issues/4780","number":4780,"state":"open","locked":false,"title":"fixes #7666, #7667, #7668 - errata mail notifications","user":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-10-29T14:24:55Z","updated_at":"2014-11-19T18:23:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddbd9c5ea8b65e17c25c1b913e40541f2903c890","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Katello/katello/pulls/4780/commits","review_comments_url":"https://api.github.com/repos/Katello/katello/pulls/4780/comments","review_comment_url":"https://api.github.com/repos/Katello/katello/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Katello/katello/issues/4780/comments","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/a1081bc198ff36f2cdc458f9a5c44c36ba67485b","head":{"label":"stbenjam:7668","ref":"7668","sha":"a1081bc198ff36f2cdc458f9a5c44c36ba67485b","user":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"repo":{"id":19234095,"name":"katello","full_name":"stbenjam/katello","owner":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stbenjam/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":true,"url":"https://api.github.com/repos/stbenjam/katello","forks_url":"https://api.github.com/repos/stbenjam/katello/forks","keys_url":"https://api.github.com/repos/stbenjam/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stbenjam/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stbenjam/katello/teams","hooks_url":"https://api.github.com/repos/stbenjam/katello/hooks","issue_events_url":"https://api.github.com/repos/stbenjam/katello/issues/events{/number}","events_url":"https://api.github.com/repos/stbenjam/katello/events","assignees_url":"https://api.github.com/repos/stbenjam/katello/assignees{/user}","branches_url":"https://api.github.com/repos/stbenjam/katello/branches{/branch}","tags_url":"https://api.github.com/repos/stbenjam/katello/tags","blobs_url":"https://api.github.com/repos/stbenjam/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stbenjam/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stbenjam/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/stbenjam/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stbenjam/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/stbenjam/katello/languages","stargazers_url":"https://api.github.com/repos/stbenjam/katello/stargazers","contributors_url":"https://api.github.com/repos/stbenjam/katello/contributors","subscribers_url":"https://api.github.com/repos/stbenjam/katello/subscribers","subscription_url":"https://api.github.com/repos/stbenjam/katello/subscription","commits_url":"https://api.github.com/repos/stbenjam/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/stbenjam/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/stbenjam/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/stbenjam/katello/issues/comments/{number}","contents_url":"https://api.github.com/repos/stbenjam/katello/contents/{+path}","compare_url":"https://api.github.com/repos/stbenjam/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stbenjam/katello/merges","archive_url":"https://api.github.com/repos/stbenjam/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stbenjam/katello/downloads","issues_url":"https://api.github.com/repos/stbenjam/katello/issues{/number}","pulls_url":"https://api.github.com/repos/stbenjam/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/stbenjam/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/stbenjam/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stbenjam/katello/labels{/name}","releases_url":"https://api.github.com/repos/stbenjam/katello/releases{/id}","created_at":"2014-04-28T09:48:20Z","updated_at":"2014-07-21T15:55:07Z","pushed_at":"2014-11-19T14:16:21Z","git_url":"git://github.com/stbenjam/katello.git","ssh_url":"git@github.com:stbenjam/katello.git","clone_url":"https://github.com/stbenjam/katello.git","svn_url":"https://github.com/stbenjam/katello","homepage":"katello.org","size":74834,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Katello:master","ref":"master","sha":"65ffcd2dcbdeba6a954eafbf6c212499b75b0b3c","user":{"login":"Katello","id":1316386,"avatar_url":"https://avatars.githubusercontent.com/u/1316386?v=3","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"repo":{"id":4007018,"name":"katello","full_name":"Katello/katello","owner":{"login":"Katello","id":1316386,"avatar_url":"https://avatars.githubusercontent.com/u/1316386?v=3","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Katello/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":false,"url":"https://api.github.com/repos/Katello/katello","forks_url":"https://api.github.com/repos/Katello/katello/forks","keys_url":"https://api.github.com/repos/Katello/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Katello/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Katello/katello/teams","hooks_url":"https://api.github.com/repos/Katello/katello/hooks","issue_events_url":"https://api.github.com/repos/Katello/katello/issues/events{/number}","events_url":"https://api.github.com/repos/Katello/katello/events","assignees_url":"https://api.github.com/repos/Katello/katello/assignees{/user}","branches_url":"https://api.github.com/repos/Katello/katello/branches{/branch}","tags_url":"https://api.github.com/repos/Katello/katello/tags","blobs_url":"https://api.github.com/repos/Katello/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Katello/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Katello/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/Katello/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/Katello/katello/languages","stargazers_url":"https://api.github.com/repos/Katello/katello/stargazers","contributors_url":"https://api.github.com/repos/Katello/katello/contributors","subscribers_url":"https://api.github.com/repos/Katello/katello/subscribers","subscription_url":"https://api.github.com/repos/Katello/katello/subscription","commits_url":"https://api.github.com/repos/Katello/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/Katello/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/Katello/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/Katello/katello/issues/comments/{number}","contents_url":"https://api.github.com/repos/Katello/katello/contents/{+path}","compare_url":"https://api.github.com/repos/Katello/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Katello/katello/merges","archive_url":"https://api.github.com/repos/Katello/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Katello/katello/downloads","issues_url":"https://api.github.com/repos/Katello/katello/issues{/number}","pulls_url":"https://api.github.com/repos/Katello/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/Katello/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/Katello/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Katello/katello/labels{/name}","releases_url":"https://api.github.com/repos/Katello/katello/releases{/id}","created_at":"2012-04-12T16:59:08Z","updated_at":"2014-11-19T11:16:32Z","pushed_at":"2014-11-19T11:16:32Z","git_url":"git://github.com/Katello/katello.git","ssh_url":"git@github.com:Katello/katello.git","clone_url":"https://github.com/Katello/katello.git","svn_url":"https://github.com/Katello/katello","homepage":"katello.org","size":250113,"stargazers_count":142,"watchers_count":142,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":95,"mirror_url":null,"open_issues_count":97,"forks":95,"open_issues":97,"watchers":142,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/4780"},"html":{"href":"https://github.com/Katello/katello/pull/4780"},"issue":{"href":"https://api.github.com/repos/Katello/katello/issues/4780"},"comments":{"href":"https://api.github.com/repos/Katello/katello/issues/4780/comments"},"review_comments":{"href":"https://api.github.com/repos/Katello/katello/pulls/4780/comments"},"review_comment":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Katello/katello/pulls/4780/commits"},"statuses":{"href":"https://api.github.com/repos/Katello/katello/statuses/a1081bc198ff36f2cdc458f9a5c44c36ba67485b"}}}}