Skip to content

Commit

Permalink
Enhancement (generate): Remove sorting of tags for functions `Get-Rep…
Browse files Browse the repository at this point in the history
…ositoryRelease*`
  • Loading branch information
joeltimothyoh committed Jul 26, 2024
1 parent d5661cd commit b281338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function Get-RepositoryReleaseLatest {
$tagsLatestInfo | Write-Verbose
$tagsLatestCommitSHA = (@($tagsLatestInfo)[0] -split "\s")[0]
"Latest release commit SHA: $tagsLatestCommitSHA" | Write-Verbose
$tagsLatest = git tag --points-at $tagsLatestCommitSHA | Sort-Object -Descending | ? { $_ -match $tagPattern } # Returns an array of tags if they point to the same commit
$tagsLatest = git tag --points-at $tagsLatestCommitSHA | ? { $_ -match $tagPattern } # Returns an array of tags if they point to the same commit
"Latest release tag(s):" | Write-Verbose
$tagsLatest | Write-Verbose
$tagsLatest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function Get-RepositoryReleasePrevious {
(@($tagsPreviousInfo)[0] -split "\s")[0]
}
"Previous release commit SHA: $tagPreviousCommitSHA" | Write-Verbose
$tagsPrevious = git tag --points-at "$tagPreviousCommitSHA" | Sort-Object -Descending | ? { $_ -match $tagPattern } # Returns an array of tags if they point to the same commit
$tagsPrevious = git tag --points-at "$tagPreviousCommitSHA" | ? { $_ -match $tagPattern } # Returns an array of tags if they point to the same commit
"Previous release tag(s):" | Write-Verbose
$tagsPrevious | Write-Verbose
$tagsPrevious
Expand Down

0 comments on commit b281338

Please sign in to comment.