Skip to content

Commit

Permalink
Merge pull request #170 from theohbrothers/enhancement/generate-remov…
Browse files Browse the repository at this point in the history
…e-sorting-of-tags-for-functions-get-repositoryreleasex

Enhancement (generate): Remove sorting of tags for functions `Get-RepositoryRelease*`
  • Loading branch information
joeltimothyoh authored Jul 26, 2024
2 parents d5661cd + b281338 commit fba6770
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 fba6770

Please sign in to comment.