{"action":"opened","number":6617,"pull_request":{"url":"https://api.github.com/repos/TryGhost/Ghost/pulls/6617","id":63523781,"html_url":"https://github.com/TryGhost/Ghost/pull/6617","diff_url":"https://github.com/TryGhost/Ghost/pull/6617.diff","patch_url":"https://github.com/TryGhost/Ghost/pull/6617.patch","issue_url":"https://api.github.com/repos/TryGhost/Ghost/issues/6617","number":6617,"state":"open","locked":false,"title":"[WIP/Spike] Move private-blogging into an internal app","user":{"login":"acburdine","id":5167581,"avatar_url":"https://avatars.githubusercontent.com/u/5167581?v=3","gravatar_id":"","url":"https://api.github.com/users/acburdine","html_url":"https://github.com/acburdine","followers_url":"https://api.github.com/users/acburdine/followers","following_url":"https://api.github.com/users/acburdine/following{/other_user}","gists_url":"https://api.github.com/users/acburdine/gists{/gist_id}","starred_url":"https://api.github.com/users/acburdine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acburdine/subscriptions","organizations_url":"https://api.github.com/users/acburdine/orgs","repos_url":"https://api.github.com/users/acburdine/repos","events_url":"https://api.github.com/users/acburdine/events{/privacy}","received_events_url":"https://api.github.com/users/acburdine/received_events","type":"User","site_admin":false},"body":"refs #6589\r\n\r\nThis PR moves all of the private blogging code into an internal app, making use of the existing app infrastructure, as well as a few hooks I put in. It also adds an 'internal-apps' section to config, so that as more are added they can be loaded easily without any database modification.\r\n\r\nTODO:\r\n- [x] Move code into app folder\r\n- [x] Remove hardcoded '/private/' strings \r\n- [ ] Move tests into app folder & rework Grunt to run them\r\n- [ ] optimize middleware\r\n- [ ] fix configuration conflict ","created_at":"2016-03-21T05:43:54Z","updated_at":"2016-03-21T05:43:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TryGhost/Ghost/pulls/6617/commits","review_comments_url":"https://api.github.com/repos/TryGhost/Ghost/pulls/6617/comments","review_comment_url":"https://api.github.com/repos/TryGhost/Ghost/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/6617/comments","statuses_url":"https://api.github.com/repos/TryGhost/Ghost/statuses/2703fd0c494a41f5b8380aea6dd74d81a350c6ab","head":{"label":"acburdine:private-blogging-app","ref":"private-blogging-app","sha":"2703fd0c494a41f5b8380aea6dd74d81a350c6ab","user":{"login":"acburdine","id":5167581,"avatar_url":"https://avatars.githubusercontent.com/u/5167581?v=3","gravatar_id":"","url":"https://api.github.com/users/acburdine","html_url":"https://github.com/acburdine","followers_url":"https://api.github.com/users/acburdine/followers","following_url":"https://api.github.com/users/acburdine/following{/other_user}","gists_url":"https://api.github.com/users/acburdine/gists{/gist_id}","starred_url":"https://api.github.com/users/acburdine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acburdine/subscriptions","organizations_url":"https://api.github.com/users/acburdine/orgs","repos_url":"https://api.github.com/users/acburdine/repos","events_url":"https://api.github.com/users/acburdine/events{/privacy}","received_events_url":"https://api.github.com/users/acburdine/received_events","type":"User","site_admin":false},"repo":{"id":32867877,"name":"Ghost","full_name":"acburdine/Ghost","owner":{"login":"acburdine","id":5167581,"avatar_url":"https://avatars.githubusercontent.com/u/5167581?v=3","gravatar_id":"","url":"https://api.github.com/users/acburdine","html_url":"https://github.com/acburdine","followers_url":"https://api.github.com/users/acburdine/followers","following_url":"https://api.github.com/users/acburdine/following{/other_user}","gists_url":"https://api.github.com/users/acburdine/gists{/gist_id}","starred_url":"https://api.github.com/users/acburdine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acburdine/subscriptions","organizations_url":"https://api.github.com/users/acburdine/orgs","repos_url":"https://api.github.com/users/acburdine/repos","events_url":"https://api.github.com/users/acburdine/events{/privacy}","received_events_url":"https://api.github.com/users/acburdine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/acburdine/Ghost","description":"Just a blogging platform","fork":true,"url":"https://api.github.com/repos/acburdine/Ghost","forks_url":"https://api.github.com/repos/acburdine/Ghost/forks","keys_url":"https://api.github.com/repos/acburdine/Ghost/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acburdine/Ghost/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acburdine/Ghost/teams","hooks_url":"https://api.github.com/repos/acburdine/Ghost/hooks","issue_events_url":"https://api.github.com/repos/acburdine/Ghost/issues/events{/number}","events_url":"https://api.github.com/repos/acburdine/Ghost/events","assignees_url":"https://api.github.com/repos/acburdine/Ghost/assignees{/user}","branches_url":"https://api.github.com/repos/acburdine/Ghost/branches{/branch}","tags_url":"https://api.github.com/repos/acburdine/Ghost/tags","blobs_url":"https://api.github.com/repos/acburdine/Ghost/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acburdine/Ghost/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acburdine/Ghost/git/refs{/sha}","trees_url":"https://api.github.com/repos/acburdine/Ghost/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acburdine/Ghost/statuses/{sha}","languages_url":"https://api.github.com/repos/acburdine/Ghost/languages","stargazers_url":"https://api.github.com/repos/acburdine/Ghost/stargazers","contributors_url":"https://api.github.com/repos/acburdine/Ghost/contributors","subscribers_url":"https://api.github.com/repos/acburdine/Ghost/subscribers","subscription_url":"https://api.github.com/repos/acburdine/Ghost/subscription","commits_url":"https://api.github.com/repos/acburdine/Ghost/commits{/sha}","git_commits_url":"https://api.github.com/repos/acburdine/Ghost/git/commits{/sha}","comments_url":"https://api.github.com/repos/acburdine/Ghost/comments{/number}","issue_comment_url":"https://api.github.com/repos/acburdine/Ghost/issues/comments{/number}","contents_url":"https://api.github.com/repos/acburdine/Ghost/contents/{+path}","compare_url":"https://api.github.com/repos/acburdine/Ghost/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acburdine/Ghost/merges","archive_url":"https://api.github.com/repos/acburdine/Ghost/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acburdine/Ghost/downloads","issues_url":"https://api.github.com/repos/acburdine/Ghost/issues{/number}","pulls_url":"https://api.github.com/repos/acburdine/Ghost/pulls{/number}","milestones_url":"https://api.github.com/repos/acburdine/Ghost/milestones{/number}","notifications_url":"https://api.github.com/repos/acburdine/Ghost/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acburdine/Ghost/labels{/name}","releases_url":"https://api.github.com/repos/acburdine/Ghost/releases{/id}","deployments_url":"https://api.github.com/repos/acburdine/Ghost/deployments","created_at":"2015-03-25T13:58:25Z","updated_at":"2016-01-11T14:24:38Z","pushed_at":"2016-03-21T05:35:59Z","git_url":"git://github.com/acburdine/Ghost.git","ssh_url":"git@github.com:acburdine/Ghost.git","clone_url":"https://github.com/acburdine/Ghost.git","svn_url":"https://github.com/acburdine/Ghost","homepage":"https://ghost.org","size":19383,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"TryGhost:master","ref":"master","sha":"ef0945b09fa0a4d8a16866ac2673cc9d1b278c9f","user":{"login":"TryGhost","id":2178663,"avatar_url":"https://avatars.githubusercontent.com/u/2178663?v=3","gravatar_id":"","url":"https://api.github.com/users/TryGhost","html_url":"https://github.com/TryGhost","followers_url":"https://api.github.com/users/TryGhost/followers","following_url":"https://api.github.com/users/TryGhost/following{/other_user}","gists_url":"https://api.github.com/users/TryGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/TryGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TryGhost/subscriptions","organizations_url":"https://api.github.com/users/TryGhost/orgs","repos_url":"https://api.github.com/users/TryGhost/repos","events_url":"https://api.github.com/users/TryGhost/events{/privacy}","received_events_url":"https://api.github.com/users/TryGhost/received_events","type":"Organization","site_admin":false},"repo":{"id":9852918,"name":"Ghost","full_name":"TryGhost/Ghost","owner":{"login":"TryGhost","id":2178663,"avatar_url":"https://avatars.githubusercontent.com/u/2178663?v=3","gravatar_id":"","url":"https://api.github.com/users/TryGhost","html_url":"https://github.com/TryGhost","followers_url":"https://api.github.com/users/TryGhost/followers","following_url":"https://api.github.com/users/TryGhost/following{/other_user}","gists_url":"https://api.github.com/users/TryGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/TryGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TryGhost/subscriptions","organizations_url":"https://api.github.com/users/TryGhost/orgs","repos_url":"https://api.github.com/users/TryGhost/repos","events_url":"https://api.github.com/users/TryGhost/events{/privacy}","received_events_url":"https://api.github.com/users/TryGhost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TryGhost/Ghost","description":"Just a blogging platform","fork":false,"url":"https://api.github.com/repos/TryGhost/Ghost","forks_url":"https://api.github.com/repos/TryGhost/Ghost/forks","keys_url":"https://api.github.com/repos/TryGhost/Ghost/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TryGhost/Ghost/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TryGhost/Ghost/teams","hooks_url":"https://api.github.com/repos/TryGhost/Ghost/hooks","issue_events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/events{/number}","events_url":"https://api.github.com/repos/TryGhost/Ghost/events","assignees_url":"https://api.github.com/repos/TryGhost/Ghost/assignees{/user}","branches_url":"https://api.github.com/repos/TryGhost/Ghost/branches{/branch}","tags_url":"https://api.github.com/repos/TryGhost/Ghost/tags","blobs_url":"https://api.github.com/repos/TryGhost/Ghost/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TryGhost/Ghost/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TryGhost/Ghost/git/refs{/sha}","trees_url":"https://api.github.com/repos/TryGhost/Ghost/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TryGhost/Ghost/statuses/{sha}","languages_url":"https://api.github.com/repos/TryGhost/Ghost/languages","stargazers_url":"https://api.github.com/repos/TryGhost/Ghost/stargazers","contributors_url":"https://api.github.com/repos/TryGhost/Ghost/contributors","subscribers_url":"https://api.github.com/repos/TryGhost/Ghost/subscribers","subscription_url":"https://api.github.com/repos/TryGhost/Ghost/subscription","commits_url":"https://api.github.com/repos/TryGhost/Ghost/commits{/sha}","git_commits_url":"https://api.github.com/repos/TryGhost/Ghost/git/commits{/sha}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/comments{/number}","issue_comment_url":"https://api.github.com/repos/TryGhost/Ghost/issues/comments{/number}","contents_url":"https://api.github.com/repos/TryGhost/Ghost/contents/{+path}","compare_url":"https://api.github.com/repos/TryGhost/Ghost/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TryGhost/Ghost/merges","archive_url":"https://api.github.com/repos/TryGhost/Ghost/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TryGhost/Ghost/downloads","issues_url":"https://api.github.com/repos/TryGhost/Ghost/issues{/number}","pulls_url":"https://api.github.com/repos/TryGhost/Ghost/pulls{/number}","milestones_url":"https://api.github.com/repos/TryGhost/Ghost/milestones{/number}","notifications_url":"https://api.github.com/repos/TryGhost/Ghost/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TryGhost/Ghost/labels{/name}","releases_url":"https://api.github.com/repos/TryGhost/Ghost/releases{/id}","deployments_url":"https://api.github.com/repos/TryGhost/Ghost/deployments","created_at":"2013-05-04T11:09:13Z","updated_at":"2016-03-21T03:34:30Z","pushed_at":"2016-03-21T01:13:51Z","git_url":"git://github.com/TryGhost/Ghost.git","ssh_url":"git@github.com:TryGhost/Ghost.git","clone_url":"https://github.com/TryGhost/Ghost.git","svn_url":"https://github.com/TryGhost/Ghost","homepage":"https://ghost.org","size":50013,"stargazers_count":18878,"watchers_count":18878,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4650,"mirror_url":null,"open_issues_count":217,"forks":4650,"open_issues":217,"watchers":18878,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TryGhost/Ghost/pulls/6617"},"html":{"href":"https://github.com/TryGhost/Ghost/pull/6617"},"issue":{"href":"https://api.github.com/repos/TryGhost/Ghost/issues/6617"},"comments":{"href":"https://api.github.com/repos/TryGhost/Ghost/issues/6617/comments"},"review_comments":{"href":"https://api.github.com/repos/TryGhost/Ghost/pulls/6617/comments"},"review_comment":{"href":"https://api.github.com/repos/TryGhost/Ghost/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TryGhost/Ghost/pulls/6617/commits"},"statuses":{"href":"https://api.github.com/repos/TryGhost/Ghost/statuses/2703fd0c494a41f5b8380aea6dd74d81a350c6ab"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":181,"deletions":97,"changed_files":14}}