GitHub PullRequestReviewCommentEvent at 2014-12-19 00:50:44
Repository: kvm
Actor: muratg
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/kvm/pulls/comments/22083562","id":22083562,"diff_hunk":"@@ -0,0 +1,20 @@\n+# Installs the K Version Manager by downloading the latest version from the GitHub repository\n+param(\n+    [Parameter(Position=0)][string]$Branch = \"master\",\n+    [Parameter(Position=1)][string]$Repository = \"aspnet/kvm\")\n+\n+$tempPath = Join-Path $env:TEMP \"kvminstall\"\n+$kvmPs1Path = Join-Path $tempPath \"kvm.ps1\"\n+$kvmCmdPath = Join-Path $tempPath \"kvm.cmd\"\n+\n+Write-Host \"Using temporary directory: $tempPath\"\n+if (!(Test-Path $tempPath)) { md $tempPath | Out-Null }\n+\n+\n+$webClient = New-Object System.Net.WebClient\n+Write-Host \"Downloading KVM.ps1 to $kvmPs1Path\"\n+$webClient.DownloadFile(\"https://raw.githubusercontent.com/$Repository/$Branch/src/kvm.ps1\", $kvmPs1Path)","path":"kvminstall.ps1","position":16,"original_position":16,"commit_id":"33af319c73dc7155bdefd357b1c28be2e2a71b92","original_commit_id":"33af319c73dc7155bdefd357b1c28be2e2a71b92","user":{"login":"muratg","id":1808428,"avatar_url":"https://avatars.githubusercontent.com/u/1808428?v=3","gravatar_id":"","url":"https://api.github.com/users/muratg","html_url":"https://github.com/muratg","followers_url":"https://api.github.com/users/muratg/followers","following_url":"https://api.github.com/users/muratg/following{/other_user}","gists_url":"https://api.github.com/users/muratg/gists{/gist_id}","starred_url":"https://api.github.com/users/muratg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muratg/subscriptions","organizations_url":"https://api.github.com/users/muratg/orgs","repos_url":"https://api.github.com/users/muratg/repos","events_url":"https://api.github.com/users/muratg/events{/privacy}","received_events_url":"https://api.github.com/users/muratg/received_events","type":"User","site_admin":false},"body":"If this lines fails (e.g. GitHub down, repo deleted/renamed, etc.) does PowerShell run the remaining lines?  Do we need to catch and report?  I'm not very fluent with PowerShell but maybe it exits with an error on an exception (so no change needed)","created_at":"2014-12-19T00:50:44Z","updated_at":"2014-12-19T00:50:44Z","html_url":"https://github.com/aspnet/kvm/pull/115#discussion_r22083562","pull_request_url":"https://api.github.com/repos/aspnet/kvm/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/aspnet/kvm/pulls/comments/22083562"},"html":{"href":"https://github.com/aspnet/kvm/pull/115#discussion_r22083562"},"pull_request":{"href":"https://api.github.com/repos/aspnet/kvm/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/kvm/pulls/115","id":26115130,"html_url":"https://github.com/aspnet/kvm/pull/115","diff_url":"https://github.com/aspnet/kvm/pull/115.diff","patch_url":"https://github.com/aspnet/kvm/pull/115.patch","issue_url":"https://api.github.com/repos/aspnet/kvm/issues/115","number":115,"state":"open","locked":false,"title":"Added the installation scripts from aspnet/Home","user":{"login":"anurse","id":7574,"avatar_url":"https://avatars.githubusercontent.com/u/7574?v=3","gravatar_id":"","url":"https://api.github.com/users/anurse","html_url":"https://github.com/anurse","followers_url":"https://api.github.com/users/anurse/followers","following_url":"https://api.github.com/users/anurse/following{/other_user}","gists_url":"https://api.github.com/users/anurse/gists{/gist_id}","starred_url":"https://api.github.com/users/anurse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anurse/subscriptions","organizations_url":"https://api.github.com/users/anurse/orgs","repos_url":"https://api.github.com/users/anurse/repos","events_url":"https://api.github.com/users/anurse/events{/privacy}","received_events_url":"https://api.github.com/users/anurse/received_events","type":"User","site_admin":false},"body":"Also deleted the kvmsetup.cmd because it is confusing and unnecessary (just run 'kvm.cmd setup' :))\r\n\r\nRelated to aspnet/homebrew-k#8","created_at":"2014-12-16T00:55:02Z","updated_at":"2014-12-19T00:50:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e0b76e75ce6b6da89d3a9d5a180853238f6a0af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/kvm/pulls/115/commits","review_comments_url":"https://api.github.com/repos/aspnet/kvm/pulls/115/comments","review_comment_url":"https://api.github.com/repos/aspnet/kvm/pulls/comments/{number}","comments_url":"https://api.github.com/repos/aspnet/kvm/issues/115/comments","statuses_url":"https://api.github.com/repos/aspnet/kvm/statuses/33af319c73dc7155bdefd357b1c28be2e2a71b92","head":{"label":"aspnet:anurse/add-install-scrips","ref":"anurse/add-install-scrips","sha":"33af319c73dc7155bdefd357b1c28be2e2a71b92","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":21449162,"name":"kvm","full_name":"aspnet/kvm","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/kvm","description":"The K Version Manager, a set of command line utilities to update and configure which runtime (KRE) to use.","fork":false,"url":"https://api.github.com/repos/aspnet/kvm","forks_url":"https://api.github.com/repos/aspnet/kvm/forks","keys_url":"https://api.github.com/repos/aspnet/kvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/kvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/kvm/teams","hooks_url":"https://api.github.com/repos/aspnet/kvm/hooks","issue_events_url":"https://api.github.com/repos/aspnet/kvm/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/kvm/events","assignees_url":"https://api.github.com/repos/aspnet/kvm/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/kvm/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/kvm/tags","blobs_url":"https://api.github.com/repos/aspnet/kvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/kvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/kvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/kvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/kvm/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/kvm/languages","stargazers_url":"https://api.github.com/repos/aspnet/kvm/stargazers","contributors_url":"https://api.github.com/repos/aspnet/kvm/contributors","subscribers_url":"https://api.github.com/repos/aspnet/kvm/subscribers","subscription_url":"https://api.github.com/repos/aspnet/kvm/subscription","commits_url":"https://api.github.com/repos/aspnet/kvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/kvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/kvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/kvm/issues/comments/{number}","contents_url":"https://api.github.com/repos/aspnet/kvm/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/kvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/kvm/merges","archive_url":"https://api.github.com/repos/aspnet/kvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/kvm/downloads","issues_url":"https://api.github.com/repos/aspnet/kvm/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/kvm/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/kvm/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/kvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/kvm/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/kvm/releases{/id}","created_at":"2014-07-03T03:56:09Z","updated_at":"2014-12-18T00:08:59Z","pushed_at":"2014-12-18T20:22:46Z","git_url":"git://github.com/aspnet/kvm.git","ssh_url":"git@github.com:aspnet/kvm.git","clone_url":"https://github.com/aspnet/kvm.git","svn_url":"https://github.com/aspnet/kvm","homepage":"","size":579,"stargazers_count":33,"watchers_count":33,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":49,"forks":17,"open_issues":49,"watchers":33,"default_branch":"dev"}},"base":{"label":"aspnet:dev","ref":"dev","sha":"3de6097964e51fe32c5f16c5a8e1e11e13dcd913","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":21449162,"name":"kvm","full_name":"aspnet/kvm","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/kvm","description":"The K Version Manager, a set of command line utilities to update and configure which runtime (KRE) to use.","fork":false,"url":"https://api.github.com/repos/aspnet/kvm","forks_url":"https://api.github.com/repos/aspnet/kvm/forks","keys_url":"https://api.github.com/repos/aspnet/kvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/kvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/kvm/teams","hooks_url":"https://api.github.com/repos/aspnet/kvm/hooks","issue_events_url":"https://api.github.com/repos/aspnet/kvm/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/kvm/events","assignees_url":"https://api.github.com/repos/aspnet/kvm/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/kvm/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/kvm/tags","blobs_url":"https://api.github.com/repos/aspnet/kvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/kvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/kvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/kvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/kvm/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/kvm/languages","stargazers_url":"https://api.github.com/repos/aspnet/kvm/stargazers","contributors_url":"https://api.github.com/repos/aspnet/kvm/contributors","subscribers_url":"https://api.github.com/repos/aspnet/kvm/subscribers","subscription_url":"https://api.github.com/repos/aspnet/kvm/subscription","commits_url":"https://api.github.com/repos/aspnet/kvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/kvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/kvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/kvm/issues/comments/{number}","contents_url":"https://api.github.com/repos/aspnet/kvm/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/kvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/kvm/merges","archive_url":"https://api.github.com/repos/aspnet/kvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/kvm/downloads","issues_url":"https://api.github.com/repos/aspnet/kvm/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/kvm/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/kvm/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/kvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/kvm/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/kvm/releases{/id}","created_at":"2014-07-03T03:56:09Z","updated_at":"2014-12-18T00:08:59Z","pushed_at":"2014-12-18T20:22:46Z","git_url":"git://github.com/aspnet/kvm.git","ssh_url":"git@github.com:aspnet/kvm.git","clone_url":"https://github.com/aspnet/kvm.git","svn_url":"https://github.com/aspnet/kvm","homepage":"","size":579,"stargazers_count":33,"watchers_count":33,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":49,"forks":17,"open_issues":49,"watchers":33,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/kvm/pulls/115"},"html":{"href":"https://github.com/aspnet/kvm/pull/115"},"issue":{"href":"https://api.github.com/repos/aspnet/kvm/issues/115"},"comments":{"href":"https://api.github.com/repos/aspnet/kvm/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/kvm/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/kvm/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/aspnet/kvm/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/kvm/statuses/33af319c73dc7155bdefd357b1c28be2e2a71b92"}}}}