{"action":"created","comment":{"url":"https://api.github.com/repos/openhq/openhq/pulls/comments/39186104","id":39186104,"diff_hunk":"@@ -0,0 +1,8 @@\n+class PublicController < ApplicationController\n+  layout \"auth\"\n+  skip_before_action :ensure_team!\n+  skip_before_action :require_login\n+\n+  def index","path":"app/controllers/public_controller.rb","position":6,"original_position":6,"commit_id":"298d567b2959dfb0c2180f3470b234872c4b8f70","original_commit_id":"298d567b2959dfb0c2180f3470b234872c4b8f70","user":{"login":"phawk","id":456019,"avatar_url":"https://avatars.githubusercontent.com/u/456019?v=3","gravatar_id":"","url":"https://api.github.com/users/phawk","html_url":"https://github.com/phawk","followers_url":"https://api.github.com/users/phawk/followers","following_url":"https://api.github.com/users/phawk/following{/other_user}","gists_url":"https://api.github.com/users/phawk/gists{/gist_id}","starred_url":"https://api.github.com/users/phawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phawk/subscriptions","organizations_url":"https://api.github.com/users/phawk/orgs","repos_url":"https://api.github.com/users/phawk/repos","events_url":"https://api.github.com/users/phawk/events{/privacy}","received_events_url":"https://api.github.com/users/phawk/received_events","type":"User","site_admin":false},"body":"This is just the public site, where subdomain is empty or 'www'. ","created_at":"2015-09-10T17:13:32Z","updated_at":"2015-09-10T17:13:32Z","html_url":"https://github.com/openhq/openhq/pull/62#discussion_r39186104","pull_request_url":"https://api.github.com/repos/openhq/openhq/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/openhq/openhq/pulls/comments/39186104"},"html":{"href":"https://github.com/openhq/openhq/pull/62#discussion_r39186104"},"pull_request":{"href":"https://api.github.com/repos/openhq/openhq/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/openhq/openhq/pulls/62","id":44693460,"html_url":"https://github.com/openhq/openhq/pull/62","diff_url":"https://github.com/openhq/openhq/pull/62.diff","patch_url":"https://github.com/openhq/openhq/pull/62.patch","issue_url":"https://api.github.com/repos/openhq/openhq/issues/62","number":62,"state":"open","locked":false,"title":"Teams","user":{"login":"phawk","id":456019,"avatar_url":"https://avatars.githubusercontent.com/u/456019?v=3","gravatar_id":"","url":"https://api.github.com/users/phawk","html_url":"https://github.com/phawk","followers_url":"https://api.github.com/users/phawk/followers","following_url":"https://api.github.com/users/phawk/following{/other_user}","gists_url":"https://api.github.com/users/phawk/gists{/gist_id}","starred_url":"https://api.github.com/users/phawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phawk/subscriptions","organizations_url":"https://api.github.com/users/phawk/orgs","repos_url":"https://api.github.com/users/phawk/repos","events_url":"https://api.github.com/users/phawk/events{/privacy}","received_events_url":"https://api.github.com/users/phawk/received_events","type":"User","site_admin":false},"body":"- Add teams, one team per subdomain\r\n- Use TeamUser model to associate users with a team, both for active users and for invites. This allows many users to join many teams.\r\n- Moved role to TeamUser so a user can have a different role per team","created_at":"2015-09-10T17:06:03Z","updated_at":"2015-09-10T17:13:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44983e6eef4e3922c340a88bea00fd4df55d655b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openhq/openhq/pulls/62/commits","review_comments_url":"https://api.github.com/repos/openhq/openhq/pulls/62/comments","review_comment_url":"https://api.github.com/repos/openhq/openhq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openhq/openhq/issues/62/comments","statuses_url":"https://api.github.com/repos/openhq/openhq/statuses/298d567b2959dfb0c2180f3470b234872c4b8f70","head":{"label":"openhq:teams","ref":"teams","sha":"298d567b2959dfb0c2180f3470b234872c4b8f70","user":{"login":"openhq","id":12968000,"avatar_url":"https://avatars.githubusercontent.com/u/12968000?v=3","gravatar_id":"","url":"https://api.github.com/users/openhq","html_url":"https://github.com/openhq","followers_url":"https://api.github.com/users/openhq/followers","following_url":"https://api.github.com/users/openhq/following{/other_user}","gists_url":"https://api.github.com/users/openhq/gists{/gist_id}","starred_url":"https://api.github.com/users/openhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhq/subscriptions","organizations_url":"https://api.github.com/users/openhq/orgs","repos_url":"https://api.github.com/users/openhq/repos","events_url":"https://api.github.com/users/openhq/events{/privacy}","received_events_url":"https://api.github.com/users/openhq/received_events","type":"Organization","site_admin":false},"repo":{"id":30417605,"name":"openhq","full_name":"openhq/openhq","owner":{"login":"openhq","id":12968000,"avatar_url":"https://avatars.githubusercontent.com/u/12968000?v=3","gravatar_id":"","url":"https://api.github.com/users/openhq","html_url":"https://github.com/openhq","followers_url":"https://api.github.com/users/openhq/followers","following_url":"https://api.github.com/users/openhq/following{/other_user}","gists_url":"https://api.github.com/users/openhq/gists{/gist_id}","starred_url":"https://api.github.com/users/openhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhq/subscriptions","organizations_url":"https://api.github.com/users/openhq/orgs","repos_url":"https://api.github.com/users/openhq/repos","events_url":"https://api.github.com/users/openhq/events{/privacy}","received_events_url":"https://api.github.com/users/openhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openhq/openhq","description":"","fork":false,"url":"https://api.github.com/repos/openhq/openhq","forks_url":"https://api.github.com/repos/openhq/openhq/forks","keys_url":"https://api.github.com/repos/openhq/openhq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhq/openhq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhq/openhq/teams","hooks_url":"https://api.github.com/repos/openhq/openhq/hooks","issue_events_url":"https://api.github.com/repos/openhq/openhq/issues/events{/number}","events_url":"https://api.github.com/repos/openhq/openhq/events","assignees_url":"https://api.github.com/repos/openhq/openhq/assignees{/user}","branches_url":"https://api.github.com/repos/openhq/openhq/branches{/branch}","tags_url":"https://api.github.com/repos/openhq/openhq/tags","blobs_url":"https://api.github.com/repos/openhq/openhq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhq/openhq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhq/openhq/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhq/openhq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhq/openhq/statuses/{sha}","languages_url":"https://api.github.com/repos/openhq/openhq/languages","stargazers_url":"https://api.github.com/repos/openhq/openhq/stargazers","contributors_url":"https://api.github.com/repos/openhq/openhq/contributors","subscribers_url":"https://api.github.com/repos/openhq/openhq/subscribers","subscription_url":"https://api.github.com/repos/openhq/openhq/subscription","commits_url":"https://api.github.com/repos/openhq/openhq/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhq/openhq/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhq/openhq/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhq/openhq/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhq/openhq/contents/{+path}","compare_url":"https://api.github.com/repos/openhq/openhq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhq/openhq/merges","archive_url":"https://api.github.com/repos/openhq/openhq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhq/openhq/downloads","issues_url":"https://api.github.com/repos/openhq/openhq/issues{/number}","pulls_url":"https://api.github.com/repos/openhq/openhq/pulls{/number}","milestones_url":"https://api.github.com/repos/openhq/openhq/milestones{/number}","notifications_url":"https://api.github.com/repos/openhq/openhq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhq/openhq/labels{/name}","releases_url":"https://api.github.com/repos/openhq/openhq/releases{/id}","created_at":"2015-02-06T15:05:04Z","updated_at":"2015-07-09T10:55:59Z","pushed_at":"2015-09-10T17:09:41Z","git_url":"git://github.com/openhq/openhq.git","ssh_url":"git@github.com:openhq/openhq.git","clone_url":"https://github.com/openhq/openhq.git","svn_url":"https://github.com/openhq/openhq","homepage":null,"size":5150,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"openhq:master","ref":"master","sha":"1a539bf32728c9efb89c9f2bd105f2a4694293a5","user":{"login":"openhq","id":12968000,"avatar_url":"https://avatars.githubusercontent.com/u/12968000?v=3","gravatar_id":"","url":"https://api.github.com/users/openhq","html_url":"https://github.com/openhq","followers_url":"https://api.github.com/users/openhq/followers","following_url":"https://api.github.com/users/openhq/following{/other_user}","gists_url":"https://api.github.com/users/openhq/gists{/gist_id}","starred_url":"https://api.github.com/users/openhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhq/subscriptions","organizations_url":"https://api.github.com/users/openhq/orgs","repos_url":"https://api.github.com/users/openhq/repos","events_url":"https://api.github.com/users/openhq/events{/privacy}","received_events_url":"https://api.github.com/users/openhq/received_events","type":"Organization","site_admin":false},"repo":{"id":30417605,"name":"openhq","full_name":"openhq/openhq","owner":{"login":"openhq","id":12968000,"avatar_url":"https://avatars.githubusercontent.com/u/12968000?v=3","gravatar_id":"","url":"https://api.github.com/users/openhq","html_url":"https://github.com/openhq","followers_url":"https://api.github.com/users/openhq/followers","following_url":"https://api.github.com/users/openhq/following{/other_user}","gists_url":"https://api.github.com/users/openhq/gists{/gist_id}","starred_url":"https://api.github.com/users/openhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhq/subscriptions","organizations_url":"https://api.github.com/users/openhq/orgs","repos_url":"https://api.github.com/users/openhq/repos","events_url":"https://api.github.com/users/openhq/events{/privacy}","received_events_url":"https://api.github.com/users/openhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openhq/openhq","description":"","fork":false,"url":"https://api.github.com/repos/openhq/openhq","forks_url":"https://api.github.com/repos/openhq/openhq/forks","keys_url":"https://api.github.com/repos/openhq/openhq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhq/openhq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhq/openhq/teams","hooks_url":"https://api.github.com/repos/openhq/openhq/hooks","issue_events_url":"https://api.github.com/repos/openhq/openhq/issues/events{/number}","events_url":"https://api.github.com/repos/openhq/openhq/events","assignees_url":"https://api.github.com/repos/openhq/openhq/assignees{/user}","branches_url":"https://api.github.com/repos/openhq/openhq/branches{/branch}","tags_url":"https://api.github.com/repos/openhq/openhq/tags","blobs_url":"https://api.github.com/repos/openhq/openhq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhq/openhq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhq/openhq/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhq/openhq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhq/openhq/statuses/{sha}","languages_url":"https://api.github.com/repos/openhq/openhq/languages","stargazers_url":"https://api.github.com/repos/openhq/openhq/stargazers","contributors_url":"https://api.github.com/repos/openhq/openhq/contributors","subscribers_url":"https://api.github.com/repos/openhq/openhq/subscribers","subscription_url":"https://api.github.com/repos/openhq/openhq/subscription","commits_url":"https://api.github.com/repos/openhq/openhq/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhq/openhq/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhq/openhq/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhq/openhq/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhq/openhq/contents/{+path}","compare_url":"https://api.github.com/repos/openhq/openhq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhq/openhq/merges","archive_url":"https://api.github.com/repos/openhq/openhq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhq/openhq/downloads","issues_url":"https://api.github.com/repos/openhq/openhq/issues{/number}","pulls_url":"https://api.github.com/repos/openhq/openhq/pulls{/number}","milestones_url":"https://api.github.com/repos/openhq/openhq/milestones{/number}","notifications_url":"https://api.github.com/repos/openhq/openhq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhq/openhq/labels{/name}","releases_url":"https://api.github.com/repos/openhq/openhq/releases{/id}","created_at":"2015-02-06T15:05:04Z","updated_at":"2015-07-09T10:55:59Z","pushed_at":"2015-09-10T17:09:41Z","git_url":"git://github.com/openhq/openhq.git","ssh_url":"git@github.com:openhq/openhq.git","clone_url":"https://github.com/openhq/openhq.git","svn_url":"https://github.com/openhq/openhq","homepage":null,"size":5150,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhq/openhq/pulls/62"},"html":{"href":"https://github.com/openhq/openhq/pull/62"},"issue":{"href":"https://api.github.com/repos/openhq/openhq/issues/62"},"comments":{"href":"https://api.github.com/repos/openhq/openhq/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/openhq/openhq/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/openhq/openhq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openhq/openhq/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/openhq/openhq/statuses/298d567b2959dfb0c2180f3470b234872c4b8f70"}}}}