{"action":"created","comment":{"url":"https://api.github.com/repos/loanDepot/NpmPS/pulls/comments/230979046","pull_request_review_id":171840014,"id":230979046,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDk3OTA0Ng==","diff_hunk":"@@ -0,0 +1,192 @@\n+function Publish-NpmPackage\n+{\n+    <#\n+        .Synopsis\n+        Publishes a npm package\n+\n+        .Example\n+\n+        $registry = 'https://contoso.local/npm'\n+        $credential = Get-Credential\n+\n+        $publishLDNpmPackageSplat = @{\n+            Credential = $credential\n+            Path       = $path\n+            Registry   = $registry\n+            Version    = '0.1.0-rc.1'\n+            Tag        = 'testrelease'\n+        }\n+        Publish-NpmPackage @publishLDNpmPackageSplat\n+\n+        .Notes\n+\n+    #>\n+    [cmdletbinding()]\n+    param(\n+        # Location of the package.json\n+        [Parameter(\n+            Mandatory,\n+            Position = 0,\n+            ValueFromPipelineByPropertyName\n+        )]\n+        [ValidateNotNullOrEmpty()]\n+        [String]\n+        $Path,\n+\n+        # NPM Registry to publish\n+        [Alias('Repository')]\n+        [String]\n+        $Registry,\n+\n+        # Username and API Token as password\n+        [PSCredential]\n+        $Credential,\n+\n+        # SemVer\n+        [String]\n+        $Version,\n+\n+        # tags to set when publishing\n+        [Alias('Tags')]\n+        [String[]]\n+        $Tag,\n+\n+        # Force publish even if package already exists\n+        [Switch]\n+        $Force\n+    )\n+\n+    begin\n+    {\n+        $npmProtocolRegex = '^http?:'","path":"NpmPS/Public/Publish-NpmPackage.ps1","position":null,"original_position":61,"commit_id":"56d0381ba94e4ebf9529d37274ac8ab03f77200b","original_commit_id":"98f4ff4bae524c1e2d45aae9c5a05bd0079dd7f1","user":{"login":"KevinMarquette","id":7864621,"node_id":"MDQ6VXNlcjc4NjQ2MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/7864621?v=4","gravatar_id":"","url":"https://api.github.com/users/KevinMarquette","html_url":"https://github.com/KevinMarquette","followers_url":"https://api.github.com/users/KevinMarquette/followers","following_url":"https://api.github.com/users/KevinMarquette/following{/other_user}","gists_url":"https://api.github.com/users/KevinMarquette/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinMarquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinMarquette/subscriptions","organizations_url":"https://api.github.com/users/KevinMarquette/orgs","repos_url":"https://api.github.com/users/KevinMarquette/repos","events_url":"https://api.github.com/users/KevinMarquette/events{/privacy}","received_events_url":"https://api.github.com/users/KevinMarquette/received_events","type":"User","site_admin":false},"body":"corrected","created_at":"2018-11-06T01:58:38Z","updated_at":"2018-11-06T01:58:38Z","html_url":"https://github.com/loanDepot/NpmPS/pull/1#discussion_r230979046","pull_request_url":"https://api.github.com/repos/loanDepot/NpmPS/pulls/1","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/loanDepot/NpmPS/pulls/comments/230979046"},"html":{"href":"https://github.com/loanDepot/NpmPS/pull/1#discussion_r230979046"},"pull_request":{"href":"https://api.github.com/repos/loanDepot/NpmPS/pulls/1"}},"in_reply_to_id":230976270},"pull_request":{"url":"https://api.github.com/repos/loanDepot/NpmPS/pulls/1","id":227897062,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3ODk3MDYy","html_url":"https://github.com/loanDepot/NpmPS/pull/1","diff_url":"https://github.com/loanDepot/NpmPS/pull/1.diff","patch_url":"https://github.com/loanDepot/NpmPS/pull/1.patch","issue_url":"https://api.github.com/repos/loanDepot/NpmPS/issues/1","number":1,"state":"open","locked":false,"title":"add initial draft of functions ","user":{"login":"KevinMarquette","id":7864621,"node_id":"MDQ6VXNlcjc4NjQ2MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/7864621?v=4","gravatar_id":"","url":"https://api.github.com/users/KevinMarquette","html_url":"https://github.com/KevinMarquette","followers_url":"https://api.github.com/users/KevinMarquette/followers","following_url":"https://api.github.com/users/KevinMarquette/following{/other_user}","gists_url":"https://api.github.com/users/KevinMarquette/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinMarquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinMarquette/subscriptions","organizations_url":"https://api.github.com/users/KevinMarquette/orgs","repos_url":"https://api.github.com/users/KevinMarquette/repos","events_url":"https://api.github.com/users/KevinMarquette/events{/privacy}","received_events_url":"https://api.github.com/users/KevinMarquette/received_events","type":"User","site_admin":false},"body":"add `Get-NpmPackageInfo` function \r\nadd `Publish-NpmPackage` function \r\nadd `Test-NpmPackage` function \r\nadd tests and test data","created_at":"2018-11-02T10:44:02Z","updated_at":"2018-11-06T01:58:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb75b39855b0363a8d710ea661377b09ac5b84e2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"travisty-","id":10015877,"node_id":"MDQ6VXNlcjEwMDE1ODc3","avatar_url":"https://avatars3.githubusercontent.com/u/10015877?v=4","gravatar_id":"","url":"https://api.github.com/users/travisty-","html_url":"https://github.com/travisty-","followers_url":"https://api.github.com/users/travisty-/followers","following_url":"https://api.github.com/users/travisty-/following{/other_user}","gists_url":"https://api.github.com/users/travisty-/gists{/gist_id}","starred_url":"https://api.github.com/users/travisty-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisty-/subscriptions","organizations_url":"https://api.github.com/users/travisty-/orgs","repos_url":"https://api.github.com/users/travisty-/repos","events_url":"https://api.github.com/users/travisty-/events{/privacy}","received_events_url":"https://api.github.com/users/travisty-/received_events","type":"User","site_admin":false},{"login":"kittholland","id":10815037,"node_id":"MDQ6VXNlcjEwODE1MDM3","avatar_url":"https://avatars2.githubusercontent.com/u/10815037?v=4","gravatar_id":"","url":"https://api.github.com/users/kittholland","html_url":"https://github.com/kittholland","followers_url":"https://api.github.com/users/kittholland/followers","following_url":"https://api.github.com/users/kittholland/following{/other_user}","gists_url":"https://api.github.com/users/kittholland/gists{/gist_id}","starred_url":"https://api.github.com/users/kittholland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kittholland/subscriptions","organizations_url":"https://api.github.com/users/kittholland/orgs","repos_url":"https://api.github.com/users/kittholland/repos","events_url":"https://api.github.com/users/kittholland/events{/privacy}","received_events_url":"https://api.github.com/users/kittholland/received_events","type":"User","site_admin":false},{"login":"dchristian3188","id":13060023,"node_id":"MDQ6VXNlcjEzMDYwMDIz","avatar_url":"https://avatars3.githubusercontent.com/u/13060023?v=4","gravatar_id":"","url":"https://api.github.com/users/dchristian3188","html_url":"https://github.com/dchristian3188","followers_url":"https://api.github.com/users/dchristian3188/followers","following_url":"https://api.github.com/users/dchristian3188/following{/other_user}","gists_url":"https://api.github.com/users/dchristian3188/gists{/gist_id}","starred_url":"https://api.github.com/users/dchristian3188/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchristian3188/subscriptions","organizations_url":"https://api.github.com/users/dchristian3188/orgs","repos_url":"https://api.github.com/users/dchristian3188/repos","events_url":"https://api.github.com/users/dchristian3188/events{/privacy}","received_events_url":"https://api.github.com/users/dchristian3188/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/loanDepot/NpmPS/pulls/1/commits","review_comments_url":"https://api.github.com/repos/loanDepot/NpmPS/pulls/1/comments","review_comment_url":"https://api.github.com/repos/loanDepot/NpmPS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/loanDepot/NpmPS/issues/1/comments","statuses_url":"https://api.github.com/repos/loanDepot/NpmPS/statuses/56d0381ba94e4ebf9529d37274ac8ab03f77200b","head":{"label":"loanDepot:kevinmarquette/functions","ref":"kevinmarquette/functions","sha":"56d0381ba94e4ebf9529d37274ac8ab03f77200b","user":{"login":"loanDepot","id":32908573,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTA4NTcz","avatar_url":"https://avatars1.githubusercontent.com/u/32908573?v=4","gravatar_id":"","url":"https://api.github.com/users/loanDepot","html_url":"https://github.com/loanDepot","followers_url":"https://api.github.com/users/loanDepot/followers","following_url":"https://api.github.com/users/loanDepot/following{/other_user}","gists_url":"https://api.github.com/users/loanDepot/gists{/gist_id}","starred_url":"https://api.github.com/users/loanDepot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loanDepot/subscriptions","organizations_url":"https://api.github.com/users/loanDepot/orgs","repos_url":"https://api.github.com/users/loanDepot/repos","events_url":"https://api.github.com/users/loanDepot/events{/privacy}","received_events_url":"https://api.github.com/users/loanDepot/received_events","type":"Organization","site_admin":false},"repo":{"id":155846001,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU4NDYwMDE=","name":"NpmPS","full_name":"loanDepot/NpmPS","private":false,"owner":{"login":"loanDepot","id":32908573,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTA4NTcz","avatar_url":"https://avatars1.githubusercontent.com/u/32908573?v=4","gravatar_id":"","url":"https://api.github.com/users/loanDepot","html_url":"https://github.com/loanDepot","followers_url":"https://api.github.com/users/loanDepot/followers","following_url":"https://api.github.com/users/loanDepot/following{/other_user}","gists_url":"https://api.github.com/users/loanDepot/gists{/gist_id}","starred_url":"https://api.github.com/users/loanDepot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loanDepot/subscriptions","organizations_url":"https://api.github.com/users/loanDepot/orgs","repos_url":"https://api.github.com/users/loanDepot/repos","events_url":"https://api.github.com/users/loanDepot/events{/privacy}","received_events_url":"https://api.github.com/users/loanDepot/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/loanDepot/NpmPS","description":"PowerShell Module for working with NPM Packages","fork":false,"url":"https://api.github.com/repos/loanDepot/NpmPS","forks_url":"https://api.github.com/repos/loanDepot/NpmPS/forks","keys_url":"https://api.github.com/repos/loanDepot/NpmPS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loanDepot/NpmPS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loanDepot/NpmPS/teams","hooks_url":"https://api.github.com/repos/loanDepot/NpmPS/hooks","issue_events_url":"https://api.github.com/repos/loanDepot/NpmPS/issues/events{/number}","events_url":"https://api.github.com/repos/loanDepot/NpmPS/events","assignees_url":"https://api.github.com/repos/loanDepot/NpmPS/assignees{/user}","branches_url":"https://api.github.com/repos/loanDepot/NpmPS/branches{/branch}","tags_url":"https://api.github.com/repos/loanDepot/NpmPS/tags","blobs_url":"https://api.github.com/repos/loanDepot/NpmPS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loanDepot/NpmPS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loanDepot/NpmPS/git/refs{/sha}","trees_url":"https://api.github.com/repos/loanDepot/NpmPS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loanDepot/NpmPS/statuses/{sha}","languages_url":"https://api.github.com/repos/loanDepot/NpmPS/languages","stargazers_url":"https://api.github.com/repos/loanDepot/NpmPS/stargazers","contributors_url":"https://api.github.com/repos/loanDepot/NpmPS/contributors","subscribers_url":"https://api.github.com/repos/loanDepot/NpmPS/subscribers","subscription_url":"https://api.github.com/repos/loanDepot/NpmPS/subscription","commits_url":"https://api.github.com/repos/loanDepot/NpmPS/commits{/sha}","git_commits_url":"https://api.github.com/repos/loanDepot/NpmPS/git/commits{/sha}","comments_url":"https://api.github.com/repos/loanDepot/NpmPS/comments{/number}","issue_comment_url":"https://api.github.com/repos/loanDepot/NpmPS/issues/comments{/number}","contents_url":"https://api.github.com/repos/loanDepot/NpmPS/contents/{+path}","compare_url":"https://api.github.com/repos/loanDepot/NpmPS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loanDepot/NpmPS/merges","archive_url":"https://api.github.com/repos/loanDepot/NpmPS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loanDepot/NpmPS/downloads","issues_url":"https://api.github.com/repos/loanDepot/NpmPS/issues{/number}","pulls_url":"https://api.github.com/repos/loanDepot/NpmPS/pulls{/number}","milestones_url":"https://api.github.com/repos/loanDepot/NpmPS/milestones{/number}","notifications_url":"https://api.github.com/repos/loanDepot/NpmPS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loanDepot/NpmPS/labels{/name}","releases_url":"https://api.github.com/repos/loanDepot/NpmPS/releases{/id}","deployments_url":"https://api.github.com/repos/loanDepot/NpmPS/deployments","created_at":"2018-11-02T09:48:00Z","updated_at":"2018-11-02T11:09:51Z","pushed_at":"2018-11-06T01:57:59Z","git_url":"git://github.com/loanDepot/NpmPS.git","ssh_url":"git@github.com:loanDepot/NpmPS.git","clone_url":"https://github.com/loanDepot/NpmPS.git","svn_url":"https://github.com/loanDepot/NpmPS","homepage":null,"size":56,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"loanDepot:master","ref":"master","sha":"3fbc5e92f49a5c530aad0cd2c5526d813b3e7a33","user":{"login":"loanDepot","id":32908573,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTA4NTcz","avatar_url":"https://avatars1.githubusercontent.com/u/32908573?v=4","gravatar_id":"","url":"https://api.github.com/users/loanDepot","html_url":"https://github.com/loanDepot","followers_url":"https://api.github.com/users/loanDepot/followers","following_url":"https://api.github.com/users/loanDepot/following{/other_user}","gists_url":"https://api.github.com/users/loanDepot/gists{/gist_id}","starred_url":"https://api.github.com/users/loanDepot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loanDepot/subscriptions","organizations_url":"https://api.github.com/users/loanDepot/orgs","repos_url":"https://api.github.com/users/loanDepot/repos","events_url":"https://api.github.com/users/loanDepot/events{/privacy}","received_events_url":"https://api.github.com/users/loanDepot/received_events","type":"Organization","site_admin":false},"repo":{"id":155846001,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU4NDYwMDE=","name":"NpmPS","full_name":"loanDepot/NpmPS","private":false,"owner":{"login":"loanDepot","id":32908573,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTA4NTcz","avatar_url":"https://avatars1.githubusercontent.com/u/32908573?v=4","gravatar_id":"","url":"https://api.github.com/users/loanDepot","html_url":"https://github.com/loanDepot","followers_url":"https://api.github.com/users/loanDepot/followers","following_url":"https://api.github.com/users/loanDepot/following{/other_user}","gists_url":"https://api.github.com/users/loanDepot/gists{/gist_id}","starred_url":"https://api.github.com/users/loanDepot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loanDepot/subscriptions","organizations_url":"https://api.github.com/users/loanDepot/orgs","repos_url":"https://api.github.com/users/loanDepot/repos","events_url":"https://api.github.com/users/loanDepot/events{/privacy}","received_events_url":"https://api.github.com/users/loanDepot/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/loanDepot/NpmPS","description":"PowerShell Module for working with NPM Packages","fork":false,"url":"https://api.github.com/repos/loanDepot/NpmPS","forks_url":"https://api.github.com/repos/loanDepot/NpmPS/forks","keys_url":"https://api.github.com/repos/loanDepot/NpmPS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loanDepot/NpmPS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loanDepot/NpmPS/teams","hooks_url":"https://api.github.com/repos/loanDepot/NpmPS/hooks","issue_events_url":"https://api.github.com/repos/loanDepot/NpmPS/issues/events{/number}","events_url":"https://api.github.com/repos/loanDepot/NpmPS/events","assignees_url":"https://api.github.com/repos/loanDepot/NpmPS/assignees{/user}","branches_url":"https://api.github.com/repos/loanDepot/NpmPS/branches{/branch}","tags_url":"https://api.github.com/repos/loanDepot/NpmPS/tags","blobs_url":"https://api.github.com/repos/loanDepot/NpmPS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loanDepot/NpmPS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loanDepot/NpmPS/git/refs{/sha}","trees_url":"https://api.github.com/repos/loanDepot/NpmPS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loanDepot/NpmPS/statuses/{sha}","languages_url":"https://api.github.com/repos/loanDepot/NpmPS/languages","stargazers_url":"https://api.github.com/repos/loanDepot/NpmPS/stargazers","contributors_url":"https://api.github.com/repos/loanDepot/NpmPS/contributors","subscribers_url":"https://api.github.com/repos/loanDepot/NpmPS/subscribers","subscription_url":"https://api.github.com/repos/loanDepot/NpmPS/subscription","commits_url":"https://api.github.com/repos/loanDepot/NpmPS/commits{/sha}","git_commits_url":"https://api.github.com/repos/loanDepot/NpmPS/git/commits{/sha}","comments_url":"https://api.github.com/repos/loanDepot/NpmPS/comments{/number}","issue_comment_url":"https://api.github.com/repos/loanDepot/NpmPS/issues/comments{/number}","contents_url":"https://api.github.com/repos/loanDepot/NpmPS/contents/{+path}","compare_url":"https://api.github.com/repos/loanDepot/NpmPS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loanDepot/NpmPS/merges","archive_url":"https://api.github.com/repos/loanDepot/NpmPS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loanDepot/NpmPS/downloads","issues_url":"https://api.github.com/repos/loanDepot/NpmPS/issues{/number}","pulls_url":"https://api.github.com/repos/loanDepot/NpmPS/pulls{/number}","milestones_url":"https://api.github.com/repos/loanDepot/NpmPS/milestones{/number}","notifications_url":"https://api.github.com/repos/loanDepot/NpmPS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loanDepot/NpmPS/labels{/name}","releases_url":"https://api.github.com/repos/loanDepot/NpmPS/releases{/id}","deployments_url":"https://api.github.com/repos/loanDepot/NpmPS/deployments","created_at":"2018-11-02T09:48:00Z","updated_at":"2018-11-02T11:09:51Z","pushed_at":"2018-11-06T01:57:59Z","git_url":"git://github.com/loanDepot/NpmPS.git","ssh_url":"git@github.com:loanDepot/NpmPS.git","clone_url":"https://github.com/loanDepot/NpmPS.git","svn_url":"https://github.com/loanDepot/NpmPS","homepage":null,"size":56,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/loanDepot/NpmPS/pulls/1"},"html":{"href":"https://github.com/loanDepot/NpmPS/pull/1"},"issue":{"href":"https://api.github.com/repos/loanDepot/NpmPS/issues/1"},"comments":{"href":"https://api.github.com/repos/loanDepot/NpmPS/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/loanDepot/NpmPS/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/loanDepot/NpmPS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/loanDepot/NpmPS/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/loanDepot/NpmPS/statuses/56d0381ba94e4ebf9529d37274ac8ab03f77200b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"KevinMarquette"}}