{"action":"created","comment":{"url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/comments/108838668","pull_request_review_id":29897673,"id":108838668,"diff_hunk":"@@ -446,6 +447,9 @@ protected virtual OctopusResponse<TResponseResource> DispatchRequest<TResponseRe\n             webRequest.Credentials = serverEndpoint.Credentials ?? CredentialCache.DefaultNetworkCredentials;\n             webRequest.Method = request.Method;\n             webRequest.Headers[ApiConstants.ApiKeyHttpHeaderName] = serverEndpoint.ApiKey;\n+            var userAgent = $\"OctopusClient-dotnet/{GetType().GetSemanticVersion().ToNormalizedString()}\";\n+            webRequest.UserAgent = userAgent;\n+            webRequest.Headers[ApiConstants.OctopusUserAgentHeaderName] = userAgent;","path":"source/Octopus.Client/OctopusClient.cs","position":14,"original_position":14,"commit_id":"de083ade3399673bb6fcbeba9ca88afca93d06ca","original_commit_id":"de083ade3399673bb6fcbeba9ca88afca93d06ca","user":{"login":"matt-richardson","id":373389,"avatar_url":"https://avatars0.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":"Needs a comment to say why we are setting both","created_at":"2017-03-30T04:29:28Z","updated_at":"2017-03-30T04:29:28Z","html_url":"https://github.com/OctopusDeploy/OctopusClients/pull/153#discussion_r108838668","pull_request_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/153","_links":{"self":{"href":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/comments/108838668"},"html":{"href":"https://github.com/OctopusDeploy/OctopusClients/pull/153#discussion_r108838668"},"pull_request":{"href":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/153","id":113343935,"html_url":"https://github.com/OctopusDeploy/OctopusClients/pull/153","diff_url":"https://github.com/OctopusDeploy/OctopusClients/pull/153.diff","patch_url":"https://github.com/OctopusDeploy/OctopusClients/pull/153.patch","issue_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/issues/153","number":153,"state":"open","locked":false,"title":"Send User-Agent info with HTTP requests","user":{"login":"michaelnoonan","id":1627582,"avatar_url":"https://avatars2.githubusercontent.com/u/1627582?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelnoonan","html_url":"https://github.com/michaelnoonan","followers_url":"https://api.github.com/users/michaelnoonan/followers","following_url":"https://api.github.com/users/michaelnoonan/following{/other_user}","gists_url":"https://api.github.com/users/michaelnoonan/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelnoonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelnoonan/subscriptions","organizations_url":"https://api.github.com/users/michaelnoonan/orgs","repos_url":"https://api.github.com/users/michaelnoonan/repos","events_url":"https://api.github.com/users/michaelnoonan/events{/privacy}","received_events_url":"https://api.github.com/users/michaelnoonan/received_events","type":"User","site_admin":false},"body":"Relates to https://github.com/OctopusDeploy/Issues/issues/3359","created_at":"2017-03-30T04:25:04Z","updated_at":"2017-03-30T04:29:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e1dbb977ccc44ae7a6b36d295f4dc0c370f2fa4","assignee":{"login":"michaelnoonan","id":1627582,"avatar_url":"https://avatars2.githubusercontent.com/u/1627582?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelnoonan","html_url":"https://github.com/michaelnoonan","followers_url":"https://api.github.com/users/michaelnoonan/followers","following_url":"https://api.github.com/users/michaelnoonan/following{/other_user}","gists_url":"https://api.github.com/users/michaelnoonan/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelnoonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelnoonan/subscriptions","organizations_url":"https://api.github.com/users/michaelnoonan/orgs","repos_url":"https://api.github.com/users/michaelnoonan/repos","events_url":"https://api.github.com/users/michaelnoonan/events{/privacy}","received_events_url":"https://api.github.com/users/michaelnoonan/received_events","type":"User","site_admin":false},"assignees":[{"login":"michaelnoonan","id":1627582,"avatar_url":"https://avatars2.githubusercontent.com/u/1627582?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelnoonan","html_url":"https://github.com/michaelnoonan","followers_url":"https://api.github.com/users/michaelnoonan/followers","following_url":"https://api.github.com/users/michaelnoonan/following{/other_user}","gists_url":"https://api.github.com/users/michaelnoonan/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelnoonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelnoonan/subscriptions","organizations_url":"https://api.github.com/users/michaelnoonan/orgs","repos_url":"https://api.github.com/users/michaelnoonan/repos","events_url":"https://api.github.com/users/michaelnoonan/events{/privacy}","received_events_url":"https://api.github.com/users/michaelnoonan/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/153/commits","review_comments_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/153/comments","review_comment_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/issues/153/comments","statuses_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/statuses/de083ade3399673bb6fcbeba9ca88afca93d06ca","head":{"label":"OctopusDeploy:enh-useragent","ref":"enh-useragent","sha":"de083ade3399673bb6fcbeba9ca88afca93d06ca","user":{"login":"OctopusDeploy","id":1287123,"avatar_url":"https://avatars3.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":3054174,"name":"OctopusClients","full_name":"OctopusDeploy/OctopusClients","owner":{"login":"OctopusDeploy","id":1287123,"avatar_url":"https://avatars3.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/OctopusClients","description":"Octo.exe command line tool and Octopus.Client for commanding Octopus servers","fork":false,"url":"https://api.github.com/repos/OctopusDeploy/OctopusClients","forks_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/forks","keys_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/teams","hooks_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/hooks","issue_events_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/issues/events{/number}","events_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/events","assignees_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/assignees{/user}","branches_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/branches{/branch}","tags_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/tags","blobs_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/git/refs{/sha}","trees_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/statuses/{sha}","languages_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/languages","stargazers_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/stargazers","contributors_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/contributors","subscribers_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/subscribers","subscription_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/subscription","commits_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/commits{/sha}","git_commits_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/git/commits{/sha}","comments_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/comments{/number}","issue_comment_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/issues/comments{/number}","contents_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/contents/{+path}","compare_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/merges","archive_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/downloads","issues_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/issues{/number}","pulls_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls{/number}","milestones_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/milestones{/number}","notifications_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/labels{/name}","releases_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/releases{/id}","deployments_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/deployments","created_at":"2011-12-27T01:13:39Z","updated_at":"2017-03-29T22:43:47Z","pushed_at":"2017-03-30T04:25:04Z","git_url":"git://github.com/OctopusDeploy/OctopusClients.git","ssh_url":"git@github.com:OctopusDeploy/OctopusClients.git","clone_url":"https://github.com/OctopusDeploy/OctopusClients.git","svn_url":"https://github.com/OctopusDeploy/OctopusClients","homepage":"https://octopus.com","size":16657,"stargazers_count":118,"watchers_count":118,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":9,"forks":81,"open_issues":9,"watchers":118,"default_branch":"master"}},"base":{"label":"OctopusDeploy:master","ref":"master","sha":"972b093a7d9a3143839db697c620c73ba11bd15d","user":{"login":"OctopusDeploy","id":1287123,"avatar_url":"https://avatars3.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":3054174,"name":"OctopusClients","full_name":"OctopusDeploy/OctopusClients","owner":{"login":"OctopusDeploy","id":1287123,"avatar_url":"https://avatars3.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/OctopusClients","description":"Octo.exe command line tool and Octopus.Client for commanding Octopus servers","fork":false,"url":"https://api.github.com/repos/OctopusDeploy/OctopusClients","forks_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/forks","keys_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/teams","hooks_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/hooks","issue_events_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/issues/events{/number}","events_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/events","assignees_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/assignees{/user}","branches_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/branches{/branch}","tags_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/tags","blobs_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/git/refs{/sha}","trees_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/statuses/{sha}","languages_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/languages","stargazers_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/stargazers","contributors_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/contributors","subscribers_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/subscribers","subscription_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/subscription","commits_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/commits{/sha}","git_commits_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/git/commits{/sha}","comments_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/comments{/number}","issue_comment_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/issues/comments{/number}","contents_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/contents/{+path}","compare_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/merges","archive_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/downloads","issues_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/issues{/number}","pulls_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls{/number}","milestones_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/milestones{/number}","notifications_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/labels{/name}","releases_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/releases{/id}","deployments_url":"https://api.github.com/repos/OctopusDeploy/OctopusClients/deployments","created_at":"2011-12-27T01:13:39Z","updated_at":"2017-03-29T22:43:47Z","pushed_at":"2017-03-30T04:25:04Z","git_url":"git://github.com/OctopusDeploy/OctopusClients.git","ssh_url":"git@github.com:OctopusDeploy/OctopusClients.git","clone_url":"https://github.com/OctopusDeploy/OctopusClients.git","svn_url":"https://github.com/OctopusDeploy/OctopusClients","homepage":"https://octopus.com","size":16657,"stargazers_count":118,"watchers_count":118,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":9,"forks":81,"open_issues":9,"watchers":118,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/153"},"html":{"href":"https://github.com/OctopusDeploy/OctopusClients/pull/153"},"issue":{"href":"https://api.github.com/repos/OctopusDeploy/OctopusClients/issues/153"},"comments":{"href":"https://api.github.com/repos/OctopusDeploy/OctopusClients/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OctopusDeploy/OctopusClients/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/OctopusDeploy/OctopusClients/statuses/de083ade3399673bb6fcbeba9ca88afca93d06ca"}}}}
{"actor":{"display_login":"matt-richardson"}}