Skip to content

Commit 2204be9

Browse files
committed
Final fix for release.ps1 script
1 parent af57ad0 commit 2204be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Write-Output 'Generating release notes ...'
33
$previousRelease = (Invoke-RestMethod -Uri "https://api.github.com/repos/$env:APPVEYOR_REPO_NAME/releases/latest?access_token=$env:GITHUB_ACCESS_TOKEN" -Verbose)
44
$compare = (Invoke-RestMethod -Uri "https://api.github.com/repos/$env:APPVEYOR_REPO_NAME/compare/$($previousRelease.target_commitish)...$env:APPVEYOR_REPO_COMMIT`?access_token=$env:GITHUB_ACCESS_TOKEN" -Verbose)
55
$releaseNotes = "## Release Notes`n#### Version [$env:APPVEYOR_REPO_TAG_NAME](https://github.com/$env:APPVEYOR_REPO_NAME/tree/$env:APPVEYOR_REPO_TAG_NAME)`n"
6-
$commits = $compare.commits | Sort-Object -Property @{Expression={$_.commit.author.date};} -Descending | Select-Object -SkipLast 1
6+
$commits = $compare.commits | Sort-Object -Property @{Expression={$_.commit.author.date};} -Descending
77

88
if($null -ne $commits -and $commits.Length -gt 0) {
99
$releaseNotes += "`nCommit | Description`n--- | ---`n"

0 commit comments

Comments
 (0)