{"action":"created","comment":{"url":"https://api.github.com/repos/chi6rag/HourGlass/pulls/comments/30689141","id":30689141,"diff_hunk":"@@ -0,0 +1,36 @@\n+class ActivitiesController < ApplicationController\n+\tinclude ActivitiesHelper\n+\tbefore_filter :redirect_to_root_if_not_logged_in\n+\tbefore_filter :redirect_to_root_if_not_admin, only: :dashboard","path":"app/controllers/activities_controller.rb","position":4,"original_position":4,"commit_id":"b0fae10806acfe9d15094f448534c36cfbcd85f8","original_commit_id":"b0fae10806acfe9d15094f448534c36cfbcd85f8","user":{"login":"bvsatyaram","id":166072,"avatar_url":"https://avatars.githubusercontent.com/u/166072?v=3","gravatar_id":"","url":"https://api.github.com/users/bvsatyaram","html_url":"https://github.com/bvsatyaram","followers_url":"https://api.github.com/users/bvsatyaram/followers","following_url":"https://api.github.com/users/bvsatyaram/following{/other_user}","gists_url":"https://api.github.com/users/bvsatyaram/gists{/gist_id}","starred_url":"https://api.github.com/users/bvsatyaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvsatyaram/subscriptions","organizations_url":"https://api.github.com/users/bvsatyaram/orgs","repos_url":"https://api.github.com/users/bvsatyaram/repos","events_url":"https://api.github.com/users/bvsatyaram/events{/privacy}","received_events_url":"https://api.github.com/users/bvsatyaram/received_events","type":"User","site_admin":false},"body":"`:authorize_admin!` is a better name","created_at":"2015-05-20T10:43:05Z","updated_at":"2015-05-20T10:43:05Z","html_url":"https://github.com/chi6rag/HourGlass/pull/1#discussion_r30689141","pull_request_url":"https://api.github.com/repos/chi6rag/HourGlass/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/chi6rag/HourGlass/pulls/comments/30689141"},"html":{"href":"https://github.com/chi6rag/HourGlass/pull/1#discussion_r30689141"},"pull_request":{"href":"https://api.github.com/repos/chi6rag/HourGlass/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/chi6rag/HourGlass/pulls/1","id":35599621,"html_url":"https://github.com/chi6rag/HourGlass/pull/1","diff_url":"https://github.com/chi6rag/HourGlass/pull/1.diff","patch_url":"https://github.com/chi6rag/HourGlass/pull/1.patch","issue_url":"https://api.github.com/repos/chi6rag/HourGlass/issues/1","number":1,"state":"closed","locked":false,"title":"Sorry for the overload","user":{"login":"chi6rag","id":6065869,"avatar_url":"https://avatars.githubusercontent.com/u/6065869?v=3","gravatar_id":"","url":"https://api.github.com/users/chi6rag","html_url":"https://github.com/chi6rag","followers_url":"https://api.github.com/users/chi6rag/followers","following_url":"https://api.github.com/users/chi6rag/following{/other_user}","gists_url":"https://api.github.com/users/chi6rag/gists{/gist_id}","starred_url":"https://api.github.com/users/chi6rag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chi6rag/subscriptions","organizations_url":"https://api.github.com/users/chi6rag/orgs","repos_url":"https://api.github.com/users/chi6rag/repos","events_url":"https://api.github.com/users/chi6rag/events{/privacy}","received_events_url":"https://api.github.com/users/chi6rag/received_events","type":"User","site_admin":false},"body":"I'll make sure that I always work on a separate branch and push to master for review\r\n","created_at":"2015-05-18T02:54:23Z","updated_at":"2015-05-20T10:43:05Z","closed_at":"2015-05-20T03:32:05Z","merged_at":null,"merge_commit_sha":"a03725ad4abb44c07503947436284f2baf4ec59b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chi6rag/HourGlass/pulls/1/commits","review_comments_url":"https://api.github.com/repos/chi6rag/HourGlass/pulls/1/comments","review_comment_url":"https://api.github.com/repos/chi6rag/HourGlass/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chi6rag/HourGlass/issues/1/comments","statuses_url":"https://api.github.com/repos/chi6rag/HourGlass/statuses/b0fae10806acfe9d15094f448534c36cfbcd85f8","head":{"label":"chi6rag:master","ref":"master","sha":"b0fae10806acfe9d15094f448534c36cfbcd85f8","user":{"login":"chi6rag","id":6065869,"avatar_url":"https://avatars.githubusercontent.com/u/6065869?v=3","gravatar_id":"","url":"https://api.github.com/users/chi6rag","html_url":"https://github.com/chi6rag","followers_url":"https://api.github.com/users/chi6rag/followers","following_url":"https://api.github.com/users/chi6rag/following{/other_user}","gists_url":"https://api.github.com/users/chi6rag/gists{/gist_id}","starred_url":"https://api.github.com/users/chi6rag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chi6rag/subscriptions","organizations_url":"https://api.github.com/users/chi6rag/orgs","repos_url":"https://api.github.com/users/chi6rag/repos","events_url":"https://api.github.com/users/chi6rag/events{/privacy}","received_events_url":"https://api.github.com/users/chi6rag/received_events","type":"User","site_admin":false},"repo":{"id":35591746,"name":"HourGlass","full_name":"chi6rag/HourGlass","owner":{"login":"chi6rag","id":6065869,"avatar_url":"https://avatars.githubusercontent.com/u/6065869?v=3","gravatar_id":"","url":"https://api.github.com/users/chi6rag","html_url":"https://github.com/chi6rag","followers_url":"https://api.github.com/users/chi6rag/followers","following_url":"https://api.github.com/users/chi6rag/following{/other_user}","gists_url":"https://api.github.com/users/chi6rag/gists{/gist_id}","starred_url":"https://api.github.com/users/chi6rag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chi6rag/subscriptions","organizations_url":"https://api.github.com/users/chi6rag/orgs","repos_url":"https://api.github.com/users/chi6rag/repos","events_url":"https://api.github.com/users/chi6rag/events{/privacy}","received_events_url":"https://api.github.com/users/chi6rag/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chi6rag/HourGlass","description":"HourGlass lets you track the time you spend physically at a location.","fork":false,"url":"https://api.github.com/repos/chi6rag/HourGlass","forks_url":"https://api.github.com/repos/chi6rag/HourGlass/forks","keys_url":"https://api.github.com/repos/chi6rag/HourGlass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chi6rag/HourGlass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chi6rag/HourGlass/teams","hooks_url":"https://api.github.com/repos/chi6rag/HourGlass/hooks","issue_events_url":"https://api.github.com/repos/chi6rag/HourGlass/issues/events{/number}","events_url":"https://api.github.com/repos/chi6rag/HourGlass/events","assignees_url":"https://api.github.com/repos/chi6rag/HourGlass/assignees{/user}","branches_url":"https://api.github.com/repos/chi6rag/HourGlass/branches{/branch}","tags_url":"https://api.github.com/repos/chi6rag/HourGlass/tags","blobs_url":"https://api.github.com/repos/chi6rag/HourGlass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chi6rag/HourGlass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chi6rag/HourGlass/git/refs{/sha}","trees_url":"https://api.github.com/repos/chi6rag/HourGlass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chi6rag/HourGlass/statuses/{sha}","languages_url":"https://api.github.com/repos/chi6rag/HourGlass/languages","stargazers_url":"https://api.github.com/repos/chi6rag/HourGlass/stargazers","contributors_url":"https://api.github.com/repos/chi6rag/HourGlass/contributors","subscribers_url":"https://api.github.com/repos/chi6rag/HourGlass/subscribers","subscription_url":"https://api.github.com/repos/chi6rag/HourGlass/subscription","commits_url":"https://api.github.com/repos/chi6rag/HourGlass/commits{/sha}","git_commits_url":"https://api.github.com/repos/chi6rag/HourGlass/git/commits{/sha}","comments_url":"https://api.github.com/repos/chi6rag/HourGlass/comments{/number}","issue_comment_url":"https://api.github.com/repos/chi6rag/HourGlass/issues/comments{/number}","contents_url":"https://api.github.com/repos/chi6rag/HourGlass/contents/{+path}","compare_url":"https://api.github.com/repos/chi6rag/HourGlass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chi6rag/HourGlass/merges","archive_url":"https://api.github.com/repos/chi6rag/HourGlass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chi6rag/HourGlass/downloads","issues_url":"https://api.github.com/repos/chi6rag/HourGlass/issues{/number}","pulls_url":"https://api.github.com/repos/chi6rag/HourGlass/pulls{/number}","milestones_url":"https://api.github.com/repos/chi6rag/HourGlass/milestones{/number}","notifications_url":"https://api.github.com/repos/chi6rag/HourGlass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chi6rag/HourGlass/labels{/name}","releases_url":"https://api.github.com/repos/chi6rag/HourGlass/releases{/id}","created_at":"2015-05-14T05:01:23Z","updated_at":"2015-05-20T03:31:21Z","pushed_at":"2015-05-20T06:23:41Z","git_url":"git://github.com/chi6rag/HourGlass.git","ssh_url":"git@github.com:chi6rag/HourGlass.git","clone_url":"https://github.com/chi6rag/HourGlass.git","svn_url":"https://github.com/chi6rag/HourGlass","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"chi6rag:review","ref":"review","sha":"c8ddece81cbf41b33fd33f9d37184a6faf007896","user":{"login":"chi6rag","id":6065869,"avatar_url":"https://avatars.githubusercontent.com/u/6065869?v=3","gravatar_id":"","url":"https://api.github.com/users/chi6rag","html_url":"https://github.com/chi6rag","followers_url":"https://api.github.com/users/chi6rag/followers","following_url":"https://api.github.com/users/chi6rag/following{/other_user}","gists_url":"https://api.github.com/users/chi6rag/gists{/gist_id}","starred_url":"https://api.github.com/users/chi6rag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chi6rag/subscriptions","organizations_url":"https://api.github.com/users/chi6rag/orgs","repos_url":"https://api.github.com/users/chi6rag/repos","events_url":"https://api.github.com/users/chi6rag/events{/privacy}","received_events_url":"https://api.github.com/users/chi6rag/received_events","type":"User","site_admin":false},"repo":{"id":35591746,"name":"HourGlass","full_name":"chi6rag/HourGlass","owner":{"login":"chi6rag","id":6065869,"avatar_url":"https://avatars.githubusercontent.com/u/6065869?v=3","gravatar_id":"","url":"https://api.github.com/users/chi6rag","html_url":"https://github.com/chi6rag","followers_url":"https://api.github.com/users/chi6rag/followers","following_url":"https://api.github.com/users/chi6rag/following{/other_user}","gists_url":"https://api.github.com/users/chi6rag/gists{/gist_id}","starred_url":"https://api.github.com/users/chi6rag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chi6rag/subscriptions","organizations_url":"https://api.github.com/users/chi6rag/orgs","repos_url":"https://api.github.com/users/chi6rag/repos","events_url":"https://api.github.com/users/chi6rag/events{/privacy}","received_events_url":"https://api.github.com/users/chi6rag/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chi6rag/HourGlass","description":"HourGlass lets you track the time you spend physically at a location.","fork":false,"url":"https://api.github.com/repos/chi6rag/HourGlass","forks_url":"https://api.github.com/repos/chi6rag/HourGlass/forks","keys_url":"https://api.github.com/repos/chi6rag/HourGlass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chi6rag/HourGlass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chi6rag/HourGlass/teams","hooks_url":"https://api.github.com/repos/chi6rag/HourGlass/hooks","issue_events_url":"https://api.github.com/repos/chi6rag/HourGlass/issues/events{/number}","events_url":"https://api.github.com/repos/chi6rag/HourGlass/events","assignees_url":"https://api.github.com/repos/chi6rag/HourGlass/assignees{/user}","branches_url":"https://api.github.com/repos/chi6rag/HourGlass/branches{/branch}","tags_url":"https://api.github.com/repos/chi6rag/HourGlass/tags","blobs_url":"https://api.github.com/repos/chi6rag/HourGlass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chi6rag/HourGlass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chi6rag/HourGlass/git/refs{/sha}","trees_url":"https://api.github.com/repos/chi6rag/HourGlass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chi6rag/HourGlass/statuses/{sha}","languages_url":"https://api.github.com/repos/chi6rag/HourGlass/languages","stargazers_url":"https://api.github.com/repos/chi6rag/HourGlass/stargazers","contributors_url":"https://api.github.com/repos/chi6rag/HourGlass/contributors","subscribers_url":"https://api.github.com/repos/chi6rag/HourGlass/subscribers","subscription_url":"https://api.github.com/repos/chi6rag/HourGlass/subscription","commits_url":"https://api.github.com/repos/chi6rag/HourGlass/commits{/sha}","git_commits_url":"https://api.github.com/repos/chi6rag/HourGlass/git/commits{/sha}","comments_url":"https://api.github.com/repos/chi6rag/HourGlass/comments{/number}","issue_comment_url":"https://api.github.com/repos/chi6rag/HourGlass/issues/comments{/number}","contents_url":"https://api.github.com/repos/chi6rag/HourGlass/contents/{+path}","compare_url":"https://api.github.com/repos/chi6rag/HourGlass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chi6rag/HourGlass/merges","archive_url":"https://api.github.com/repos/chi6rag/HourGlass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chi6rag/HourGlass/downloads","issues_url":"https://api.github.com/repos/chi6rag/HourGlass/issues{/number}","pulls_url":"https://api.github.com/repos/chi6rag/HourGlass/pulls{/number}","milestones_url":"https://api.github.com/repos/chi6rag/HourGlass/milestones{/number}","notifications_url":"https://api.github.com/repos/chi6rag/HourGlass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chi6rag/HourGlass/labels{/name}","releases_url":"https://api.github.com/repos/chi6rag/HourGlass/releases{/id}","created_at":"2015-05-14T05:01:23Z","updated_at":"2015-05-20T03:31:21Z","pushed_at":"2015-05-20T06:23:41Z","git_url":"git://github.com/chi6rag/HourGlass.git","ssh_url":"git@github.com:chi6rag/HourGlass.git","clone_url":"https://github.com/chi6rag/HourGlass.git","svn_url":"https://github.com/chi6rag/HourGlass","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chi6rag/HourGlass/pulls/1"},"html":{"href":"https://github.com/chi6rag/HourGlass/pull/1"},"issue":{"href":"https://api.github.com/repos/chi6rag/HourGlass/issues/1"},"comments":{"href":"https://api.github.com/repos/chi6rag/HourGlass/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/chi6rag/HourGlass/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/chi6rag/HourGlass/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chi6rag/HourGlass/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/chi6rag/HourGlass/statuses/b0fae10806acfe9d15094f448534c36cfbcd85f8"}}}}