{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments/144604622","pull_request_review_id":69287787,"id":144604622,"diff_hunk":"@@ -440,7 +365,8 @@ private List<ServiceController> MatchingServicesByServiceName()\n                 }\n                 else\n                 {\n-                    foreach (ServiceController service in OneService(pattern))\n+                    ServiceController service = GetOneService(pattern);\n+                    if (service != null)","path":"src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs","position":145,"original_position":145,"commit_id":"07d5acd12108c0cd07245b6d2a6cf47b8d5776fd","original_commit_id":"07d5acd12108c0cd07245b6d2a6cf47b8d5776fd","user":{"login":"daxian-dbw","id":127450,"avatar_url":"https://avatars2.githubusercontent.com/u/127450?v=4","gravatar_id":"","url":"https://api.github.com/users/daxian-dbw","html_url":"https://github.com/daxian-dbw","followers_url":"https://api.github.com/users/daxian-dbw/followers","following_url":"https://api.github.com/users/daxian-dbw/following{/other_user}","gists_url":"https://api.github.com/users/daxian-dbw/gists{/gist_id}","starred_url":"https://api.github.com/users/daxian-dbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daxian-dbw/subscriptions","organizations_url":"https://api.github.com/users/daxian-dbw/orgs","repos_url":"https://api.github.com/users/daxian-dbw/repos","events_url":"https://api.github.com/users/daxian-dbw/events{/privacy}","received_events_url":"https://api.github.com/users/daxian-dbw/received_events","type":"User","site_admin":false},"body":"When the service doesn't exist, accessing `sc.Status;` will throw `InvalidOperationException`. In that case the method will catch the exception and return null.","created_at":"2017-10-13T16:50:48Z","updated_at":"2017-10-13T16:50:49Z","html_url":"https://github.com/PowerShell/PowerShell/pull/5094#discussion_r144604622","pull_request_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/5094","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments/144604622"},"html":{"href":"https://github.com/PowerShell/PowerShell/pull/5094#discussion_r144604622"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/5094"}},"in_reply_to_id":144459318},"pull_request":{"url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/5094","id":146281601,"html_url":"https://github.com/PowerShell/PowerShell/pull/5094","diff_url":"https://github.com/PowerShell/PowerShell/pull/5094.diff","patch_url":"https://github.com/PowerShell/PowerShell/pull/5094.patch","issue_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/5094","number":5094,"state":"open","locked":false,"title":"Remove '-ComputerName' from 'Get/Set/Remove-Service'","user":{"login":"daxian-dbw","id":127450,"avatar_url":"https://avatars2.githubusercontent.com/u/127450?v=4","gravatar_id":"","url":"https://api.github.com/users/daxian-dbw","html_url":"https://github.com/daxian-dbw","followers_url":"https://api.github.com/users/daxian-dbw/followers","following_url":"https://api.github.com/users/daxian-dbw/following{/other_user}","gists_url":"https://api.github.com/users/daxian-dbw/gists{/gist_id}","starred_url":"https://api.github.com/users/daxian-dbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daxian-dbw/subscriptions","organizations_url":"https://api.github.com/users/daxian-dbw/orgs","repos_url":"https://api.github.com/users/daxian-dbw/repos","events_url":"https://api.github.com/users/daxian-dbw/events{/privacy}","received_events_url":"https://api.github.com/users/daxian-dbw/received_events","type":"User","site_admin":false},"body":"Fix #5090\r\nRemove '-ComputerName' from 'Get/Set/Remove-Service'","created_at":"2017-10-12T18:29:45Z","updated_at":"2017-10-13T16:50:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8989291288544ffe0ca1bcb19913a7d841b89cac","assignee":{"login":"iSazonov","id":22290914,"avatar_url":"https://avatars2.githubusercontent.com/u/22290914?v=4","gravatar_id":"","url":"https://api.github.com/users/iSazonov","html_url":"https://github.com/iSazonov","followers_url":"https://api.github.com/users/iSazonov/followers","following_url":"https://api.github.com/users/iSazonov/following{/other_user}","gists_url":"https://api.github.com/users/iSazonov/gists{/gist_id}","starred_url":"https://api.github.com/users/iSazonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iSazonov/subscriptions","organizations_url":"https://api.github.com/users/iSazonov/orgs","repos_url":"https://api.github.com/users/iSazonov/repos","events_url":"https://api.github.com/users/iSazonov/events{/privacy}","received_events_url":"https://api.github.com/users/iSazonov/received_events","type":"User","site_admin":false},"assignees":[{"login":"iSazonov","id":22290914,"avatar_url":"https://avatars2.githubusercontent.com/u/22290914?v=4","gravatar_id":"","url":"https://api.github.com/users/iSazonov","html_url":"https://github.com/iSazonov","followers_url":"https://api.github.com/users/iSazonov/followers","following_url":"https://api.github.com/users/iSazonov/following{/other_user}","gists_url":"https://api.github.com/users/iSazonov/gists{/gist_id}","starred_url":"https://api.github.com/users/iSazonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iSazonov/subscriptions","organizations_url":"https://api.github.com/users/iSazonov/orgs","repos_url":"https://api.github.com/users/iSazonov/repos","events_url":"https://api.github.com/users/iSazonov/events{/privacy}","received_events_url":"https://api.github.com/users/iSazonov/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"SteveL-MSFT","id":11859881,"avatar_url":"https://avatars1.githubusercontent.com/u/11859881?v=4","gravatar_id":"","url":"https://api.github.com/users/SteveL-MSFT","html_url":"https://github.com/SteveL-MSFT","followers_url":"https://api.github.com/users/SteveL-MSFT/followers","following_url":"https://api.github.com/users/SteveL-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/SteveL-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveL-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveL-MSFT/subscriptions","organizations_url":"https://api.github.com/users/SteveL-MSFT/orgs","repos_url":"https://api.github.com/users/SteveL-MSFT/repos","events_url":"https://api.github.com/users/SteveL-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/SteveL-MSFT/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/5094/commits","review_comments_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/5094/comments","review_comment_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/5094/comments","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell/statuses/07d5acd12108c0cd07245b6d2a6cf47b8d5776fd","head":{"label":"daxian-dbw:service","ref":"service","sha":"07d5acd12108c0cd07245b6d2a6cf47b8d5776fd","user":{"login":"daxian-dbw","id":127450,"avatar_url":"https://avatars2.githubusercontent.com/u/127450?v=4","gravatar_id":"","url":"https://api.github.com/users/daxian-dbw","html_url":"https://github.com/daxian-dbw","followers_url":"https://api.github.com/users/daxian-dbw/followers","following_url":"https://api.github.com/users/daxian-dbw/following{/other_user}","gists_url":"https://api.github.com/users/daxian-dbw/gists{/gist_id}","starred_url":"https://api.github.com/users/daxian-dbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daxian-dbw/subscriptions","organizations_url":"https://api.github.com/users/daxian-dbw/orgs","repos_url":"https://api.github.com/users/daxian-dbw/repos","events_url":"https://api.github.com/users/daxian-dbw/events{/privacy}","received_events_url":"https://api.github.com/users/daxian-dbw/received_events","type":"User","site_admin":false},"repo":{"id":66013539,"name":"PowerShell","full_name":"daxian-dbw/PowerShell","owner":{"login":"daxian-dbw","id":127450,"avatar_url":"https://avatars2.githubusercontent.com/u/127450?v=4","gravatar_id":"","url":"https://api.github.com/users/daxian-dbw","html_url":"https://github.com/daxian-dbw","followers_url":"https://api.github.com/users/daxian-dbw/followers","following_url":"https://api.github.com/users/daxian-dbw/following{/other_user}","gists_url":"https://api.github.com/users/daxian-dbw/gists{/gist_id}","starred_url":"https://api.github.com/users/daxian-dbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daxian-dbw/subscriptions","organizations_url":"https://api.github.com/users/daxian-dbw/orgs","repos_url":"https://api.github.com/users/daxian-dbw/repos","events_url":"https://api.github.com/users/daxian-dbw/events{/privacy}","received_events_url":"https://api.github.com/users/daxian-dbw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daxian-dbw/PowerShell","description":"PowerShell for every system","fork":true,"url":"https://api.github.com/repos/daxian-dbw/PowerShell","forks_url":"https://api.github.com/repos/daxian-dbw/PowerShell/forks","keys_url":"https://api.github.com/repos/daxian-dbw/PowerShell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daxian-dbw/PowerShell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daxian-dbw/PowerShell/teams","hooks_url":"https://api.github.com/repos/daxian-dbw/PowerShell/hooks","issue_events_url":"https://api.github.com/repos/daxian-dbw/PowerShell/issues/events{/number}","events_url":"https://api.github.com/repos/daxian-dbw/PowerShell/events","assignees_url":"https://api.github.com/repos/daxian-dbw/PowerShell/assignees{/user}","branches_url":"https://api.github.com/repos/daxian-dbw/PowerShell/branches{/branch}","tags_url":"https://api.github.com/repos/daxian-dbw/PowerShell/tags","blobs_url":"https://api.github.com/repos/daxian-dbw/PowerShell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daxian-dbw/PowerShell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daxian-dbw/PowerShell/git/refs{/sha}","trees_url":"https://api.github.com/repos/daxian-dbw/PowerShell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daxian-dbw/PowerShell/statuses/{sha}","languages_url":"https://api.github.com/repos/daxian-dbw/PowerShell/languages","stargazers_url":"https://api.github.com/repos/daxian-dbw/PowerShell/stargazers","contributors_url":"https://api.github.com/repos/daxian-dbw/PowerShell/contributors","subscribers_url":"https://api.github.com/repos/daxian-dbw/PowerShell/subscribers","subscription_url":"https://api.github.com/repos/daxian-dbw/PowerShell/subscription","commits_url":"https://api.github.com/repos/daxian-dbw/PowerShell/commits{/sha}","git_commits_url":"https://api.github.com/repos/daxian-dbw/PowerShell/git/commits{/sha}","comments_url":"https://api.github.com/repos/daxian-dbw/PowerShell/comments{/number}","issue_comment_url":"https://api.github.com/repos/daxian-dbw/PowerShell/issues/comments{/number}","contents_url":"https://api.github.com/repos/daxian-dbw/PowerShell/contents/{+path}","compare_url":"https://api.github.com/repos/daxian-dbw/PowerShell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daxian-dbw/PowerShell/merges","archive_url":"https://api.github.com/repos/daxian-dbw/PowerShell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daxian-dbw/PowerShell/downloads","issues_url":"https://api.github.com/repos/daxian-dbw/PowerShell/issues{/number}","pulls_url":"https://api.github.com/repos/daxian-dbw/PowerShell/pulls{/number}","milestones_url":"https://api.github.com/repos/daxian-dbw/PowerShell/milestones{/number}","notifications_url":"https://api.github.com/repos/daxian-dbw/PowerShell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daxian-dbw/PowerShell/labels{/name}","releases_url":"https://api.github.com/repos/daxian-dbw/PowerShell/releases{/id}","deployments_url":"https://api.github.com/repos/daxian-dbw/PowerShell/deployments","created_at":"2016-08-18T16:34:35Z","updated_at":"2017-06-26T14:02:19Z","pushed_at":"2017-10-13T05:59:04Z","git_url":"git://github.com/daxian-dbw/PowerShell.git","ssh_url":"git@github.com:daxian-dbw/PowerShell.git","clone_url":"https://github.com/daxian-dbw/PowerShell.git","svn_url":"https://github.com/daxian-dbw/PowerShell","homepage":"","size":28923,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"PowerShell:master","ref":"master","sha":"94a71b05d474c8e58aff9aebe7b183f68462a6b5","user":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":49609581,"name":"PowerShell","full_name":"PowerShell/PowerShell","owner":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/PowerShell","description":"PowerShell for every system!","fork":false,"url":"https://api.github.com/repos/PowerShell/PowerShell","forks_url":"https://api.github.com/repos/PowerShell/PowerShell/forks","keys_url":"https://api.github.com/repos/PowerShell/PowerShell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/PowerShell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/PowerShell/teams","hooks_url":"https://api.github.com/repos/PowerShell/PowerShell/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/PowerShell/events","assignees_url":"https://api.github.com/repos/PowerShell/PowerShell/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/PowerShell/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/PowerShell/tags","blobs_url":"https://api.github.com/repos/PowerShell/PowerShell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/PowerShell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/PowerShell/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/PowerShell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/PowerShell/languages","stargazers_url":"https://api.github.com/repos/PowerShell/PowerShell/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/PowerShell/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/PowerShell/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/PowerShell/subscription","commits_url":"https://api.github.com/repos/PowerShell/PowerShell/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/PowerShell/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/PowerShell/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/PowerShell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/PowerShell/merges","archive_url":"https://api.github.com/repos/PowerShell/PowerShell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/PowerShell/downloads","issues_url":"https://api.github.com/repos/PowerShell/PowerShell/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/PowerShell/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/PowerShell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/PowerShell/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/PowerShell/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/PowerShell/deployments","created_at":"2016-01-13T23:41:35Z","updated_at":"2017-10-13T16:24:41Z","pushed_at":"2017-10-13T16:44:03Z","git_url":"git://github.com/PowerShell/PowerShell.git","ssh_url":"git@github.com:PowerShell/PowerShell.git","clone_url":"https://github.com/PowerShell/PowerShell.git","svn_url":"https://github.com/PowerShell/PowerShell","homepage":"https://microsoft.com/powershell","size":29784,"stargazers_count":8048,"watchers_count":8048,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1175,"mirror_url":null,"open_issues_count":1023,"forks":1175,"open_issues":1023,"watchers":8048,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/5094"},"html":{"href":"https://github.com/PowerShell/PowerShell/pull/5094"},"issue":{"href":"https://api.github.com/repos/PowerShell/PowerShell/issues/5094"},"comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell/issues/5094/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/5094/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/5094/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/PowerShell/statuses/07d5acd12108c0cd07245b6d2a6cf47b8d5776fd"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"daxian-dbw"}}