{"action":"opened","number":98,"pull_request":{"url":"https://api.github.com/repos/usetint/tint/pulls/98","id":78559978,"html_url":"https://github.com/usetint/tint/pull/98","diff_url":"https://github.com/usetint/tint/pull/98.diff","patch_url":"https://github.com/usetint/tint/pull/98.patch","issue_url":"https://api.github.com/repos/usetint/tint/issues/98","number":98,"state":"open","locked":false,"title":"Refactor the global constants to use Tint::Site","user":{"login":"singpolyma","id":12770,"avatar_url":"https://avatars.githubusercontent.com/u/12770?v=3","gravatar_id":"","url":"https://api.github.com/users/singpolyma","html_url":"https://github.com/singpolyma","followers_url":"https://api.github.com/users/singpolyma/followers","following_url":"https://api.github.com/users/singpolyma/following{/other_user}","gists_url":"https://api.github.com/users/singpolyma/gists{/gist_id}","starred_url":"https://api.github.com/users/singpolyma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singpolyma/subscriptions","organizations_url":"https://api.github.com/users/singpolyma/orgs","repos_url":"https://api.github.com/users/singpolyma/repos","events_url":"https://api.github.com/users/singpolyma/events{/privacy}","received_events_url":"https://api.github.com/users/singpolyma/received_events","type":"User","site_admin":false},"body":"Routes are all relative to /:site now and everything loads the site at\r\nthat id to determine its settings.  If SITE_PATH is set, then no DB is\r\ncreated and instead a Tint::Site with the correct id is ginned up.\r\nEverything should work as it did before so long as SITE_PATH is set.\r\n\r\nThis basically gets us to multitenancy.  Though users cannot yet create\r\na site (#42) and we do not yet clone or sync with a remote to\r\nmeaningfully create the local cache.\r\n\r\nHowever, this *does* contain enough of the permissions bits to restrict\r\na user to only see their own sites.\r\n\r\nCloses #41","created_at":"2016-07-23T01:55:03Z","updated_at":"2016-07-23T01:55:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"ericroberts","id":695547,"avatar_url":"https://avatars.githubusercontent.com/u/695547?v=3","gravatar_id":"","url":"https://api.github.com/users/ericroberts","html_url":"https://github.com/ericroberts","followers_url":"https://api.github.com/users/ericroberts/followers","following_url":"https://api.github.com/users/ericroberts/following{/other_user}","gists_url":"https://api.github.com/users/ericroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/ericroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericroberts/subscriptions","organizations_url":"https://api.github.com/users/ericroberts/orgs","repos_url":"https://api.github.com/users/ericroberts/repos","events_url":"https://api.github.com/users/ericroberts/events{/privacy}","received_events_url":"https://api.github.com/users/ericroberts/received_events","type":"User","site_admin":false},"assignees":[{"login":"ericroberts","id":695547,"avatar_url":"https://avatars.githubusercontent.com/u/695547?v=3","gravatar_id":"","url":"https://api.github.com/users/ericroberts","html_url":"https://github.com/ericroberts","followers_url":"https://api.github.com/users/ericroberts/followers","following_url":"https://api.github.com/users/ericroberts/following{/other_user}","gists_url":"https://api.github.com/users/ericroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/ericroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericroberts/subscriptions","organizations_url":"https://api.github.com/users/ericroberts/orgs","repos_url":"https://api.github.com/users/ericroberts/repos","events_url":"https://api.github.com/users/ericroberts/events{/privacy}","received_events_url":"https://api.github.com/users/ericroberts/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/usetint/tint/milestones/4","html_url":"https://github.com/usetint/tint/milestones/Hosted%20Service","labels_url":"https://api.github.com/repos/usetint/tint/milestones/4/labels","id":1892095,"number":4,"title":"Hosted Service","description":"With build system, CDN pushing, sync to git remotes","creator":{"login":"ericroberts","id":695547,"avatar_url":"https://avatars.githubusercontent.com/u/695547?v=3","gravatar_id":"","url":"https://api.github.com/users/ericroberts","html_url":"https://github.com/ericroberts","followers_url":"https://api.github.com/users/ericroberts/followers","following_url":"https://api.github.com/users/ericroberts/following{/other_user}","gists_url":"https://api.github.com/users/ericroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/ericroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericroberts/subscriptions","organizations_url":"https://api.github.com/users/ericroberts/orgs","repos_url":"https://api.github.com/users/ericroberts/repos","events_url":"https://api.github.com/users/ericroberts/events{/privacy}","received_events_url":"https://api.github.com/users/ericroberts/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":5,"state":"open","created_at":"2016-07-19T14:11:25Z","updated_at":"2016-07-23T01:55:03Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/usetint/tint/pulls/98/commits","review_comments_url":"https://api.github.com/repos/usetint/tint/pulls/98/comments","review_comment_url":"https://api.github.com/repos/usetint/tint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/usetint/tint/issues/98/comments","statuses_url":"https://api.github.com/repos/usetint/tint/statuses/4acdef85979492f302df00917c308ff5d2ec2647","head":{"label":"singpolyma:refactor-globals-to-site","ref":"refactor-globals-to-site","sha":"4acdef85979492f302df00917c308ff5d2ec2647","user":{"login":"singpolyma","id":12770,"avatar_url":"https://avatars.githubusercontent.com/u/12770?v=3","gravatar_id":"","url":"https://api.github.com/users/singpolyma","html_url":"https://github.com/singpolyma","followers_url":"https://api.github.com/users/singpolyma/followers","following_url":"https://api.github.com/users/singpolyma/following{/other_user}","gists_url":"https://api.github.com/users/singpolyma/gists{/gist_id}","starred_url":"https://api.github.com/users/singpolyma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singpolyma/subscriptions","organizations_url":"https://api.github.com/users/singpolyma/orgs","repos_url":"https://api.github.com/users/singpolyma/repos","events_url":"https://api.github.com/users/singpolyma/events{/privacy}","received_events_url":"https://api.github.com/users/singpolyma/received_events","type":"User","site_admin":false},"repo":{"id":63733755,"name":"tint","full_name":"singpolyma/tint","owner":{"login":"singpolyma","id":12770,"avatar_url":"https://avatars.githubusercontent.com/u/12770?v=3","gravatar_id":"","url":"https://api.github.com/users/singpolyma","html_url":"https://github.com/singpolyma","followers_url":"https://api.github.com/users/singpolyma/followers","following_url":"https://api.github.com/users/singpolyma/following{/other_user}","gists_url":"https://api.github.com/users/singpolyma/gists{/gist_id}","starred_url":"https://api.github.com/users/singpolyma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singpolyma/subscriptions","organizations_url":"https://api.github.com/users/singpolyma/orgs","repos_url":"https://api.github.com/users/singpolyma/repos","events_url":"https://api.github.com/users/singpolyma/events{/privacy}","received_events_url":"https://api.github.com/users/singpolyma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/singpolyma/tint","description":null,"fork":true,"url":"https://api.github.com/repos/singpolyma/tint","forks_url":"https://api.github.com/repos/singpolyma/tint/forks","keys_url":"https://api.github.com/repos/singpolyma/tint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/singpolyma/tint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/singpolyma/tint/teams","hooks_url":"https://api.github.com/repos/singpolyma/tint/hooks","issue_events_url":"https://api.github.com/repos/singpolyma/tint/issues/events{/number}","events_url":"https://api.github.com/repos/singpolyma/tint/events","assignees_url":"https://api.github.com/repos/singpolyma/tint/assignees{/user}","branches_url":"https://api.github.com/repos/singpolyma/tint/branches{/branch}","tags_url":"https://api.github.com/repos/singpolyma/tint/tags","blobs_url":"https://api.github.com/repos/singpolyma/tint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/singpolyma/tint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/singpolyma/tint/git/refs{/sha}","trees_url":"https://api.github.com/repos/singpolyma/tint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/singpolyma/tint/statuses/{sha}","languages_url":"https://api.github.com/repos/singpolyma/tint/languages","stargazers_url":"https://api.github.com/repos/singpolyma/tint/stargazers","contributors_url":"https://api.github.com/repos/singpolyma/tint/contributors","subscribers_url":"https://api.github.com/repos/singpolyma/tint/subscribers","subscription_url":"https://api.github.com/repos/singpolyma/tint/subscription","commits_url":"https://api.github.com/repos/singpolyma/tint/commits{/sha}","git_commits_url":"https://api.github.com/repos/singpolyma/tint/git/commits{/sha}","comments_url":"https://api.github.com/repos/singpolyma/tint/comments{/number}","issue_comment_url":"https://api.github.com/repos/singpolyma/tint/issues/comments{/number}","contents_url":"https://api.github.com/repos/singpolyma/tint/contents/{+path}","compare_url":"https://api.github.com/repos/singpolyma/tint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/singpolyma/tint/merges","archive_url":"https://api.github.com/repos/singpolyma/tint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/singpolyma/tint/downloads","issues_url":"https://api.github.com/repos/singpolyma/tint/issues{/number}","pulls_url":"https://api.github.com/repos/singpolyma/tint/pulls{/number}","milestones_url":"https://api.github.com/repos/singpolyma/tint/milestones{/number}","notifications_url":"https://api.github.com/repos/singpolyma/tint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/singpolyma/tint/labels{/name}","releases_url":"https://api.github.com/repos/singpolyma/tint/releases{/id}","deployments_url":"https://api.github.com/repos/singpolyma/tint/deployments","created_at":"2016-07-19T23:10:09Z","updated_at":"2016-07-21T18:34:12Z","pushed_at":"2016-07-23T01:54:39Z","git_url":"git://github.com/singpolyma/tint.git","ssh_url":"git@github.com:singpolyma/tint.git","clone_url":"https://github.com/singpolyma/tint.git","svn_url":"https://github.com/singpolyma/tint","homepage":null,"size":1569,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"usetint:master","ref":"master","sha":"b558c7be80097d73e1655abd5c850baead082ca4","user":{"login":"usetint","id":20583435,"avatar_url":"https://avatars.githubusercontent.com/u/20583435?v=3","gravatar_id":"","url":"https://api.github.com/users/usetint","html_url":"https://github.com/usetint","followers_url":"https://api.github.com/users/usetint/followers","following_url":"https://api.github.com/users/usetint/following{/other_user}","gists_url":"https://api.github.com/users/usetint/gists{/gist_id}","starred_url":"https://api.github.com/users/usetint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usetint/subscriptions","organizations_url":"https://api.github.com/users/usetint/orgs","repos_url":"https://api.github.com/users/usetint/repos","events_url":"https://api.github.com/users/usetint/events{/privacy}","received_events_url":"https://api.github.com/users/usetint/received_events","type":"Organization","site_admin":false},"repo":{"id":63621954,"name":"tint","full_name":"usetint/tint","owner":{"login":"usetint","id":20583435,"avatar_url":"https://avatars.githubusercontent.com/u/20583435?v=3","gravatar_id":"","url":"https://api.github.com/users/usetint","html_url":"https://github.com/usetint","followers_url":"https://api.github.com/users/usetint/followers","following_url":"https://api.github.com/users/usetint/following{/other_user}","gists_url":"https://api.github.com/users/usetint/gists{/gist_id}","starred_url":"https://api.github.com/users/usetint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usetint/subscriptions","organizations_url":"https://api.github.com/users/usetint/orgs","repos_url":"https://api.github.com/users/usetint/repos","events_url":"https://api.github.com/users/usetint/events{/privacy}","received_events_url":"https://api.github.com/users/usetint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/usetint/tint","description":null,"fork":false,"url":"https://api.github.com/repos/usetint/tint","forks_url":"https://api.github.com/repos/usetint/tint/forks","keys_url":"https://api.github.com/repos/usetint/tint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usetint/tint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usetint/tint/teams","hooks_url":"https://api.github.com/repos/usetint/tint/hooks","issue_events_url":"https://api.github.com/repos/usetint/tint/issues/events{/number}","events_url":"https://api.github.com/repos/usetint/tint/events","assignees_url":"https://api.github.com/repos/usetint/tint/assignees{/user}","branches_url":"https://api.github.com/repos/usetint/tint/branches{/branch}","tags_url":"https://api.github.com/repos/usetint/tint/tags","blobs_url":"https://api.github.com/repos/usetint/tint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usetint/tint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usetint/tint/git/refs{/sha}","trees_url":"https://api.github.com/repos/usetint/tint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usetint/tint/statuses/{sha}","languages_url":"https://api.github.com/repos/usetint/tint/languages","stargazers_url":"https://api.github.com/repos/usetint/tint/stargazers","contributors_url":"https://api.github.com/repos/usetint/tint/contributors","subscribers_url":"https://api.github.com/repos/usetint/tint/subscribers","subscription_url":"https://api.github.com/repos/usetint/tint/subscription","commits_url":"https://api.github.com/repos/usetint/tint/commits{/sha}","git_commits_url":"https://api.github.com/repos/usetint/tint/git/commits{/sha}","comments_url":"https://api.github.com/repos/usetint/tint/comments{/number}","issue_comment_url":"https://api.github.com/repos/usetint/tint/issues/comments{/number}","contents_url":"https://api.github.com/repos/usetint/tint/contents/{+path}","compare_url":"https://api.github.com/repos/usetint/tint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usetint/tint/merges","archive_url":"https://api.github.com/repos/usetint/tint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usetint/tint/downloads","issues_url":"https://api.github.com/repos/usetint/tint/issues{/number}","pulls_url":"https://api.github.com/repos/usetint/tint/pulls{/number}","milestones_url":"https://api.github.com/repos/usetint/tint/milestones{/number}","notifications_url":"https://api.github.com/repos/usetint/tint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usetint/tint/labels{/name}","releases_url":"https://api.github.com/repos/usetint/tint/releases{/id}","deployments_url":"https://api.github.com/repos/usetint/tint/deployments","created_at":"2016-07-18T17:09:29Z","updated_at":"2016-07-21T17:23:18Z","pushed_at":"2016-07-22T23:22:46Z","git_url":"git://github.com/usetint/tint.git","ssh_url":"git@github.com:usetint/tint.git","clone_url":"https://github.com/usetint/tint.git","svn_url":"https://github.com/usetint/tint","homepage":null,"size":1575,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":49,"forks":1,"open_issues":49,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/usetint/tint/pulls/98"},"html":{"href":"https://github.com/usetint/tint/pull/98"},"issue":{"href":"https://api.github.com/repos/usetint/tint/issues/98"},"comments":{"href":"https://api.github.com/repos/usetint/tint/issues/98/comments"},"review_comments":{"href":"https://api.github.com/repos/usetint/tint/pulls/98/comments"},"review_comment":{"href":"https://api.github.com/repos/usetint/tint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/usetint/tint/pulls/98/commits"},"statuses":{"href":"https://api.github.com/repos/usetint/tint/statuses/4acdef85979492f302df00917c308ff5d2ec2647"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":225,"deletions":121,"changed_files":15}}
{"actor":{"display_login":"singpolyma"}}