{"action":"created","comment":{"url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/comments/211745522","pull_request_review_id":148233216,"id":211745522,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTc0NTUyMg==","diff_hunk":"@@ -0,0 +1,137 @@\n+function Get-DbaRepPublication {\n+    <#\n+    .SYNOPSIS\n+    Displays all publications for a server or database.\n+\n+    .DESCRIPTION\n+    Quickly find all transactional, merge, and snapshot publications on a specific server or database.\n+\n+    .PARAMETER SqlInstance\n+    Allows you to specify a comma separated list of servers to query.\n+\n+    .PARAMETER Database\n+    The database(s) to process. If unspecified, all databases will be processed.\n+\n+    .PARAMETER SqlCredential\n+    Login to the target instance using alternative credentials. Windows and SQL Authentication supported. Accepts credential objects (Get-Credential)\n+\n+    .PARAMETER PublicationType\n+    Limit by specific type of publication. Valid choices include: Transactional, Merge, Snapshot\n+\n+    .PARAMETER EnableException\n+    By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.\n+    This avoids overwhelming you with \"sea of red\" exceptions, but is inconvenient because it basically disables advanced scripting.\n+    Using this switch turns this \"nice by default\" feature off and enables you to catch exceptions with your own try/catch.\n+\n+    .NOTES\n+    Author: Colin Douglas\n+    Tags: Replication\n+\n+    Website: https://dbatools.io\n+    Copyright: (C) Chrissy LeMaire, clemaire@gmail.com\n+    License: MIT https://opensource.org/licenses/MIT\n+\n+    .LINK\n+    https://dbatools.io/Get-DbaRepPublication\n+\n+    .EXAMPLE\n+    Get-DbaRepPublication -SqlInstance sql2008, sqlserver2012\n+    Return all publications for servers sql2008 and sqlserver2012.\n+\n+    .EXAMPLE\n+    Get-DbaRepPublication -SqlInstance sql2008 -Database TestDB\n+    Return all publications on server sql2008 for only the TestDB database\n+\n+    .EXAMPLE\n+    Get-DbaRepPublication -SqlInstance sql2008 -PublicationType Transactional\n+    Return all publications on server sql2008 for all databases that have Transactional publications\n+#>\n+    [CmdletBinding()]\n+    Param (\n+        [parameter(Mandatory = $true, ValueFromPipeline = $true)]\n+        [DbaInstanceParameter[]]$SqlInstance, \n+        [object[]]$Database,\n+        [PSCredential]$SqlCredential,\n+        [ValidateSet(\"Transactional\",\"Merge\", \"Snapshot\")] \n+        [object[]]$PublicationType,\n+        [switch]$EnableException\n+    )\n+\n+    Begin{\n+\n+        if ($null -eq [System.Reflection.Assembly]::LoadWithPartialName(\"Microsoft.SqlServer.RMO\")) {\n+            Write-Host \"Replication management objects not available. Please install SQL Server Management Studio.\"\n+        }\n+\n+    }\n+\n+    Process{","path":"functions/Get-DbaRepPublication.ps1","position":null,"original_position":68,"commit_id":"32b76af7ecb3df95a00d97139c7ab6fa232f15f5","original_commit_id":"db8c50f1ab7cabb8ff50c577e362e48f98d1dd1e","user":{"login":"potatoqualitee","id":8278033,"node_id":"MDQ6VXNlcjgyNzgwMzM=","avatar_url":"https://avatars1.githubusercontent.com/u/8278033?v=4","gravatar_id":"","url":"https://api.github.com/users/potatoqualitee","html_url":"https://github.com/potatoqualitee","followers_url":"https://api.github.com/users/potatoqualitee/followers","following_url":"https://api.github.com/users/potatoqualitee/following{/other_user}","gists_url":"https://api.github.com/users/potatoqualitee/gists{/gist_id}","starred_url":"https://api.github.com/users/potatoqualitee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potatoqualitee/subscriptions","organizations_url":"https://api.github.com/users/potatoqualitee/orgs","repos_url":"https://api.github.com/users/potatoqualitee/repos","events_url":"https://api.github.com/users/potatoqualitee/events{/privacy}","received_events_url":"https://api.github.com/users/potatoqualitee/received_events","type":"User","site_admin":false},"body":"please use lower case begin, process and end","created_at":"2018-08-21T20:18:59Z","updated_at":"2018-08-21T20:21:09Z","html_url":"https://github.com/sqlcollaborative/dbatools/pull/3912#discussion_r211745522","pull_request_url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/3912","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/comments/211745522"},"html":{"href":"https://github.com/sqlcollaborative/dbatools/pull/3912#discussion_r211745522"},"pull_request":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/3912"}}},"pull_request":{"url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/3912","id":209935513,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5OTM1NTEz","html_url":"https://github.com/sqlcollaborative/dbatools/pull/3912","diff_url":"https://github.com/sqlcollaborative/dbatools/pull/3912.diff","patch_url":"https://github.com/sqlcollaborative/dbatools/pull/3912.patch","issue_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/3912","number":3912,"state":"open","locked":false,"title":"[New Feature] Get-DbaRepPublication","user":{"login":"ColinDouglas92","id":39092076,"node_id":"MDQ6VXNlcjM5MDkyMDc2","avatar_url":"https://avatars3.githubusercontent.com/u/39092076?v=4","gravatar_id":"","url":"https://api.github.com/users/ColinDouglas92","html_url":"https://github.com/ColinDouglas92","followers_url":"https://api.github.com/users/ColinDouglas92/followers","following_url":"https://api.github.com/users/ColinDouglas92/following{/other_user}","gists_url":"https://api.github.com/users/ColinDouglas92/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinDouglas92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinDouglas92/subscriptions","organizations_url":"https://api.github.com/users/ColinDouglas92/orgs","repos_url":"https://api.github.com/users/ColinDouglas92/repos","events_url":"https://api.github.com/users/ColinDouglas92/events{/privacy}","received_events_url":"https://api.github.com/users/ColinDouglas92/received_events","type":"User","site_admin":false},"body":"Complete code and Pester Tests for Get-DbaRepPublication\r\n\r\n<!-- Below information IS REQUIRED with every PR -->\r\n## Type of Change\r\n<!-- What type of change does your code introduce -->\r\n - [ ] Bug fix (non-breaking change, fixes #<enter issue number>)\r\n - [X] New feature (non-breaking change, adds functionality)\r\n - [ ] Breaking change (effects multiple commands or functionality)\r\n - [X] Ran manual Pester test and has passed (`.\\tests\\manual.pester.ps1)\r\n - [ ] Adding code coverage to existing functionality\r\n - [X] Pester test is included\r\n - [ ] Nunit test is included\r\n - [X] Documentation\r\n - [ ] Build system\r\n \r\n<!-- Below this line you can erase anything that is not applicable -->\r\n### Purpose\r\nSubmitting new feature Get-DbaRepPublication #3891\r\n\r\n\r\n","created_at":"2018-08-21T19:46:36Z","updated_at":"2018-08-21T20:21:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd3b6dce3938bee5d5437d9f3a4cc749726eee6c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/3912/commits","review_comments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/3912/comments","review_comment_url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/3912/comments","statuses_url":"https://api.github.com/repos/sqlcollaborative/dbatools/statuses/32b76af7ecb3df95a00d97139c7ab6fa232f15f5","head":{"label":"ColinDouglas92:Get-DbaRepPublication","ref":"Get-DbaRepPublication","sha":"32b76af7ecb3df95a00d97139c7ab6fa232f15f5","user":{"login":"ColinDouglas92","id":39092076,"node_id":"MDQ6VXNlcjM5MDkyMDc2","avatar_url":"https://avatars3.githubusercontent.com/u/39092076?v=4","gravatar_id":"","url":"https://api.github.com/users/ColinDouglas92","html_url":"https://github.com/ColinDouglas92","followers_url":"https://api.github.com/users/ColinDouglas92/followers","following_url":"https://api.github.com/users/ColinDouglas92/following{/other_user}","gists_url":"https://api.github.com/users/ColinDouglas92/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinDouglas92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinDouglas92/subscriptions","organizations_url":"https://api.github.com/users/ColinDouglas92/orgs","repos_url":"https://api.github.com/users/ColinDouglas92/repos","events_url":"https://api.github.com/users/ColinDouglas92/events{/privacy}","received_events_url":"https://api.github.com/users/ColinDouglas92/received_events","type":"User","site_admin":false},"repo":{"id":141335739,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEzMzU3Mzk=","name":"dbatools","full_name":"ColinDouglas92/dbatools","owner":{"login":"ColinDouglas92","id":39092076,"node_id":"MDQ6VXNlcjM5MDkyMDc2","avatar_url":"https://avatars3.githubusercontent.com/u/39092076?v=4","gravatar_id":"","url":"https://api.github.com/users/ColinDouglas92","html_url":"https://github.com/ColinDouglas92","followers_url":"https://api.github.com/users/ColinDouglas92/followers","following_url":"https://api.github.com/users/ColinDouglas92/following{/other_user}","gists_url":"https://api.github.com/users/ColinDouglas92/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinDouglas92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinDouglas92/subscriptions","organizations_url":"https://api.github.com/users/ColinDouglas92/orgs","repos_url":"https://api.github.com/users/ColinDouglas92/repos","events_url":"https://api.github.com/users/ColinDouglas92/events{/privacy}","received_events_url":"https://api.github.com/users/ColinDouglas92/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ColinDouglas92/dbatools","description":"PowerShell module to help SQL Server Pros be more productive","fork":true,"url":"https://api.github.com/repos/ColinDouglas92/dbatools","forks_url":"https://api.github.com/repos/ColinDouglas92/dbatools/forks","keys_url":"https://api.github.com/repos/ColinDouglas92/dbatools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ColinDouglas92/dbatools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ColinDouglas92/dbatools/teams","hooks_url":"https://api.github.com/repos/ColinDouglas92/dbatools/hooks","issue_events_url":"https://api.github.com/repos/ColinDouglas92/dbatools/issues/events{/number}","events_url":"https://api.github.com/repos/ColinDouglas92/dbatools/events","assignees_url":"https://api.github.com/repos/ColinDouglas92/dbatools/assignees{/user}","branches_url":"https://api.github.com/repos/ColinDouglas92/dbatools/branches{/branch}","tags_url":"https://api.github.com/repos/ColinDouglas92/dbatools/tags","blobs_url":"https://api.github.com/repos/ColinDouglas92/dbatools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ColinDouglas92/dbatools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ColinDouglas92/dbatools/git/refs{/sha}","trees_url":"https://api.github.com/repos/ColinDouglas92/dbatools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ColinDouglas92/dbatools/statuses/{sha}","languages_url":"https://api.github.com/repos/ColinDouglas92/dbatools/languages","stargazers_url":"https://api.github.com/repos/ColinDouglas92/dbatools/stargazers","contributors_url":"https://api.github.com/repos/ColinDouglas92/dbatools/contributors","subscribers_url":"https://api.github.com/repos/ColinDouglas92/dbatools/subscribers","subscription_url":"https://api.github.com/repos/ColinDouglas92/dbatools/subscription","commits_url":"https://api.github.com/repos/ColinDouglas92/dbatools/commits{/sha}","git_commits_url":"https://api.github.com/repos/ColinDouglas92/dbatools/git/commits{/sha}","comments_url":"https://api.github.com/repos/ColinDouglas92/dbatools/comments{/number}","issue_comment_url":"https://api.github.com/repos/ColinDouglas92/dbatools/issues/comments{/number}","contents_url":"https://api.github.com/repos/ColinDouglas92/dbatools/contents/{+path}","compare_url":"https://api.github.com/repos/ColinDouglas92/dbatools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ColinDouglas92/dbatools/merges","archive_url":"https://api.github.com/repos/ColinDouglas92/dbatools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ColinDouglas92/dbatools/downloads","issues_url":"https://api.github.com/repos/ColinDouglas92/dbatools/issues{/number}","pulls_url":"https://api.github.com/repos/ColinDouglas92/dbatools/pulls{/number}","milestones_url":"https://api.github.com/repos/ColinDouglas92/dbatools/milestones{/number}","notifications_url":"https://api.github.com/repos/ColinDouglas92/dbatools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ColinDouglas92/dbatools/labels{/name}","releases_url":"https://api.github.com/repos/ColinDouglas92/dbatools/releases{/id}","deployments_url":"https://api.github.com/repos/ColinDouglas92/dbatools/deployments","created_at":"2018-07-17T19:42:57Z","updated_at":"2018-07-17T19:43:03Z","pushed_at":"2018-08-21T20:18:11Z","git_url":"git://github.com/ColinDouglas92/dbatools.git","ssh_url":"git@github.com:ColinDouglas92/dbatools.git","clone_url":"https://github.com/ColinDouglas92/dbatools.git","svn_url":"https://github.com/ColinDouglas92/dbatools","homepage":"https://dbatools.io","size":80903,"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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"sqlcollaborative:development","ref":"development","sha":"6c3712063fd1c9f0a76af0329937f4e535fe8560","user":{"login":"sqlcollaborative","id":22203347,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMjAzMzQ3","avatar_url":"https://avatars3.githubusercontent.com/u/22203347?v=4","gravatar_id":"","url":"https://api.github.com/users/sqlcollaborative","html_url":"https://github.com/sqlcollaborative","followers_url":"https://api.github.com/users/sqlcollaborative/followers","following_url":"https://api.github.com/users/sqlcollaborative/following{/other_user}","gists_url":"https://api.github.com/users/sqlcollaborative/gists{/gist_id}","starred_url":"https://api.github.com/users/sqlcollaborative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqlcollaborative/subscriptions","organizations_url":"https://api.github.com/users/sqlcollaborative/orgs","repos_url":"https://api.github.com/users/sqlcollaborative/repos","events_url":"https://api.github.com/users/sqlcollaborative/events{/privacy}","received_events_url":"https://api.github.com/users/sqlcollaborative/received_events","type":"Organization","site_admin":false},"repo":{"id":30215226,"node_id":"MDEwOlJlcG9zaXRvcnkzMDIxNTIyNg==","name":"dbatools","full_name":"sqlcollaborative/dbatools","owner":{"login":"sqlcollaborative","id":22203347,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMjAzMzQ3","avatar_url":"https://avatars3.githubusercontent.com/u/22203347?v=4","gravatar_id":"","url":"https://api.github.com/users/sqlcollaborative","html_url":"https://github.com/sqlcollaborative","followers_url":"https://api.github.com/users/sqlcollaborative/followers","following_url":"https://api.github.com/users/sqlcollaborative/following{/other_user}","gists_url":"https://api.github.com/users/sqlcollaborative/gists{/gist_id}","starred_url":"https://api.github.com/users/sqlcollaborative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqlcollaborative/subscriptions","organizations_url":"https://api.github.com/users/sqlcollaborative/orgs","repos_url":"https://api.github.com/users/sqlcollaborative/repos","events_url":"https://api.github.com/users/sqlcollaborative/events{/privacy}","received_events_url":"https://api.github.com/users/sqlcollaborative/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sqlcollaborative/dbatools","description":"PowerShell module to help SQL Server Pros be more productive","fork":false,"url":"https://api.github.com/repos/sqlcollaborative/dbatools","forks_url":"https://api.github.com/repos/sqlcollaborative/dbatools/forks","keys_url":"https://api.github.com/repos/sqlcollaborative/dbatools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sqlcollaborative/dbatools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sqlcollaborative/dbatools/teams","hooks_url":"https://api.github.com/repos/sqlcollaborative/dbatools/hooks","issue_events_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/events{/number}","events_url":"https://api.github.com/repos/sqlcollaborative/dbatools/events","assignees_url":"https://api.github.com/repos/sqlcollaborative/dbatools/assignees{/user}","branches_url":"https://api.github.com/repos/sqlcollaborative/dbatools/branches{/branch}","tags_url":"https://api.github.com/repos/sqlcollaborative/dbatools/tags","blobs_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/refs{/sha}","trees_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sqlcollaborative/dbatools/statuses/{sha}","languages_url":"https://api.github.com/repos/sqlcollaborative/dbatools/languages","stargazers_url":"https://api.github.com/repos/sqlcollaborative/dbatools/stargazers","contributors_url":"https://api.github.com/repos/sqlcollaborative/dbatools/contributors","subscribers_url":"https://api.github.com/repos/sqlcollaborative/dbatools/subscribers","subscription_url":"https://api.github.com/repos/sqlcollaborative/dbatools/subscription","commits_url":"https://api.github.com/repos/sqlcollaborative/dbatools/commits{/sha}","git_commits_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/commits{/sha}","comments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/comments{/number}","issue_comment_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/comments{/number}","contents_url":"https://api.github.com/repos/sqlcollaborative/dbatools/contents/{+path}","compare_url":"https://api.github.com/repos/sqlcollaborative/dbatools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sqlcollaborative/dbatools/merges","archive_url":"https://api.github.com/repos/sqlcollaborative/dbatools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sqlcollaborative/dbatools/downloads","issues_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues{/number}","pulls_url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls{/number}","milestones_url":"https://api.github.com/repos/sqlcollaborative/dbatools/milestones{/number}","notifications_url":"https://api.github.com/repos/sqlcollaborative/dbatools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sqlcollaborative/dbatools/labels{/name}","releases_url":"https://api.github.com/repos/sqlcollaborative/dbatools/releases{/id}","deployments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/deployments","created_at":"2015-02-02T23:50:31Z","updated_at":"2018-08-21T12:01:43Z","pushed_at":"2018-08-21T20:18:13Z","git_url":"git://github.com/sqlcollaborative/dbatools.git","ssh_url":"git@github.com:sqlcollaborative/dbatools.git","clone_url":"https://github.com/sqlcollaborative/dbatools.git","svn_url":"https://github.com/sqlcollaborative/dbatools","homepage":"https://dbatools.io","size":85969,"stargazers_count":656,"watchers_count":656,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":350,"mirror_url":null,"archived":false,"open_issues_count":328,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":350,"open_issues":328,"watchers":656,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/3912"},"html":{"href":"https://github.com/sqlcollaborative/dbatools/pull/3912"},"issue":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/3912"},"comments":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/3912/comments"},"review_comments":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/3912/comments"},"review_comment":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/3912/commits"},"statuses":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/statuses/32b76af7ecb3df95a00d97139c7ab6fa232f15f5"}},"author_association":"NONE"}}
{"actor":{"display_login":"potatoqualitee"}}