{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/comments/190352062","pull_request_review_id":122709967,"id":190352062,"diff_hunk":"@@ -566,10 +566,26 @@ function Update-ModuleManifest\n         {\n             $params.Add(\"CmdletsToExport\", $ModuleManifestHashTable['CmdletsToExport'])\n         }\n-        else {\n-            #Since $moduleInfo.ExportedCmdlets is a hashtable, we need to take the name of the\n-            #cmdlets and make them into a list\n-            $params.Add(\"CmdletsToExport\",($moduleInfo.ExportedCmdlets.Keys -split ' '))\n+        else \n+        {\n+            #Extracting the module name from the path\n+            $FirstIndex = $Path.LastIndexOf('\\') + 1\n+            $LastIndex = $Path.LastIndexOf('.')\n+            $Length = $LastIndex - $FirstIndex\n+            $moduleName = $Path.Substring($FirstIndex, $Length)\n+\n+            #If the module has already been imported, we can leave the prefix \n+            #otherwise, remove the prefix from the cmdlets ","path":"PowerShellGet/public/psgetfunctions/Update-ModuleManifest.ps1","position":17,"original_position":17,"commit_id":"eb57c1a39364bf9a631501f067c590c87208f6f9","original_commit_id":"eb57c1a39364bf9a631501f067c590c87208f6f9","user":{"login":"bmanikm","id":5000058,"avatar_url":"https://avatars3.githubusercontent.com/u/5000058?v=4","gravatar_id":"","url":"https://api.github.com/users/bmanikm","html_url":"https://github.com/bmanikm","followers_url":"https://api.github.com/users/bmanikm/followers","following_url":"https://api.github.com/users/bmanikm/following{/other_user}","gists_url":"https://api.github.com/users/bmanikm/gists{/gist_id}","starred_url":"https://api.github.com/users/bmanikm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmanikm/subscriptions","organizations_url":"https://api.github.com/users/bmanikm/orgs","repos_url":"https://api.github.com/users/bmanikm/repos","events_url":"https://api.github.com/users/bmanikm/events{/privacy}","received_events_url":"https://api.github.com/users/bmanikm/received_events","type":"User","site_admin":false},"body":"Could you please explain the reason for this?","created_at":"2018-05-23T18:23:30Z","updated_at":"2018-05-23T18:23:30Z","html_url":"https://github.com/PowerShell/PowerShellGet/pull/285#discussion_r190352062","pull_request_url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/285","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/comments/190352062"},"html":{"href":"https://github.com/PowerShell/PowerShellGet/pull/285#discussion_r190352062"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/285"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/285","id":189812210,"html_url":"https://github.com/PowerShell/PowerShellGet/pull/285","diff_url":"https://github.com/PowerShell/PowerShellGet/pull/285.diff","patch_url":"https://github.com/PowerShell/PowerShellGet/pull/285.patch","issue_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/285","number":285,"state":"open","locked":false,"title":"Modified Update-ModuleManifest so prefix is not added to CmdletsToExport","user":{"login":"alerickson","id":25858831,"avatar_url":"https://avatars2.githubusercontent.com/u/25858831?v=4","gravatar_id":"","url":"https://api.github.com/users/alerickson","html_url":"https://github.com/alerickson","followers_url":"https://api.github.com/users/alerickson/followers","following_url":"https://api.github.com/users/alerickson/following{/other_user}","gists_url":"https://api.github.com/users/alerickson/gists{/gist_id}","starred_url":"https://api.github.com/users/alerickson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alerickson/subscriptions","organizations_url":"https://api.github.com/users/alerickson/orgs","repos_url":"https://api.github.com/users/alerickson/repos","events_url":"https://api.github.com/users/alerickson/events{/privacy}","received_events_url":"https://api.github.com/users/alerickson/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-22T22:41:41Z","updated_at":"2018-05-23T18:23:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"674d18ee0387a053ccf78cb1d94472237d669df6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/285/commits","review_comments_url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/285/comments","review_comment_url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/285/comments","statuses_url":"https://api.github.com/repos/PowerShell/PowerShellGet/statuses/eb57c1a39364bf9a631501f067c590c87208f6f9","head":{"label":"alerickson:updateModuleManifestPrefix","ref":"updateModuleManifestPrefix","sha":"eb57c1a39364bf9a631501f067c590c87208f6f9","user":{"login":"alerickson","id":25858831,"avatar_url":"https://avatars2.githubusercontent.com/u/25858831?v=4","gravatar_id":"","url":"https://api.github.com/users/alerickson","html_url":"https://github.com/alerickson","followers_url":"https://api.github.com/users/alerickson/followers","following_url":"https://api.github.com/users/alerickson/following{/other_user}","gists_url":"https://api.github.com/users/alerickson/gists{/gist_id}","starred_url":"https://api.github.com/users/alerickson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alerickson/subscriptions","organizations_url":"https://api.github.com/users/alerickson/orgs","repos_url":"https://api.github.com/users/alerickson/repos","events_url":"https://api.github.com/users/alerickson/events{/privacy}","received_events_url":"https://api.github.com/users/alerickson/received_events","type":"User","site_admin":false},"repo":{"id":132494603,"name":"PowerShellGet","full_name":"alerickson/PowerShellGet","owner":{"login":"alerickson","id":25858831,"avatar_url":"https://avatars2.githubusercontent.com/u/25858831?v=4","gravatar_id":"","url":"https://api.github.com/users/alerickson","html_url":"https://github.com/alerickson","followers_url":"https://api.github.com/users/alerickson/followers","following_url":"https://api.github.com/users/alerickson/following{/other_user}","gists_url":"https://api.github.com/users/alerickson/gists{/gist_id}","starred_url":"https://api.github.com/users/alerickson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alerickson/subscriptions","organizations_url":"https://api.github.com/users/alerickson/orgs","repos_url":"https://api.github.com/users/alerickson/repos","events_url":"https://api.github.com/users/alerickson/events{/privacy}","received_events_url":"https://api.github.com/users/alerickson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alerickson/PowerShellGet","description":"PowerShellGet is the Package Manager for PowerShell","fork":true,"url":"https://api.github.com/repos/alerickson/PowerShellGet","forks_url":"https://api.github.com/repos/alerickson/PowerShellGet/forks","keys_url":"https://api.github.com/repos/alerickson/PowerShellGet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alerickson/PowerShellGet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alerickson/PowerShellGet/teams","hooks_url":"https://api.github.com/repos/alerickson/PowerShellGet/hooks","issue_events_url":"https://api.github.com/repos/alerickson/PowerShellGet/issues/events{/number}","events_url":"https://api.github.com/repos/alerickson/PowerShellGet/events","assignees_url":"https://api.github.com/repos/alerickson/PowerShellGet/assignees{/user}","branches_url":"https://api.github.com/repos/alerickson/PowerShellGet/branches{/branch}","tags_url":"https://api.github.com/repos/alerickson/PowerShellGet/tags","blobs_url":"https://api.github.com/repos/alerickson/PowerShellGet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alerickson/PowerShellGet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alerickson/PowerShellGet/git/refs{/sha}","trees_url":"https://api.github.com/repos/alerickson/PowerShellGet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alerickson/PowerShellGet/statuses/{sha}","languages_url":"https://api.github.com/repos/alerickson/PowerShellGet/languages","stargazers_url":"https://api.github.com/repos/alerickson/PowerShellGet/stargazers","contributors_url":"https://api.github.com/repos/alerickson/PowerShellGet/contributors","subscribers_url":"https://api.github.com/repos/alerickson/PowerShellGet/subscribers","subscription_url":"https://api.github.com/repos/alerickson/PowerShellGet/subscription","commits_url":"https://api.github.com/repos/alerickson/PowerShellGet/commits{/sha}","git_commits_url":"https://api.github.com/repos/alerickson/PowerShellGet/git/commits{/sha}","comments_url":"https://api.github.com/repos/alerickson/PowerShellGet/comments{/number}","issue_comment_url":"https://api.github.com/repos/alerickson/PowerShellGet/issues/comments{/number}","contents_url":"https://api.github.com/repos/alerickson/PowerShellGet/contents/{+path}","compare_url":"https://api.github.com/repos/alerickson/PowerShellGet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alerickson/PowerShellGet/merges","archive_url":"https://api.github.com/repos/alerickson/PowerShellGet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alerickson/PowerShellGet/downloads","issues_url":"https://api.github.com/repos/alerickson/PowerShellGet/issues{/number}","pulls_url":"https://api.github.com/repos/alerickson/PowerShellGet/pulls{/number}","milestones_url":"https://api.github.com/repos/alerickson/PowerShellGet/milestones{/number}","notifications_url":"https://api.github.com/repos/alerickson/PowerShellGet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alerickson/PowerShellGet/labels{/name}","releases_url":"https://api.github.com/repos/alerickson/PowerShellGet/releases{/id}","deployments_url":"https://api.github.com/repos/alerickson/PowerShellGet/deployments","created_at":"2018-05-07T17:30:38Z","updated_at":"2018-05-21T17:11:26Z","pushed_at":"2018-05-23T17:57:46Z","git_url":"git://github.com/alerickson/PowerShellGet.git","ssh_url":"git@github.com:alerickson/PowerShellGet.git","clone_url":"https://github.com/alerickson/PowerShellGet.git","svn_url":"https://github.com/alerickson/PowerShellGet","homepage":"https://www.PowerShellGallery.com","size":1198,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"PowerShell:development","ref":"development","sha":"d24838fc33d6f230ac9fd775f2252d24230bea9a","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":57910460,"name":"PowerShellGet","full_name":"PowerShell/PowerShellGet","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/PowerShellGet","description":"PowerShellGet is the Package Manager for PowerShell","fork":false,"url":"https://api.github.com/repos/PowerShell/PowerShellGet","forks_url":"https://api.github.com/repos/PowerShell/PowerShellGet/forks","keys_url":"https://api.github.com/repos/PowerShell/PowerShellGet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/PowerShellGet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/PowerShellGet/teams","hooks_url":"https://api.github.com/repos/PowerShell/PowerShellGet/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/PowerShellGet/events","assignees_url":"https://api.github.com/repos/PowerShell/PowerShellGet/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/PowerShellGet/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/PowerShellGet/tags","blobs_url":"https://api.github.com/repos/PowerShell/PowerShellGet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/PowerShellGet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/PowerShellGet/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/PowerShellGet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/PowerShellGet/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/PowerShellGet/languages","stargazers_url":"https://api.github.com/repos/PowerShell/PowerShellGet/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/PowerShellGet/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/PowerShellGet/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/PowerShellGet/subscription","commits_url":"https://api.github.com/repos/PowerShell/PowerShellGet/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/PowerShellGet/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellGet/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/PowerShellGet/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/PowerShellGet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/PowerShellGet/merges","archive_url":"https://api.github.com/repos/PowerShell/PowerShellGet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/PowerShellGet/downloads","issues_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/PowerShellGet/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/PowerShellGet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/PowerShellGet/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/PowerShellGet/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/PowerShellGet/deployments","created_at":"2016-05-02T18:13:31Z","updated_at":"2018-05-22T22:33:11Z","pushed_at":"2018-05-23T17:57:48Z","git_url":"git://github.com/PowerShell/PowerShellGet.git","ssh_url":"git@github.com:PowerShell/PowerShellGet.git","clone_url":"https://github.com/PowerShell/PowerShellGet.git","svn_url":"https://github.com/PowerShell/PowerShellGet","homepage":"https://www.PowerShellGallery.com","size":1195,"stargazers_count":175,"watchers_count":175,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"archived":false,"open_issues_count":100,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":75,"open_issues":100,"watchers":175,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/285"},"html":{"href":"https://github.com/PowerShell/PowerShellGet/pull/285"},"issue":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/285"},"comments":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/285/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/285/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/285/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/statuses/eb57c1a39364bf9a631501f067c590c87208f6f9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"bmanikm"}}