GitHub PullRequestReviewCommentEvent at 2014-06-26 18:33:05
Repository: team_beer
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Mcscott142/team_beer/pulls/comments/14257510","id":14257510,"diff_hunk":"@@ -0,0 +1,18 @@\n+class Admin::ReviewsController < ApplicationController\n+\n+  before_action :authorize_admin\n+\n+  def destroy\n+    Review.find(params[:id]).destroy\n+    redirect_to beers_path\n+  end\n+\n+  private\n+\n+  def authorize_admin\n+    if current_user.is_admin == false\n+      redirect_to root\n+    end\n+  end\n+","path":"app/controllers/admin/reviews_controller.rb","position":17,"original_position":17,"commit_id":"50ea21f703cde28613b6e96b173001c553b197f5","original_commit_id":"50ea21f703cde28613b6e96b173001c553b197f5","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at body end.","created_at":"2014-06-26T18:33:05Z","updated_at":"2014-06-26T18:33:05Z","html_url":"https://github.com/Mcscott142/team_beer/pull/24#discussion_r14257510","pull_request_url":"https://api.github.com/repos/Mcscott142/team_beer/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/Mcscott142/team_beer/pulls/comments/14257510"},"html":{"href":"https://github.com/Mcscott142/team_beer/pull/24#discussion_r14257510"},"pull_request":{"href":"https://api.github.com/repos/Mcscott142/team_beer/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/Mcscott142/team_beer/pulls/24","id":17664535,"html_url":"https://github.com/Mcscott142/team_beer/pull/24","diff_url":"https://github.com/Mcscott142/team_beer/pull/24.diff","patch_url":"https://github.com/Mcscott142/team_beer/pull/24.patch","issue_url":"https://api.github.com/repos/Mcscott142/team_beer/issues/24","number":24,"state":"open","title":"RFR - added admin functionality","user":{"login":"TK-23","id":7120510,"avatar_url":"https://avatars.githubusercontent.com/u/7120510?","gravatar_id":"62a5f7fdd0164e2bc3900837ad5a0f44","url":"https://api.github.com/users/TK-23","html_url":"https://github.com/TK-23","followers_url":"https://api.github.com/users/TK-23/followers","following_url":"https://api.github.com/users/TK-23/following{/other_user}","gists_url":"https://api.github.com/users/TK-23/gists{/gist_id}","starred_url":"https://api.github.com/users/TK-23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TK-23/subscriptions","organizations_url":"https://api.github.com/users/TK-23/orgs","repos_url":"https://api.github.com/users/TK-23/repos","events_url":"https://api.github.com/users/TK-23/events{/privacy}","received_events_url":"https://api.github.com/users/TK-23/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-06-26T18:33:00Z","updated_at":"2014-06-26T18:33:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51dd6ad238108049603b3aa2f35d76da6efa3500","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Mcscott142/team_beer/pulls/24/commits","review_comments_url":"https://api.github.com/repos/Mcscott142/team_beer/pulls/24/comments","review_comment_url":"https://api.github.com/repos/Mcscott142/team_beer/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Mcscott142/team_beer/issues/24/comments","statuses_url":"https://api.github.com/repos/Mcscott142/team_beer/statuses/50ea21f703cde28613b6e96b173001c553b197f5","head":{"label":"Mcscott142:add_admin_functionality","ref":"add_admin_functionality","sha":"50ea21f703cde28613b6e96b173001c553b197f5","user":{"login":"Mcscott142","id":6877299,"avatar_url":"https://avatars.githubusercontent.com/u/6877299?","gravatar_id":"209c17f0b1b0e4f98aaa8412658a6a2b","url":"https://api.github.com/users/Mcscott142","html_url":"https://github.com/Mcscott142","followers_url":"https://api.github.com/users/Mcscott142/followers","following_url":"https://api.github.com/users/Mcscott142/following{/other_user}","gists_url":"https://api.github.com/users/Mcscott142/gists{/gist_id}","starred_url":"https://api.github.com/users/Mcscott142/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mcscott142/subscriptions","organizations_url":"https://api.github.com/users/Mcscott142/orgs","repos_url":"https://api.github.com/users/Mcscott142/repos","events_url":"https://api.github.com/users/Mcscott142/events{/privacy}","received_events_url":"https://api.github.com/users/Mcscott142/received_events","type":"User","site_admin":false},"repo":{"id":21139736,"name":"team_beer","full_name":"Mcscott142/team_beer","owner":{"login":"Mcscott142","id":6877299,"avatar_url":"https://avatars.githubusercontent.com/u/6877299?","gravatar_id":"209c17f0b1b0e4f98aaa8412658a6a2b","url":"https://api.github.com/users/Mcscott142","html_url":"https://github.com/Mcscott142","followers_url":"https://api.github.com/users/Mcscott142/followers","following_url":"https://api.github.com/users/Mcscott142/following{/other_user}","gists_url":"https://api.github.com/users/Mcscott142/gists{/gist_id}","starred_url":"https://api.github.com/users/Mcscott142/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mcscott142/subscriptions","organizations_url":"https://api.github.com/users/Mcscott142/orgs","repos_url":"https://api.github.com/users/Mcscott142/repos","events_url":"https://api.github.com/users/Mcscott142/events{/privacy}","received_events_url":"https://api.github.com/users/Mcscott142/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mcscott142/team_beer","description":"Team Beer Group Project","fork":false,"url":"https://api.github.com/repos/Mcscott142/team_beer","forks_url":"https://api.github.com/repos/Mcscott142/team_beer/forks","keys_url":"https://api.github.com/repos/Mcscott142/team_beer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mcscott142/team_beer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mcscott142/team_beer/teams","hooks_url":"https://api.github.com/repos/Mcscott142/team_beer/hooks","issue_events_url":"https://api.github.com/repos/Mcscott142/team_beer/issues/events{/number}","events_url":"https://api.github.com/repos/Mcscott142/team_beer/events","assignees_url":"https://api.github.com/repos/Mcscott142/team_beer/assignees{/user}","branches_url":"https://api.github.com/repos/Mcscott142/team_beer/branches{/branch}","tags_url":"https://api.github.com/repos/Mcscott142/team_beer/tags","blobs_url":"https://api.github.com/repos/Mcscott142/team_beer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mcscott142/team_beer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mcscott142/team_beer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mcscott142/team_beer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mcscott142/team_beer/statuses/{sha}","languages_url":"https://api.github.com/repos/Mcscott142/team_beer/languages","stargazers_url":"https://api.github.com/repos/Mcscott142/team_beer/stargazers","contributors_url":"https://api.github.com/repos/Mcscott142/team_beer/contributors","subscribers_url":"https://api.github.com/repos/Mcscott142/team_beer/subscribers","subscription_url":"https://api.github.com/repos/Mcscott142/team_beer/subscription","commits_url":"https://api.github.com/repos/Mcscott142/team_beer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mcscott142/team_beer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mcscott142/team_beer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mcscott142/team_beer/issues/comments/{number}","contents_url":"https://api.github.com/repos/Mcscott142/team_beer/contents/{+path}","compare_url":"https://api.github.com/repos/Mcscott142/team_beer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mcscott142/team_beer/merges","archive_url":"https://api.github.com/repos/Mcscott142/team_beer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mcscott142/team_beer/downloads","issues_url":"https://api.github.com/repos/Mcscott142/team_beer/issues{/number}","pulls_url":"https://api.github.com/repos/Mcscott142/team_beer/pulls{/number}","milestones_url":"https://api.github.com/repos/Mcscott142/team_beer/milestones{/number}","notifications_url":"https://api.github.com/repos/Mcscott142/team_beer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mcscott142/team_beer/labels{/name}","releases_url":"https://api.github.com/repos/Mcscott142/team_beer/releases{/id}","created_at":"2014-06-23T19:41:32Z","updated_at":"2014-06-25T15:20:26Z","pushed_at":"2014-06-26T18:32:22Z","git_url":"git://github.com/Mcscott142/team_beer.git","ssh_url":"git@github.com:Mcscott142/team_beer.git","clone_url":"https://github.com/Mcscott142/team_beer.git","svn_url":"https://github.com/Mcscott142/team_beer","homepage":null,"size":616,"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":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"Mcscott142:master","ref":"master","sha":"1acd1b6d364d935030f5d645a2266f9df43c7dc3","user":{"login":"Mcscott142","id":6877299,"avatar_url":"https://avatars.githubusercontent.com/u/6877299?","gravatar_id":"209c17f0b1b0e4f98aaa8412658a6a2b","url":"https://api.github.com/users/Mcscott142","html_url":"https://github.com/Mcscott142","followers_url":"https://api.github.com/users/Mcscott142/followers","following_url":"https://api.github.com/users/Mcscott142/following{/other_user}","gists_url":"https://api.github.com/users/Mcscott142/gists{/gist_id}","starred_url":"https://api.github.com/users/Mcscott142/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mcscott142/subscriptions","organizations_url":"https://api.github.com/users/Mcscott142/orgs","repos_url":"https://api.github.com/users/Mcscott142/repos","events_url":"https://api.github.com/users/Mcscott142/events{/privacy}","received_events_url":"https://api.github.com/users/Mcscott142/received_events","type":"User","site_admin":false},"repo":{"id":21139736,"name":"team_beer","full_name":"Mcscott142/team_beer","owner":{"login":"Mcscott142","id":6877299,"avatar_url":"https://avatars.githubusercontent.com/u/6877299?","gravatar_id":"209c17f0b1b0e4f98aaa8412658a6a2b","url":"https://api.github.com/users/Mcscott142","html_url":"https://github.com/Mcscott142","followers_url":"https://api.github.com/users/Mcscott142/followers","following_url":"https://api.github.com/users/Mcscott142/following{/other_user}","gists_url":"https://api.github.com/users/Mcscott142/gists{/gist_id}","starred_url":"https://api.github.com/users/Mcscott142/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mcscott142/subscriptions","organizations_url":"https://api.github.com/users/Mcscott142/orgs","repos_url":"https://api.github.com/users/Mcscott142/repos","events_url":"https://api.github.com/users/Mcscott142/events{/privacy}","received_events_url":"https://api.github.com/users/Mcscott142/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mcscott142/team_beer","description":"Team Beer Group Project","fork":false,"url":"https://api.github.com/repos/Mcscott142/team_beer","forks_url":"https://api.github.com/repos/Mcscott142/team_beer/forks","keys_url":"https://api.github.com/repos/Mcscott142/team_beer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mcscott142/team_beer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mcscott142/team_beer/teams","hooks_url":"https://api.github.com/repos/Mcscott142/team_beer/hooks","issue_events_url":"https://api.github.com/repos/Mcscott142/team_beer/issues/events{/number}","events_url":"https://api.github.com/repos/Mcscott142/team_beer/events","assignees_url":"https://api.github.com/repos/Mcscott142/team_beer/assignees{/user}","branches_url":"https://api.github.com/repos/Mcscott142/team_beer/branches{/branch}","tags_url":"https://api.github.com/repos/Mcscott142/team_beer/tags","blobs_url":"https://api.github.com/repos/Mcscott142/team_beer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mcscott142/team_beer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mcscott142/team_beer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mcscott142/team_beer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mcscott142/team_beer/statuses/{sha}","languages_url":"https://api.github.com/repos/Mcscott142/team_beer/languages","stargazers_url":"https://api.github.com/repos/Mcscott142/team_beer/stargazers","contributors_url":"https://api.github.com/repos/Mcscott142/team_beer/contributors","subscribers_url":"https://api.github.com/repos/Mcscott142/team_beer/subscribers","subscription_url":"https://api.github.com/repos/Mcscott142/team_beer/subscription","commits_url":"https://api.github.com/repos/Mcscott142/team_beer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mcscott142/team_beer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mcscott142/team_beer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mcscott142/team_beer/issues/comments/{number}","contents_url":"https://api.github.com/repos/Mcscott142/team_beer/contents/{+path}","compare_url":"https://api.github.com/repos/Mcscott142/team_beer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mcscott142/team_beer/merges","archive_url":"https://api.github.com/repos/Mcscott142/team_beer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mcscott142/team_beer/downloads","issues_url":"https://api.github.com/repos/Mcscott142/team_beer/issues{/number}","pulls_url":"https://api.github.com/repos/Mcscott142/team_beer/pulls{/number}","milestones_url":"https://api.github.com/repos/Mcscott142/team_beer/milestones{/number}","notifications_url":"https://api.github.com/repos/Mcscott142/team_beer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mcscott142/team_beer/labels{/name}","releases_url":"https://api.github.com/repos/Mcscott142/team_beer/releases{/id}","created_at":"2014-06-23T19:41:32Z","updated_at":"2014-06-25T15:20:26Z","pushed_at":"2014-06-26T18:32:22Z","git_url":"git://github.com/Mcscott142/team_beer.git","ssh_url":"git@github.com:Mcscott142/team_beer.git","clone_url":"https://github.com/Mcscott142/team_beer.git","svn_url":"https://github.com/Mcscott142/team_beer","homepage":null,"size":616,"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":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Mcscott142/team_beer/pulls/24"},"html":{"href":"https://github.com/Mcscott142/team_beer/pull/24"},"issue":{"href":"https://api.github.com/repos/Mcscott142/team_beer/issues/24"},"comments":{"href":"https://api.github.com/repos/Mcscott142/team_beer/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/Mcscott142/team_beer/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/Mcscott142/team_beer/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Mcscott142/team_beer/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/Mcscott142/team_beer/statuses/50ea21f703cde28613b6e96b173001c553b197f5"}}}}