{"action":"created","comment":{"url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/comments/65878481","id":65878481,"diff_hunk":"@@ -60,127 +60,143 @@ public class ApplyProvisioningTemplate : SPOWebCmdlet\n         protected override void ExecuteCmdlet()\n         {\n             SelectedWeb.EnsureProperty(w => w.Url);\n-\n-            if (!System.IO.Path.IsPathRooted(Path))\n-            {\n-                Path = System.IO.Path.Combine(SessionState.Path.CurrentFileSystemLocation.Path, Path);\n-            }\n-            if (!string.IsNullOrEmpty(ResourceFolder))\n+            bool templateFromFileSystem = !Path.StartsWith(\"http\");","path":"Commands/Branding/ApplyProvisioningTemplate.cs","position":19,"original_position":19,"commit_id":"7f7a73ad7b6142a031d9d1a169459b0182867fae","original_commit_id":"7f7a73ad7b6142a031d9d1a169459b0182867fae","user":{"login":"erwinvanhunen","id":7666381,"avatar_url":"https://avatars.githubusercontent.com/u/7666381?v=3","gravatar_id":"","url":"https://api.github.com/users/erwinvanhunen","html_url":"https://github.com/erwinvanhunen","followers_url":"https://api.github.com/users/erwinvanhunen/followers","following_url":"https://api.github.com/users/erwinvanhunen/following{/other_user}","gists_url":"https://api.github.com/users/erwinvanhunen/gists{/gist_id}","starred_url":"https://api.github.com/users/erwinvanhunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erwinvanhunen/subscriptions","organizations_url":"https://api.github.com/users/erwinvanhunen/orgs","repos_url":"https://api.github.com/users/erwinvanhunen/repos","events_url":"https://api.github.com/users/erwinvanhunen/events{/privacy}","received_events_url":"https://api.github.com/users/erwinvanhunen/received_events","type":"User","site_admin":false},"body":"You assume the URL is always entered lowercase?","created_at":"2016-06-06T12:02:33Z","updated_at":"2016-06-06T12:02:33Z","html_url":"https://github.com/OfficeDev/PnP-PowerShell/pull/354#discussion_r65878481","pull_request_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/354","_links":{"self":{"href":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/comments/65878481"},"html":{"href":"https://github.com/OfficeDev/PnP-PowerShell/pull/354#discussion_r65878481"},"pull_request":{"href":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/354"}}},"pull_request":{"url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/354","id":72670040,"html_url":"https://github.com/OfficeDev/PnP-PowerShell/pull/354","diff_url":"https://github.com/OfficeDev/PnP-PowerShell/pull/354.diff","patch_url":"https://github.com/OfficeDev/PnP-PowerShell/pull/354.patch","issue_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/354","number":354,"state":"open","locked":false,"title":"Add support to store .pnp package files in a SP library and create .pnp package from a folder","user":{"login":"wobba","id":51104,"avatar_url":"https://avatars.githubusercontent.com/u/51104?v=3","gravatar_id":"","url":"https://api.github.com/users/wobba","html_url":"https://github.com/wobba","followers_url":"https://api.github.com/users/wobba/followers","following_url":"https://api.github.com/users/wobba/following{/other_user}","gists_url":"https://api.github.com/users/wobba/gists{/gist_id}","starred_url":"https://api.github.com/users/wobba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wobba/subscriptions","organizations_url":"https://api.github.com/users/wobba/orgs","repos_url":"https://api.github.com/users/wobba/repos","events_url":"https://api.github.com/users/wobba/events{/privacy}","received_events_url":"https://api.github.com/users/wobba/received_events","type":"User","site_admin":false},"body":"**Apply-SPOProvisioningTemplate**\r\nAdded support to reference a .pnp package from a SP library\r\n\r\n**New-SPOProvisioningTemplateFromFolder**\r\nAdded functionality to create a .pnp package file from a folder (Dependant on https://github.com/OfficeDev/PnP-Sites-Core/pull/604 for folder support)\r\n\r\n","created_at":"2016-06-06T08:06:59Z","updated_at":"2016-06-06T12:02:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/354/commits","review_comments_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/354/comments","review_comment_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/354/comments","statuses_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/statuses/7f7a73ad7b6142a031d9d1a169459b0182867fae","head":{"label":"wobba:LoadTemplateFromSP","ref":"LoadTemplateFromSP","sha":"7f7a73ad7b6142a031d9d1a169459b0182867fae","user":{"login":"wobba","id":51104,"avatar_url":"https://avatars.githubusercontent.com/u/51104?v=3","gravatar_id":"","url":"https://api.github.com/users/wobba","html_url":"https://github.com/wobba","followers_url":"https://api.github.com/users/wobba/followers","following_url":"https://api.github.com/users/wobba/following{/other_user}","gists_url":"https://api.github.com/users/wobba/gists{/gist_id}","starred_url":"https://api.github.com/users/wobba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wobba/subscriptions","organizations_url":"https://api.github.com/users/wobba/orgs","repos_url":"https://api.github.com/users/wobba/repos","events_url":"https://api.github.com/users/wobba/events{/privacy}","received_events_url":"https://api.github.com/users/wobba/received_events","type":"User","site_admin":false},"repo":{"id":40399909,"name":"PnP-PowerShell","full_name":"wobba/PnP-PowerShell","owner":{"login":"wobba","id":51104,"avatar_url":"https://avatars.githubusercontent.com/u/51104?v=3","gravatar_id":"","url":"https://api.github.com/users/wobba","html_url":"https://github.com/wobba","followers_url":"https://api.github.com/users/wobba/followers","following_url":"https://api.github.com/users/wobba/following{/other_user}","gists_url":"https://api.github.com/users/wobba/gists{/gist_id}","starred_url":"https://api.github.com/users/wobba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wobba/subscriptions","organizations_url":"https://api.github.com/users/wobba/orgs","repos_url":"https://api.github.com/users/wobba/repos","events_url":"https://api.github.com/users/wobba/events{/privacy}","received_events_url":"https://api.github.com/users/wobba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wobba/PnP-PowerShell","description":"New location for the Office 365 Dev PnP PowerShell CmdLets","fork":true,"url":"https://api.github.com/repos/wobba/PnP-PowerShell","forks_url":"https://api.github.com/repos/wobba/PnP-PowerShell/forks","keys_url":"https://api.github.com/repos/wobba/PnP-PowerShell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wobba/PnP-PowerShell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wobba/PnP-PowerShell/teams","hooks_url":"https://api.github.com/repos/wobba/PnP-PowerShell/hooks","issue_events_url":"https://api.github.com/repos/wobba/PnP-PowerShell/issues/events{/number}","events_url":"https://api.github.com/repos/wobba/PnP-PowerShell/events","assignees_url":"https://api.github.com/repos/wobba/PnP-PowerShell/assignees{/user}","branches_url":"https://api.github.com/repos/wobba/PnP-PowerShell/branches{/branch}","tags_url":"https://api.github.com/repos/wobba/PnP-PowerShell/tags","blobs_url":"https://api.github.com/repos/wobba/PnP-PowerShell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wobba/PnP-PowerShell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wobba/PnP-PowerShell/git/refs{/sha}","trees_url":"https://api.github.com/repos/wobba/PnP-PowerShell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wobba/PnP-PowerShell/statuses/{sha}","languages_url":"https://api.github.com/repos/wobba/PnP-PowerShell/languages","stargazers_url":"https://api.github.com/repos/wobba/PnP-PowerShell/stargazers","contributors_url":"https://api.github.com/repos/wobba/PnP-PowerShell/contributors","subscribers_url":"https://api.github.com/repos/wobba/PnP-PowerShell/subscribers","subscription_url":"https://api.github.com/repos/wobba/PnP-PowerShell/subscription","commits_url":"https://api.github.com/repos/wobba/PnP-PowerShell/commits{/sha}","git_commits_url":"https://api.github.com/repos/wobba/PnP-PowerShell/git/commits{/sha}","comments_url":"https://api.github.com/repos/wobba/PnP-PowerShell/comments{/number}","issue_comment_url":"https://api.github.com/repos/wobba/PnP-PowerShell/issues/comments{/number}","contents_url":"https://api.github.com/repos/wobba/PnP-PowerShell/contents/{+path}","compare_url":"https://api.github.com/repos/wobba/PnP-PowerShell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wobba/PnP-PowerShell/merges","archive_url":"https://api.github.com/repos/wobba/PnP-PowerShell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wobba/PnP-PowerShell/downloads","issues_url":"https://api.github.com/repos/wobba/PnP-PowerShell/issues{/number}","pulls_url":"https://api.github.com/repos/wobba/PnP-PowerShell/pulls{/number}","milestones_url":"https://api.github.com/repos/wobba/PnP-PowerShell/milestones{/number}","notifications_url":"https://api.github.com/repos/wobba/PnP-PowerShell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wobba/PnP-PowerShell/labels{/name}","releases_url":"https://api.github.com/repos/wobba/PnP-PowerShell/releases{/id}","deployments_url":"https://api.github.com/repos/wobba/PnP-PowerShell/deployments","created_at":"2015-08-08T10:49:14Z","updated_at":"2015-08-06T12:23:51Z","pushed_at":"2016-06-06T08:05:14Z","git_url":"git://github.com/wobba/PnP-PowerShell.git","ssh_url":"git@github.com:wobba/PnP-PowerShell.git","clone_url":"https://github.com/wobba/PnP-PowerShell.git","svn_url":"https://github.com/wobba/PnP-PowerShell","homepage":null,"size":112769,"stargazers_count":0,"watchers_count":0,"language":null,"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":"OfficeDev:dev","ref":"dev","sha":"d11002dafc7a20c8309a686c1f9f99ad5b61d683","user":{"login":"OfficeDev","id":6789362,"avatar_url":"https://avatars.githubusercontent.com/u/6789362?v=3","gravatar_id":"","url":"https://api.github.com/users/OfficeDev","html_url":"https://github.com/OfficeDev","followers_url":"https://api.github.com/users/OfficeDev/followers","following_url":"https://api.github.com/users/OfficeDev/following{/other_user}","gists_url":"https://api.github.com/users/OfficeDev/gists{/gist_id}","starred_url":"https://api.github.com/users/OfficeDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OfficeDev/subscriptions","organizations_url":"https://api.github.com/users/OfficeDev/orgs","repos_url":"https://api.github.com/users/OfficeDev/repos","events_url":"https://api.github.com/users/OfficeDev/events{/privacy}","received_events_url":"https://api.github.com/users/OfficeDev/received_events","type":"Organization","site_admin":false},"repo":{"id":39578264,"name":"PnP-PowerShell","full_name":"OfficeDev/PnP-PowerShell","owner":{"login":"OfficeDev","id":6789362,"avatar_url":"https://avatars.githubusercontent.com/u/6789362?v=3","gravatar_id":"","url":"https://api.github.com/users/OfficeDev","html_url":"https://github.com/OfficeDev","followers_url":"https://api.github.com/users/OfficeDev/followers","following_url":"https://api.github.com/users/OfficeDev/following{/other_user}","gists_url":"https://api.github.com/users/OfficeDev/gists{/gist_id}","starred_url":"https://api.github.com/users/OfficeDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OfficeDev/subscriptions","organizations_url":"https://api.github.com/users/OfficeDev/orgs","repos_url":"https://api.github.com/users/OfficeDev/repos","events_url":"https://api.github.com/users/OfficeDev/events{/privacy}","received_events_url":"https://api.github.com/users/OfficeDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OfficeDev/PnP-PowerShell","description":"Office 365 Dev PnP PowerShell CmdLets","fork":false,"url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell","forks_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/forks","keys_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/teams","hooks_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/hooks","issue_events_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/events{/number}","events_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/events","assignees_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/assignees{/user}","branches_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/branches{/branch}","tags_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/tags","blobs_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/git/refs{/sha}","trees_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/statuses/{sha}","languages_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/languages","stargazers_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/stargazers","contributors_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/contributors","subscribers_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/subscribers","subscription_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/subscription","commits_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/commits{/sha}","git_commits_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/git/commits{/sha}","comments_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/comments{/number}","issue_comment_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/comments{/number}","contents_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/contents/{+path}","compare_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/merges","archive_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/downloads","issues_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues{/number}","pulls_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls{/number}","milestones_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/milestones{/number}","notifications_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/labels{/name}","releases_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/releases{/id}","deployments_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/deployments","created_at":"2015-07-23T16:24:24Z","updated_at":"2016-06-03T18:17:11Z","pushed_at":"2016-06-06T12:01:21Z","git_url":"git://github.com/OfficeDev/PnP-PowerShell.git","ssh_url":"git@github.com:OfficeDev/PnP-PowerShell.git","clone_url":"https://github.com/OfficeDev/PnP-PowerShell.git","svn_url":"https://github.com/OfficeDev/PnP-PowerShell","homepage":"","size":112856,"stargazers_count":114,"watchers_count":114,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":164,"mirror_url":null,"open_issues_count":68,"forks":164,"open_issues":68,"watchers":114,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/354"},"html":{"href":"https://github.com/OfficeDev/PnP-PowerShell/pull/354"},"issue":{"href":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/354"},"comments":{"href":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/354/comments"},"review_comments":{"href":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/354/comments"},"review_comment":{"href":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/pulls/354/commits"},"statuses":{"href":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/statuses/7f7a73ad7b6142a031d9d1a169459b0182867fae"}}}}
{"actor":{"display_login":"erwinvanhunen"}}