{"action":"closed","number":2764,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/2764","id":11280799,"html_url":"https://github.com/joomla/joomla-cms/pull/2764","diff_url":"https://github.com/joomla/joomla-cms/pull/2764.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/2764.patch","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/2764","number":2764,"state":"closed","locked":false,"title":"cli/install.php - Add command-line interface to the installation system","user":{"login":"totten","id":1336047,"avatar_url":"https://avatars.githubusercontent.com/u/1336047?v=3","gravatar_id":"","url":"https://api.github.com/users/totten","html_url":"https://github.com/totten","followers_url":"https://api.github.com/users/totten/followers","following_url":"https://api.github.com/users/totten/following{/other_user}","gists_url":"https://api.github.com/users/totten/gists{/gist_id}","starred_url":"https://api.github.com/users/totten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totten/subscriptions","organizations_url":"https://api.github.com/users/totten/orgs","repos_url":"https://api.github.com/users/totten/repos","events_url":"https://api.github.com/users/totten/events{/privacy}","received_events_url":"https://api.github.com/users/totten/received_events","type":"User","site_admin":false},"body":"Example usage:\r\n\r\n```bash\r\ngit clone https://github.com/joomla/joomla-cms.git\r\ncd joomla-cms\r\nphp cli/install.php \\\r\n   --db-user=myuser --db-name=mydb --db-pass=mysecret \\\r\n   --admin-user=admin --admin-pass=secret --admin-email='admin@example.com'\r\nrm -rf installation\r\n```\r\n\r\nThis is my first patch to Joomla, and the patch has a couple FIXME's which may require discussion. The main FIXMEs:\r\n * JApplicationCliInstaller::doExecute() sets \"$options['db_created'] = 1\" as a workaround. This shouldn't be necessary because InstallationModelDatabase tries to set that value by way of $session, but something's wonky with the handling of $session, and I don't know the ins-and-outs about JApplicationCli/JApplicationCms/JSession.\r\n * getLocaliseAdmin() has been brutishly copied-and-pasted from InstallationApplicationWeb to JApplicationCliInstaller. I don't particularly know what it's for, but it doesn't appear to depend on $this, so it could be safely moved to another class (where it's easier to share code).\r\n","created_at":"2014-01-07T10:54:03Z","updated_at":"2015-07-02T01:19:31Z","closed_at":"2015-07-02T01:19:31Z","merged_at":null,"merge_commit_sha":"b7604fd91ee892d6dc70db28edfd9e903b336a9c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/2764/commits","review_comments_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/2764/comments","review_comment_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/2764/comments","statuses_url":"https://api.github.com/repos/joomla/joomla-cms/statuses/f22862f51fad15c8647495b1dcce500a02d64f6a","head":{"label":"totten:cli-install","ref":"cli-install","sha":"f22862f51fad15c8647495b1dcce500a02d64f6a","user":{"login":"totten","id":1336047,"avatar_url":"https://avatars.githubusercontent.com/u/1336047?v=3","gravatar_id":"","url":"https://api.github.com/users/totten","html_url":"https://github.com/totten","followers_url":"https://api.github.com/users/totten/followers","following_url":"https://api.github.com/users/totten/following{/other_user}","gists_url":"https://api.github.com/users/totten/gists{/gist_id}","starred_url":"https://api.github.com/users/totten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totten/subscriptions","organizations_url":"https://api.github.com/users/totten/orgs","repos_url":"https://api.github.com/users/totten/repos","events_url":"https://api.github.com/users/totten/events{/privacy}","received_events_url":"https://api.github.com/users/totten/received_events","type":"User","site_admin":false},"repo":{"id":15700328,"name":"joomla-cms","full_name":"totten/joomla-cms","owner":{"login":"totten","id":1336047,"avatar_url":"https://avatars.githubusercontent.com/u/1336047?v=3","gravatar_id":"","url":"https://api.github.com/users/totten","html_url":"https://github.com/totten","followers_url":"https://api.github.com/users/totten/followers","following_url":"https://api.github.com/users/totten/following{/other_user}","gists_url":"https://api.github.com/users/totten/gists{/gist_id}","starred_url":"https://api.github.com/users/totten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totten/subscriptions","organizations_url":"https://api.github.com/users/totten/orgs","repos_url":"https://api.github.com/users/totten/repos","events_url":"https://api.github.com/users/totten/events{/privacy}","received_events_url":"https://api.github.com/users/totten/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/totten/joomla-cms","description":"Home of the Joomla! Content Management System","fork":true,"url":"https://api.github.com/repos/totten/joomla-cms","forks_url":"https://api.github.com/repos/totten/joomla-cms/forks","keys_url":"https://api.github.com/repos/totten/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/totten/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/totten/joomla-cms/teams","hooks_url":"https://api.github.com/repos/totten/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/totten/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/totten/joomla-cms/events","assignees_url":"https://api.github.com/repos/totten/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/totten/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/totten/joomla-cms/tags","blobs_url":"https://api.github.com/repos/totten/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/totten/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/totten/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/totten/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/totten/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/totten/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/totten/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/totten/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/totten/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/totten/joomla-cms/subscription","commits_url":"https://api.github.com/repos/totten/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/totten/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/totten/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/totten/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/totten/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/totten/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/totten/joomla-cms/merges","archive_url":"https://api.github.com/repos/totten/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/totten/joomla-cms/downloads","issues_url":"https://api.github.com/repos/totten/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/totten/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/totten/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/totten/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/totten/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/totten/joomla-cms/releases{/id}","created_at":"2014-01-07T09:31:00Z","updated_at":"2014-01-07T22:57:50Z","pushed_at":"2014-12-18T03:19:57Z","git_url":"git://github.com/totten/joomla-cms.git","ssh_url":"git@github.com:totten/joomla-cms.git","clone_url":"https://github.com/totten/joomla-cms.git","svn_url":"https://github.com/totten/joomla-cms","homepage":"http://joomla.org","size":107398,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"joomla:staging","ref":"staging","sha":"839d2c910aaea8869780f98ca86451d583d7301a","user":{"login":"joomla","id":751633,"avatar_url":"https://avatars.githubusercontent.com/u/751633?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"repo":{"id":2464908,"name":"joomla-cms","full_name":"joomla/joomla-cms","owner":{"login":"joomla","id":751633,"avatar_url":"https://avatars.githubusercontent.com/u/751633?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla/joomla-cms","description":"Home of the Joomla! Content Management System","fork":false,"url":"https://api.github.com/repos/joomla/joomla-cms","forks_url":"https://api.github.com/repos/joomla/joomla-cms/forks","keys_url":"https://api.github.com/repos/joomla/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla/joomla-cms/teams","hooks_url":"https://api.github.com/repos/joomla/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/joomla/joomla-cms/events","assignees_url":"https://api.github.com/repos/joomla/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/joomla/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/joomla/joomla-cms/tags","blobs_url":"https://api.github.com/repos/joomla/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/joomla/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/joomla/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/joomla/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/joomla/joomla-cms/subscription","commits_url":"https://api.github.com/repos/joomla/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/joomla/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla/joomla-cms/merges","archive_url":"https://api.github.com/repos/joomla/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla/joomla-cms/downloads","issues_url":"https://api.github.com/repos/joomla/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/joomla/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/joomla/joomla-cms/releases{/id}","created_at":"2011-09-27T02:07:38Z","updated_at":"2015-07-01T22:02:56Z","pushed_at":"2015-07-01T23:51:32Z","git_url":"git://github.com/joomla/joomla-cms.git","ssh_url":"git@github.com:joomla/joomla-cms.git","clone_url":"https://github.com/joomla/joomla-cms.git","svn_url":"https://github.com/joomla/joomla-cms","homepage":"http://joomla.org","size":329081,"stargazers_count":1588,"watchers_count":1588,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1763,"mirror_url":null,"open_issues_count":570,"forks":1763,"open_issues":570,"watchers":1588,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/2764"},"html":{"href":"https://github.com/joomla/joomla-cms/pull/2764"},"issue":{"href":"https://api.github.com/repos/joomla/joomla-cms/issues/2764"},"comments":{"href":"https://api.github.com/repos/joomla/joomla-cms/issues/2764/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/2764/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/2764/commits"},"statuses":{"href":"https://api.github.com/repos/joomla/joomla-cms/statuses/f22862f51fad15c8647495b1dcce500a02d64f6a"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":23,"review_comments":4,"commits":10,"additions":476,"deletions":0,"changed_files":1}}