{"action":"created","comment":{"url":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/comments/89938521","pull_request_review_id":10466272,"id":89938521,"diff_hunk":"@@ -12,46 +12,137 @@ $ErrorActionPreference = 'Stop'\n # Functions\n # -----------------------------------------------------------------\n \n-function Write-VersionTable\n+function Log-VersionTable\n {\n \tWrite-Verbose ($PSVersionTable | Out-String)\n }\n \n+function Log-EnvironmentInformation\n+{\n+\tif ($OctopusParameters.ContainsKey(\"Octopus.Action.Script.SuppressEnvironmentLogging\")) {\n+\t\tif ($OctopusParameters[\"Octopus.Action.Script.SuppressEnvironmentLogging\"] -eq \"True\") {\n+\t\t\treturn;\n+\t\t}\n+\t}\n+\n+\tWrite-Host \"##octopus[stdout-verbose]\"","path":"source/Calamari/Integration/Scripting/WindowsPowerShell/Bootstrap.ps1","position":18,"original_position":18,"commit_id":"f868539ae0114c8eaec6d7cdde758fca34bd45f9","original_commit_id":"f868539ae0114c8eaec6d7cdde758fca34bd45f9","user":{"login":"matt-richardson","id":373389,"avatar_url":"https://avatars.githubusercontent.com/u/373389?v=3","gravatar_id":"","url":"https://api.github.com/users/matt-richardson","html_url":"https://github.com/matt-richardson","followers_url":"https://api.github.com/users/matt-richardson/followers","following_url":"https://api.github.com/users/matt-richardson/following{/other_user}","gists_url":"https://api.github.com/users/matt-richardson/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-richardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-richardson/subscriptions","organizations_url":"https://api.github.com/users/matt-richardson/orgs","repos_url":"https://api.github.com/users/matt-richardson/repos","events_url":"https://api.github.com/users/matt-richardson/events{/privacy}","received_events_url":"https://api.github.com/users/matt-richardson/received_events","type":"User","site_admin":false},"body":"`Write-Host` is frowned upon generally in PowerShell, as it may not always be redirected.","created_at":"2016-11-29T04:19:16Z","updated_at":"2016-11-29T04:19:17Z","html_url":"https://github.com/OctopusDeploy/Calamari/pull/137#discussion_r89938521","pull_request_url":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/137","_links":{"self":{"href":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/comments/89938521"},"html":{"href":"https://github.com/OctopusDeploy/Calamari/pull/137#discussion_r89938521"},"pull_request":{"href":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/137"}}},"pull_request":{"url":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/137","id":94932866,"html_url":"https://github.com/OctopusDeploy/Calamari/pull/137","diff_url":"https://github.com/OctopusDeploy/Calamari/pull/137.diff","patch_url":"https://github.com/OctopusDeploy/Calamari/pull/137.patch","issue_url":"https://api.github.com/repos/OctopusDeploy/Calamari/issues/137","number":137,"state":"open","locked":false,"title":"Adding environment information logging","user":{"login":"thebigmoosey","id":819605,"avatar_url":"https://avatars.githubusercontent.com/u/819605?v=3","gravatar_id":"","url":"https://api.github.com/users/thebigmoosey","html_url":"https://github.com/thebigmoosey","followers_url":"https://api.github.com/users/thebigmoosey/followers","following_url":"https://api.github.com/users/thebigmoosey/following{/other_user}","gists_url":"https://api.github.com/users/thebigmoosey/gists{/gist_id}","starred_url":"https://api.github.com/users/thebigmoosey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebigmoosey/subscriptions","organizations_url":"https://api.github.com/users/thebigmoosey/orgs","repos_url":"https://api.github.com/users/thebigmoosey/repos","events_url":"https://api.github.com/users/thebigmoosey/events{/privacy}","received_events_url":"https://api.github.com/users/thebigmoosey/received_events","type":"User","site_admin":false},"body":"Adding environment information logs when Calamari executes. Each script bootstrapper (powershell, cs, bash and f#) also logs environment information to help with debugging support requests.\r\n\r\nFixes OctopusDeploy/Issues#2887","created_at":"2016-11-23T01:52:15Z","updated_at":"2016-11-29T04:19:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"258576329222879b48d9f3b336bf8fac2a45b613","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/137/commits","review_comments_url":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/137/comments","review_comment_url":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OctopusDeploy/Calamari/issues/137/comments","statuses_url":"https://api.github.com/repos/OctopusDeploy/Calamari/statuses/f868539ae0114c8eaec6d7cdde758fca34bd45f9","head":{"label":"OctopusDeploy:feature-envInfo","ref":"feature-envInfo","sha":"f868539ae0114c8eaec6d7cdde758fca34bd45f9","user":{"login":"OctopusDeploy","id":1287123,"avatar_url":"https://avatars.githubusercontent.com/u/1287123?v=3","gravatar_id":"","url":"https://api.github.com/users/OctopusDeploy","html_url":"https://github.com/OctopusDeploy","followers_url":"https://api.github.com/users/OctopusDeploy/followers","following_url":"https://api.github.com/users/OctopusDeploy/following{/other_user}","gists_url":"https://api.github.com/users/OctopusDeploy/gists{/gist_id}","starred_url":"https://api.github.com/users/OctopusDeploy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OctopusDeploy/subscriptions","organizations_url":"https://api.github.com/users/OctopusDeploy/orgs","repos_url":"https://api.github.com/users/OctopusDeploy/repos","events_url":"https://api.github.com/users/OctopusDeploy/events{/privacy}","received_events_url":"https://api.github.com/users/OctopusDeploy/received_events","type":"Organization","site_admin":false},"repo":{"id":31401355,"name":"Calamari","full_name":"OctopusDeploy/Calamari","owner":{"login":"OctopusDeploy","id":1287123,"avatar_url":"https://avatars.githubusercontent.com/u/1287123?v=3","gravatar_id":"","url":"https://api.github.com/users/OctopusDeploy","html_url":"https://github.com/OctopusDeploy","followers_url":"https://api.github.com/users/OctopusDeploy/followers","following_url":"https://api.github.com/users/OctopusDeploy/following{/other_user}","gists_url":"https://api.github.com/users/OctopusDeploy/gists{/gist_id}","starred_url":"https://api.github.com/users/OctopusDeploy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OctopusDeploy/subscriptions","organizations_url":"https://api.github.com/users/OctopusDeploy/orgs","repos_url":"https://api.github.com/users/OctopusDeploy/repos","events_url":"https://api.github.com/users/OctopusDeploy/events{/privacy}","received_events_url":"https://api.github.com/users/OctopusDeploy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OctopusDeploy/Calamari","description":"The core deployment scripts and tools used by Octopus Deploy","fork":false,"url":"https://api.github.com/repos/OctopusDeploy/Calamari","forks_url":"https://api.github.com/repos/OctopusDeploy/Calamari/forks","keys_url":"https://api.github.com/repos/OctopusDeploy/Calamari/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OctopusDeploy/Calamari/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OctopusDeploy/Calamari/teams","hooks_url":"https://api.github.com/repos/OctopusDeploy/Calamari/hooks","issue_events_url":"https://api.github.com/repos/OctopusDeploy/Calamari/issues/events{/number}","events_url":"https://api.github.com/repos/OctopusDeploy/Calamari/events","assignees_url":"https://api.github.com/repos/OctopusDeploy/Calamari/assignees{/user}","branches_url":"https://api.github.com/repos/OctopusDeploy/Calamari/branches{/branch}","tags_url":"https://api.github.com/repos/OctopusDeploy/Calamari/tags","blobs_url":"https://api.github.com/repos/OctopusDeploy/Calamari/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OctopusDeploy/Calamari/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OctopusDeploy/Calamari/git/refs{/sha}","trees_url":"https://api.github.com/repos/OctopusDeploy/Calamari/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OctopusDeploy/Calamari/statuses/{sha}","languages_url":"https://api.github.com/repos/OctopusDeploy/Calamari/languages","stargazers_url":"https://api.github.com/repos/OctopusDeploy/Calamari/stargazers","contributors_url":"https://api.github.com/repos/OctopusDeploy/Calamari/contributors","subscribers_url":"https://api.github.com/repos/OctopusDeploy/Calamari/subscribers","subscription_url":"https://api.github.com/repos/OctopusDeploy/Calamari/subscription","commits_url":"https://api.github.com/repos/OctopusDeploy/Calamari/commits{/sha}","git_commits_url":"https://api.github.com/repos/OctopusDeploy/Calamari/git/commits{/sha}","comments_url":"https://api.github.com/repos/OctopusDeploy/Calamari/comments{/number}","issue_comment_url":"https://api.github.com/repos/OctopusDeploy/Calamari/issues/comments{/number}","contents_url":"https://api.github.com/repos/OctopusDeploy/Calamari/contents/{+path}","compare_url":"https://api.github.com/repos/OctopusDeploy/Calamari/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OctopusDeploy/Calamari/merges","archive_url":"https://api.github.com/repos/OctopusDeploy/Calamari/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OctopusDeploy/Calamari/downloads","issues_url":"https://api.github.com/repos/OctopusDeploy/Calamari/issues{/number}","pulls_url":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls{/number}","milestones_url":"https://api.github.com/repos/OctopusDeploy/Calamari/milestones{/number}","notifications_url":"https://api.github.com/repos/OctopusDeploy/Calamari/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OctopusDeploy/Calamari/labels{/name}","releases_url":"https://api.github.com/repos/OctopusDeploy/Calamari/releases{/id}","deployments_url":"https://api.github.com/repos/OctopusDeploy/Calamari/deployments","created_at":"2015-02-27T03:16:02Z","updated_at":"2016-11-23T03:45:53Z","pushed_at":"2016-11-29T04:07:48Z","git_url":"git://github.com/OctopusDeploy/Calamari.git","ssh_url":"git@github.com:OctopusDeploy/Calamari.git","clone_url":"https://github.com/OctopusDeploy/Calamari.git","svn_url":"https://github.com/OctopusDeploy/Calamari","homepage":null,"size":14010,"stargazers_count":89,"watchers_count":89,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":2,"forks":46,"open_issues":2,"watchers":89,"default_branch":"master"}},"base":{"label":"OctopusDeploy:master","ref":"master","sha":"fc9dbd7da2731ca3b2da9986afd0ea942230e5d7","user":{"login":"OctopusDeploy","id":1287123,"avatar_url":"https://avatars.githubusercontent.com/u/1287123?v=3","gravatar_id":"","url":"https://api.github.com/users/OctopusDeploy","html_url":"https://github.com/OctopusDeploy","followers_url":"https://api.github.com/users/OctopusDeploy/followers","following_url":"https://api.github.com/users/OctopusDeploy/following{/other_user}","gists_url":"https://api.github.com/users/OctopusDeploy/gists{/gist_id}","starred_url":"https://api.github.com/users/OctopusDeploy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OctopusDeploy/subscriptions","organizations_url":"https://api.github.com/users/OctopusDeploy/orgs","repos_url":"https://api.github.com/users/OctopusDeploy/repos","events_url":"https://api.github.com/users/OctopusDeploy/events{/privacy}","received_events_url":"https://api.github.com/users/OctopusDeploy/received_events","type":"Organization","site_admin":false},"repo":{"id":31401355,"name":"Calamari","full_name":"OctopusDeploy/Calamari","owner":{"login":"OctopusDeploy","id":1287123,"avatar_url":"https://avatars.githubusercontent.com/u/1287123?v=3","gravatar_id":"","url":"https://api.github.com/users/OctopusDeploy","html_url":"https://github.com/OctopusDeploy","followers_url":"https://api.github.com/users/OctopusDeploy/followers","following_url":"https://api.github.com/users/OctopusDeploy/following{/other_user}","gists_url":"https://api.github.com/users/OctopusDeploy/gists{/gist_id}","starred_url":"https://api.github.com/users/OctopusDeploy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OctopusDeploy/subscriptions","organizations_url":"https://api.github.com/users/OctopusDeploy/orgs","repos_url":"https://api.github.com/users/OctopusDeploy/repos","events_url":"https://api.github.com/users/OctopusDeploy/events{/privacy}","received_events_url":"https://api.github.com/users/OctopusDeploy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OctopusDeploy/Calamari","description":"The core deployment scripts and tools used by Octopus Deploy","fork":false,"url":"https://api.github.com/repos/OctopusDeploy/Calamari","forks_url":"https://api.github.com/repos/OctopusDeploy/Calamari/forks","keys_url":"https://api.github.com/repos/OctopusDeploy/Calamari/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OctopusDeploy/Calamari/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OctopusDeploy/Calamari/teams","hooks_url":"https://api.github.com/repos/OctopusDeploy/Calamari/hooks","issue_events_url":"https://api.github.com/repos/OctopusDeploy/Calamari/issues/events{/number}","events_url":"https://api.github.com/repos/OctopusDeploy/Calamari/events","assignees_url":"https://api.github.com/repos/OctopusDeploy/Calamari/assignees{/user}","branches_url":"https://api.github.com/repos/OctopusDeploy/Calamari/branches{/branch}","tags_url":"https://api.github.com/repos/OctopusDeploy/Calamari/tags","blobs_url":"https://api.github.com/repos/OctopusDeploy/Calamari/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OctopusDeploy/Calamari/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OctopusDeploy/Calamari/git/refs{/sha}","trees_url":"https://api.github.com/repos/OctopusDeploy/Calamari/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OctopusDeploy/Calamari/statuses/{sha}","languages_url":"https://api.github.com/repos/OctopusDeploy/Calamari/languages","stargazers_url":"https://api.github.com/repos/OctopusDeploy/Calamari/stargazers","contributors_url":"https://api.github.com/repos/OctopusDeploy/Calamari/contributors","subscribers_url":"https://api.github.com/repos/OctopusDeploy/Calamari/subscribers","subscription_url":"https://api.github.com/repos/OctopusDeploy/Calamari/subscription","commits_url":"https://api.github.com/repos/OctopusDeploy/Calamari/commits{/sha}","git_commits_url":"https://api.github.com/repos/OctopusDeploy/Calamari/git/commits{/sha}","comments_url":"https://api.github.com/repos/OctopusDeploy/Calamari/comments{/number}","issue_comment_url":"https://api.github.com/repos/OctopusDeploy/Calamari/issues/comments{/number}","contents_url":"https://api.github.com/repos/OctopusDeploy/Calamari/contents/{+path}","compare_url":"https://api.github.com/repos/OctopusDeploy/Calamari/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OctopusDeploy/Calamari/merges","archive_url":"https://api.github.com/repos/OctopusDeploy/Calamari/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OctopusDeploy/Calamari/downloads","issues_url":"https://api.github.com/repos/OctopusDeploy/Calamari/issues{/number}","pulls_url":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls{/number}","milestones_url":"https://api.github.com/repos/OctopusDeploy/Calamari/milestones{/number}","notifications_url":"https://api.github.com/repos/OctopusDeploy/Calamari/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OctopusDeploy/Calamari/labels{/name}","releases_url":"https://api.github.com/repos/OctopusDeploy/Calamari/releases{/id}","deployments_url":"https://api.github.com/repos/OctopusDeploy/Calamari/deployments","created_at":"2015-02-27T03:16:02Z","updated_at":"2016-11-23T03:45:53Z","pushed_at":"2016-11-29T04:07:48Z","git_url":"git://github.com/OctopusDeploy/Calamari.git","ssh_url":"git@github.com:OctopusDeploy/Calamari.git","clone_url":"https://github.com/OctopusDeploy/Calamari.git","svn_url":"https://github.com/OctopusDeploy/Calamari","homepage":null,"size":14010,"stargazers_count":89,"watchers_count":89,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":2,"forks":46,"open_issues":2,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/137"},"html":{"href":"https://github.com/OctopusDeploy/Calamari/pull/137"},"issue":{"href":"https://api.github.com/repos/OctopusDeploy/Calamari/issues/137"},"comments":{"href":"https://api.github.com/repos/OctopusDeploy/Calamari/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/137/comments"},"review_comment":{"href":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OctopusDeploy/Calamari/pulls/137/commits"},"statuses":{"href":"https://api.github.com/repos/OctopusDeploy/Calamari/statuses/f868539ae0114c8eaec6d7cdde758fca34bd45f9"}}}}
{"actor":{"display_login":"matt-richardson"}}