{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/buildtools/pulls/comments/78243900","id":78243900,"diff_hunk":"@@ -0,0 +1,34 @@\n+# set the base tools directory\n+$toolsLocalPath = Join-Path (Get-Location) \"Tools\"\n+$runExe = Join-Path $toolsLocalPath \"Microsoft.DotNet.BuildTools.Run\\run.exe\"\n+\n+# if the tool doesn't exist then download and run the boot-strapper script\n+if ((Test-Path $runExe) -eq 0)\n+{\n+    if ((Test-Path $toolsLocalPath) -eq 0)\n+    {\n+        mkdir $toolsLocalPath | Out-Null\n+    }\n+\n+    # download boot-strapper script\n+    $bootStrapperPath = Join-Path $toolsLocalPath \"bootstrap.ps1\"\n+    Invoke-WebRequest \"https://raw.githubusercontent.com/dotnet/buildtools/master/bootstrap/bootstrap.ps1\" -OutFile $bootStrapperPath","path":"run.ps1","position":15,"original_position":15,"commit_id":"81b588ac90cde3440c09c1320ee78491c52a193d","original_commit_id":"81b588ac90cde3440c09c1320ee78491c52a193d","user":{"login":"jhendrixMSFT","id":10090263,"avatar_url":"https://avatars.githubusercontent.com/u/10090263?v=3","gravatar_id":"","url":"https://api.github.com/users/jhendrixMSFT","html_url":"https://github.com/jhendrixMSFT","followers_url":"https://api.github.com/users/jhendrixMSFT/followers","following_url":"https://api.github.com/users/jhendrixMSFT/following{/other_user}","gists_url":"https://api.github.com/users/jhendrixMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/jhendrixMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhendrixMSFT/subscriptions","organizations_url":"https://api.github.com/users/jhendrixMSFT/orgs","repos_url":"https://api.github.com/users/jhendrixMSFT/repos","events_url":"https://api.github.com/users/jhendrixMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/jhendrixMSFT/received_events","type":"User","site_admin":false},"body":"It's conceivable that we won't always want to use master, however I would think that in this case run.ps1 would be updated directly (e.g. in foo/rel/1.1.0 they update to consume bootstrap.ps1 from buildtools/rel/1.1.0).","created_at":"2016-09-09T20:30:48Z","updated_at":"2016-09-09T20:30:48Z","html_url":"https://github.com/dotnet/buildtools/pull/1030#discussion_r78243900","pull_request_url":"https://api.github.com/repos/dotnet/buildtools/pulls/1030","_links":{"self":{"href":"https://api.github.com/repos/dotnet/buildtools/pulls/comments/78243900"},"html":{"href":"https://github.com/dotnet/buildtools/pull/1030#discussion_r78243900"},"pull_request":{"href":"https://api.github.com/repos/dotnet/buildtools/pulls/1030"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/buildtools/pulls/1030","id":84707989,"html_url":"https://github.com/dotnet/buildtools/pull/1030","diff_url":"https://github.com/dotnet/buildtools/pull/1030.diff","patch_url":"https://github.com/dotnet/buildtools/pull/1030.patch","issue_url":"https://api.github.com/repos/dotnet/buildtools/issues/1030","number":1030,"state":"open","locked":false,"title":"Utilize the new boot-strapping script.","user":{"login":"jhendrixMSFT","id":10090263,"avatar_url":"https://avatars.githubusercontent.com/u/10090263?v=3","gravatar_id":"","url":"https://api.github.com/users/jhendrixMSFT","html_url":"https://github.com/jhendrixMSFT","followers_url":"https://api.github.com/users/jhendrixMSFT/followers","following_url":"https://api.github.com/users/jhendrixMSFT/following{/other_user}","gists_url":"https://api.github.com/users/jhendrixMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/jhendrixMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhendrixMSFT/subscriptions","organizations_url":"https://api.github.com/users/jhendrixMSFT/orgs","repos_url":"https://api.github.com/users/jhendrixMSFT/repos","events_url":"https://api.github.com/users/jhendrixMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/jhendrixMSFT/received_events","type":"User","site_admin":false},"body":"This change updates the repo to use the new boot-strapping script,\r\nreplacing init-tools.cmd along with its supporting files.  New text files\r\nhave been added to contain the desired CLI and tool packages.\r\nThe boot-strapping happens in run.ps1, if the run tool cannot be found\r\nthen the boot-strapper script is downloaded and executed.  It also\r\ndownloads nuget.exe which is a unique requirement for build tools.","created_at":"2016-09-09T19:48:21Z","updated_at":"2016-09-09T20:30:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"169eb4a1ca1db5b12fc97e52cc64c1e9d2dc67e0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/buildtools/pulls/1030/commits","review_comments_url":"https://api.github.com/repos/dotnet/buildtools/pulls/1030/comments","review_comment_url":"https://api.github.com/repos/dotnet/buildtools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/buildtools/issues/1030/comments","statuses_url":"https://api.github.com/repos/dotnet/buildtools/statuses/81b588ac90cde3440c09c1320ee78491c52a193d","head":{"label":"jhendrixMSFT:master","ref":"master","sha":"81b588ac90cde3440c09c1320ee78491c52a193d","user":{"login":"jhendrixMSFT","id":10090263,"avatar_url":"https://avatars.githubusercontent.com/u/10090263?v=3","gravatar_id":"","url":"https://api.github.com/users/jhendrixMSFT","html_url":"https://github.com/jhendrixMSFT","followers_url":"https://api.github.com/users/jhendrixMSFT/followers","following_url":"https://api.github.com/users/jhendrixMSFT/following{/other_user}","gists_url":"https://api.github.com/users/jhendrixMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/jhendrixMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhendrixMSFT/subscriptions","organizations_url":"https://api.github.com/users/jhendrixMSFT/orgs","repos_url":"https://api.github.com/users/jhendrixMSFT/repos","events_url":"https://api.github.com/users/jhendrixMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/jhendrixMSFT/received_events","type":"User","site_admin":false},"repo":{"id":30382311,"name":"buildtools","full_name":"jhendrixMSFT/buildtools","owner":{"login":"jhendrixMSFT","id":10090263,"avatar_url":"https://avatars.githubusercontent.com/u/10090263?v=3","gravatar_id":"","url":"https://api.github.com/users/jhendrixMSFT","html_url":"https://github.com/jhendrixMSFT","followers_url":"https://api.github.com/users/jhendrixMSFT/followers","following_url":"https://api.github.com/users/jhendrixMSFT/following{/other_user}","gists_url":"https://api.github.com/users/jhendrixMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/jhendrixMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhendrixMSFT/subscriptions","organizations_url":"https://api.github.com/users/jhendrixMSFT/orgs","repos_url":"https://api.github.com/users/jhendrixMSFT/repos","events_url":"https://api.github.com/users/jhendrixMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/jhendrixMSFT/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhendrixMSFT/buildtools","description":"Build tools that are necessary for building the .NET Core projects","fork":true,"url":"https://api.github.com/repos/jhendrixMSFT/buildtools","forks_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/forks","keys_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/teams","hooks_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/hooks","issue_events_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/issues/events{/number}","events_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/events","assignees_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/assignees{/user}","branches_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/branches{/branch}","tags_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/tags","blobs_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/statuses/{sha}","languages_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/languages","stargazers_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/stargazers","contributors_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/contributors","subscribers_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/subscribers","subscription_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/subscription","commits_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/contents/{+path}","compare_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/merges","archive_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/downloads","issues_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/issues{/number}","pulls_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/pulls{/number}","milestones_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/milestones{/number}","notifications_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/labels{/name}","releases_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/releases{/id}","deployments_url":"https://api.github.com/repos/jhendrixMSFT/buildtools/deployments","created_at":"2015-02-05T22:37:06Z","updated_at":"2016-01-13T23:14:04Z","pushed_at":"2016-09-09T19:47:52Z","git_url":"git://github.com/jhendrixMSFT/buildtools.git","ssh_url":"git@github.com:jhendrixMSFT/buildtools.git","clone_url":"https://github.com/jhendrixMSFT/buildtools.git","svn_url":"https://github.com/jhendrixMSFT/buildtools","homepage":"","size":3816,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"dotnet:master","ref":"master","sha":"d894308c079a8c6dc3bf852826b541b242ac9e46","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":26295349,"name":"buildtools","full_name":"dotnet/buildtools","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/buildtools","description":"Build tools that are necessary for building the .NET Core projects","fork":false,"url":"https://api.github.com/repos/dotnet/buildtools","forks_url":"https://api.github.com/repos/dotnet/buildtools/forks","keys_url":"https://api.github.com/repos/dotnet/buildtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/buildtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/buildtools/teams","hooks_url":"https://api.github.com/repos/dotnet/buildtools/hooks","issue_events_url":"https://api.github.com/repos/dotnet/buildtools/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/buildtools/events","assignees_url":"https://api.github.com/repos/dotnet/buildtools/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/buildtools/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/buildtools/tags","blobs_url":"https://api.github.com/repos/dotnet/buildtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/buildtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/buildtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/buildtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/buildtools/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/buildtools/languages","stargazers_url":"https://api.github.com/repos/dotnet/buildtools/stargazers","contributors_url":"https://api.github.com/repos/dotnet/buildtools/contributors","subscribers_url":"https://api.github.com/repos/dotnet/buildtools/subscribers","subscription_url":"https://api.github.com/repos/dotnet/buildtools/subscription","commits_url":"https://api.github.com/repos/dotnet/buildtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/buildtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/buildtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/buildtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/buildtools/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/buildtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/buildtools/merges","archive_url":"https://api.github.com/repos/dotnet/buildtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/buildtools/downloads","issues_url":"https://api.github.com/repos/dotnet/buildtools/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/buildtools/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/buildtools/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/buildtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/buildtools/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/buildtools/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/buildtools/deployments","created_at":"2014-11-06T23:43:05Z","updated_at":"2016-08-30T09:09:48Z","pushed_at":"2016-09-09T19:48:21Z","git_url":"git://github.com/dotnet/buildtools.git","ssh_url":"git@github.com:dotnet/buildtools.git","clone_url":"https://github.com/dotnet/buildtools.git","svn_url":"https://github.com/dotnet/buildtools","homepage":"","size":4979,"stargazers_count":424,"watchers_count":424,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":210,"mirror_url":null,"open_issues_count":110,"forks":210,"open_issues":110,"watchers":424,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/buildtools/pulls/1030"},"html":{"href":"https://github.com/dotnet/buildtools/pull/1030"},"issue":{"href":"https://api.github.com/repos/dotnet/buildtools/issues/1030"},"comments":{"href":"https://api.github.com/repos/dotnet/buildtools/issues/1030/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/buildtools/pulls/1030/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/buildtools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/buildtools/pulls/1030/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/buildtools/statuses/81b588ac90cde3440c09c1320ee78491c52a193d"}}}}
{"actor":{"display_login":"jhendrixMSFT"}}