Skip to content

Commit e952d7e

Browse files
authored
Get-DbatoolsChangelog, direct to the "correct" page (#9678)
1 parent dc639e1 commit e952d7e

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

public/Get-DbatoolsChangeLog.ps1

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ function Get-DbatoolsChangeLog {
44
Opens the link to our online change log
55
66
.DESCRIPTION
7-
Opens the link to our online change log. To see the local changelog instead, use the Local parameter.
7+
Opens the link to our online change log.
88
99
.PARAMETER Local
10-
Return the local change log to the console
10+
Once upon a time, there was a local changelog. This is not available anymore so a proper warning will be raised
1111
1212
.PARAMETER EnableException
1313
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
@@ -30,10 +30,6 @@ function Get-DbatoolsChangeLog {
3030
3131
Opens a browser to our online changelog
3232
33-
.EXAMPLE
34-
Get-DbatoolsChangeLog -Local
35-
36-
Returns the content from changelog.md
3733
#>
3834
[CmdletBinding()]
3935
param (
@@ -43,15 +39,9 @@ function Get-DbatoolsChangeLog {
4339

4440
try {
4541
if (-not $Local) {
46-
Start-Process "https://github.com/dataplat/dbatools/blob/development/changelog.md"
42+
Start-Process "https://github.com/dataplat/dbatools/releases"
4743
} else {
48-
$releasenotes = Get-Content $script:PSModuleRoot\changelog.md -Raw
49-
50-
if ($Local) {
51-
($releasenotes -Split "##Local")[0]
52-
} else {
53-
$releasenotes
54-
}
44+
Write-Message -Level "Warning" -Message "Sorry, changelog is only available online"
5545
}
5646
} catch {
5747
Stop-Function -Message "Failure" -ErrorRecord $_

0 commit comments

Comments
 (0)