{"action":"created","comment":{"url":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/comments/58392876","id":58392876,"diff_hunk":"@@ -200,10 +200,12 @@ module.exports.deleteInvalidTemplate = function(options) {\n  *     - `e` {Error} is null unless there was an error.\n  */\n \n-module.exports.downloadTemplate = function(options, callback) {\n-    var destinationPath = module.exports.templatePath(options),\n-        url = 'https://github.com/phonegap/phonegap-app-hello-world/archive/master.tar.gz';\n-\n+module.exports.downloadTemplate = function(options, callback, url) {\n+    var destinationPath = module.exports.templatePath(options);\n+\tif (url === undefined) {\n+        var url = 'https://github.com/phonegap/phonegap-app-hello-world/archive/master.tar.gz';\n+    }\n+    ","path":"lib/create.js","position":13,"original_position":13,"commit_id":"f7ef47325a8068c6e910d45bac0710c944f9f7a1","original_commit_id":"f7ef47325a8068c6e910d45bac0710c944f9f7a1","user":{"login":"mwbrooks","id":21328,"avatar_url":"https://avatars.githubusercontent.com/u/21328?v=3","gravatar_id":"","url":"https://api.github.com/users/mwbrooks","html_url":"https://github.com/mwbrooks","followers_url":"https://api.github.com/users/mwbrooks/followers","following_url":"https://api.github.com/users/mwbrooks/following{/other_user}","gists_url":"https://api.github.com/users/mwbrooks/gists{/gist_id}","starred_url":"https://api.github.com/users/mwbrooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwbrooks/subscriptions","organizations_url":"https://api.github.com/users/mwbrooks/orgs","repos_url":"https://api.github.com/users/mwbrooks/repos","events_url":"https://api.github.com/users/mwbrooks/events{/privacy}","received_events_url":"https://api.github.com/users/mwbrooks/received_events","type":"User","site_admin":false},"body":"Ah alright. I think we can remove this chunk of code entirely. I'm a big fan of discrete and focused work and the multiple templates is out of scope of patching the config.xml. Also, the PG Desktop App will likely be using the PG CLI for templates and the `connect-phonegap` create will be deprecated entirely. So we may never need to add template support to this function.","created_at":"2016-04-04T15:17:04Z","updated_at":"2016-04-04T15:17:04Z","html_url":"https://github.com/phonegap/connect-phonegap/pull/150#discussion_r58392876","pull_request_url":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/150","_links":{"self":{"href":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/comments/58392876"},"html":{"href":"https://github.com/phonegap/connect-phonegap/pull/150#discussion_r58392876"},"pull_request":{"href":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/150"}}},"pull_request":{"url":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/150","id":65029046,"html_url":"https://github.com/phonegap/connect-phonegap/pull/150","diff_url":"https://github.com/phonegap/connect-phonegap/pull/150.diff","patch_url":"https://github.com/phonegap/connect-phonegap/pull/150.patch","issue_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/150","number":150,"state":"open","locked":false,"title":"Master","user":{"login":"chrisgriffith","id":527875,"avatar_url":"https://avatars.githubusercontent.com/u/527875?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisgriffith","html_url":"https://github.com/chrisgriffith","followers_url":"https://api.github.com/users/chrisgriffith/followers","following_url":"https://api.github.com/users/chrisgriffith/following{/other_user}","gists_url":"https://api.github.com/users/chrisgriffith/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisgriffith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisgriffith/subscriptions","organizations_url":"https://api.github.com/users/chrisgriffith/orgs","repos_url":"https://api.github.com/users/chrisgriffith/repos","events_url":"https://api.github.com/users/chrisgriffith/events{/privacy}","received_events_url":"https://api.github.com/users/chrisgriffith/received_events","type":"User","site_admin":false},"body":"Will now copy config.xml files outside the www folder\n\nHandles alternate template URLS.","created_at":"2016-04-02T05:43:52Z","updated_at":"2016-04-04T15:17:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef331b07be61e59a540aadaa7c75d5b576684c79","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/150/commits","review_comments_url":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/150/comments","review_comment_url":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/150/comments","statuses_url":"https://api.github.com/repos/phonegap/connect-phonegap/statuses/f7ef47325a8068c6e910d45bac0710c944f9f7a1","head":{"label":"chrisgriffith:master","ref":"master","sha":"f7ef47325a8068c6e910d45bac0710c944f9f7a1","user":{"login":"chrisgriffith","id":527875,"avatar_url":"https://avatars.githubusercontent.com/u/527875?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisgriffith","html_url":"https://github.com/chrisgriffith","followers_url":"https://api.github.com/users/chrisgriffith/followers","following_url":"https://api.github.com/users/chrisgriffith/following{/other_user}","gists_url":"https://api.github.com/users/chrisgriffith/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisgriffith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisgriffith/subscriptions","organizations_url":"https://api.github.com/users/chrisgriffith/orgs","repos_url":"https://api.github.com/users/chrisgriffith/repos","events_url":"https://api.github.com/users/chrisgriffith/events{/privacy}","received_events_url":"https://api.github.com/users/chrisgriffith/received_events","type":"User","site_admin":false},"repo":{"id":55277505,"name":"connect-phonegap","full_name":"chrisgriffith/connect-phonegap","owner":{"login":"chrisgriffith","id":527875,"avatar_url":"https://avatars.githubusercontent.com/u/527875?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisgriffith","html_url":"https://github.com/chrisgriffith","followers_url":"https://api.github.com/users/chrisgriffith/followers","following_url":"https://api.github.com/users/chrisgriffith/following{/other_user}","gists_url":"https://api.github.com/users/chrisgriffith/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisgriffith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisgriffith/subscriptions","organizations_url":"https://api.github.com/users/chrisgriffith/orgs","repos_url":"https://api.github.com/users/chrisgriffith/repos","events_url":"https://api.github.com/users/chrisgriffith/events{/privacy}","received_events_url":"https://api.github.com/users/chrisgriffith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrisgriffith/connect-phonegap","description":"Stream a PhoneGap app to any device.","fork":true,"url":"https://api.github.com/repos/chrisgriffith/connect-phonegap","forks_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/forks","keys_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/teams","hooks_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/hooks","issue_events_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/issues/events{/number}","events_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/events","assignees_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/assignees{/user}","branches_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/branches{/branch}","tags_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/tags","blobs_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/languages","stargazers_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/stargazers","contributors_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/contributors","subscribers_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/subscribers","subscription_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/subscription","commits_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/contents/{+path}","compare_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/merges","archive_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/downloads","issues_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/issues{/number}","pulls_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/labels{/name}","releases_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/releases{/id}","deployments_url":"https://api.github.com/repos/chrisgriffith/connect-phonegap/deployments","created_at":"2016-04-02T04:23:37Z","updated_at":"2016-04-02T04:23:39Z","pushed_at":"2016-04-02T05:43:14Z","git_url":"git://github.com/chrisgriffith/connect-phonegap.git","ssh_url":"git@github.com:chrisgriffith/connect-phonegap.git","clone_url":"https://github.com/chrisgriffith/connect-phonegap.git","svn_url":"https://github.com/chrisgriffith/connect-phonegap","homepage":"","size":3848,"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":"phonegap:master","ref":"master","sha":"69c8f8118f7bc1456b6a160bd5b0fd0cc816d0b8","user":{"login":"phonegap","id":60365,"avatar_url":"https://avatars.githubusercontent.com/u/60365?v=3","gravatar_id":"","url":"https://api.github.com/users/phonegap","html_url":"https://github.com/phonegap","followers_url":"https://api.github.com/users/phonegap/followers","following_url":"https://api.github.com/users/phonegap/following{/other_user}","gists_url":"https://api.github.com/users/phonegap/gists{/gist_id}","starred_url":"https://api.github.com/users/phonegap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phonegap/subscriptions","organizations_url":"https://api.github.com/users/phonegap/orgs","repos_url":"https://api.github.com/users/phonegap/repos","events_url":"https://api.github.com/users/phonegap/events{/privacy}","received_events_url":"https://api.github.com/users/phonegap/received_events","type":"Organization","site_admin":false},"repo":{"id":15062671,"name":"connect-phonegap","full_name":"phonegap/connect-phonegap","owner":{"login":"phonegap","id":60365,"avatar_url":"https://avatars.githubusercontent.com/u/60365?v=3","gravatar_id":"","url":"https://api.github.com/users/phonegap","html_url":"https://github.com/phonegap","followers_url":"https://api.github.com/users/phonegap/followers","following_url":"https://api.github.com/users/phonegap/following{/other_user}","gists_url":"https://api.github.com/users/phonegap/gists{/gist_id}","starred_url":"https://api.github.com/users/phonegap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phonegap/subscriptions","organizations_url":"https://api.github.com/users/phonegap/orgs","repos_url":"https://api.github.com/users/phonegap/repos","events_url":"https://api.github.com/users/phonegap/events{/privacy}","received_events_url":"https://api.github.com/users/phonegap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phonegap/connect-phonegap","description":"Stream a PhoneGap app to any device.","fork":false,"url":"https://api.github.com/repos/phonegap/connect-phonegap","forks_url":"https://api.github.com/repos/phonegap/connect-phonegap/forks","keys_url":"https://api.github.com/repos/phonegap/connect-phonegap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phonegap/connect-phonegap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phonegap/connect-phonegap/teams","hooks_url":"https://api.github.com/repos/phonegap/connect-phonegap/hooks","issue_events_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/events{/number}","events_url":"https://api.github.com/repos/phonegap/connect-phonegap/events","assignees_url":"https://api.github.com/repos/phonegap/connect-phonegap/assignees{/user}","branches_url":"https://api.github.com/repos/phonegap/connect-phonegap/branches{/branch}","tags_url":"https://api.github.com/repos/phonegap/connect-phonegap/tags","blobs_url":"https://api.github.com/repos/phonegap/connect-phonegap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phonegap/connect-phonegap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phonegap/connect-phonegap/git/refs{/sha}","trees_url":"https://api.github.com/repos/phonegap/connect-phonegap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phonegap/connect-phonegap/statuses/{sha}","languages_url":"https://api.github.com/repos/phonegap/connect-phonegap/languages","stargazers_url":"https://api.github.com/repos/phonegap/connect-phonegap/stargazers","contributors_url":"https://api.github.com/repos/phonegap/connect-phonegap/contributors","subscribers_url":"https://api.github.com/repos/phonegap/connect-phonegap/subscribers","subscription_url":"https://api.github.com/repos/phonegap/connect-phonegap/subscription","commits_url":"https://api.github.com/repos/phonegap/connect-phonegap/commits{/sha}","git_commits_url":"https://api.github.com/repos/phonegap/connect-phonegap/git/commits{/sha}","comments_url":"https://api.github.com/repos/phonegap/connect-phonegap/comments{/number}","issue_comment_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/comments{/number}","contents_url":"https://api.github.com/repos/phonegap/connect-phonegap/contents/{+path}","compare_url":"https://api.github.com/repos/phonegap/connect-phonegap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phonegap/connect-phonegap/merges","archive_url":"https://api.github.com/repos/phonegap/connect-phonegap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phonegap/connect-phonegap/downloads","issues_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues{/number}","pulls_url":"https://api.github.com/repos/phonegap/connect-phonegap/pulls{/number}","milestones_url":"https://api.github.com/repos/phonegap/connect-phonegap/milestones{/number}","notifications_url":"https://api.github.com/repos/phonegap/connect-phonegap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phonegap/connect-phonegap/labels{/name}","releases_url":"https://api.github.com/repos/phonegap/connect-phonegap/releases{/id}","deployments_url":"https://api.github.com/repos/phonegap/connect-phonegap/deployments","created_at":"2013-12-10T00:06:46Z","updated_at":"2016-03-28T18:32:10Z","pushed_at":"2016-04-02T05:43:52Z","git_url":"git://github.com/phonegap/connect-phonegap.git","ssh_url":"git@github.com:phonegap/connect-phonegap.git","clone_url":"https://github.com/phonegap/connect-phonegap.git","svn_url":"https://github.com/phonegap/connect-phonegap","homepage":"","size":3950,"stargazers_count":56,"watchers_count":56,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":29,"forks":47,"open_issues":29,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/150"},"html":{"href":"https://github.com/phonegap/connect-phonegap/pull/150"},"issue":{"href":"https://api.github.com/repos/phonegap/connect-phonegap/issues/150"},"comments":{"href":"https://api.github.com/repos/phonegap/connect-phonegap/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phonegap/connect-phonegap/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/phonegap/connect-phonegap/statuses/f7ef47325a8068c6e910d45bac0710c944f9f7a1"}}}}