From 464825265e3c4577a5e99ae2de6ccc941d17c47f Mon Sep 17 00:00:00 2001 From: Davito Date: Fri, 30 Oct 2026 16:04:17 +0100 Subject: [PATCH] Release-Skript: letzten Tag ohne stderr-Ausgabe ermitteln Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- scripts/release.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/release.ps1 b/scripts/release.ps1 index df80f57..4c99e74 100644 --- a/scripts/release.ps1 +++ b/scripts/release.ps1 @@ -128,15 +128,16 @@ function Set-ProjectVersion([string]$New) { function Undo-VersionChange { if ($script:Bumped -and -not $script:Committed) { Write-Info 'Versionsänderung wird zurückgenommen ...' - & git checkout -- @VersionFiles 2>$null | Out-Null + & git checkout -- @VersionFiles | Out-Null $script:Bumped = $false } } function Get-ReleaseNotes([string]$NewVersion) { $lastTag = $null - $found = & git describe --tags --abbrev=0 --match 'v*' 2>$null - if ($LASTEXITCODE -eq 0 -and $found) { $lastTag = [string]$found } + $tags = & git tag --list 'v*' --sort=-version:refname + if ($LASTEXITCODE -ne 0) { throw 'git tag ist fehlgeschlagen.' } + if ($tags) { $lastTag = [string]($tags | Select-Object -First 1) } $range = 'HEAD' if ($lastTag) { $range = "$lastTag..HEAD" } $lines = & git -c core.quotepath=off log $range --no-merges --pretty=format:'- %s (%h)' --grep='^Release v' --invert-grep