From d5fc86822e73b7dd7443759f2c54c0609007810c Mon Sep 17 00:00:00 2001 From: Joel Timothy Oh Date: Fri, 26 Jul 2024 17:27:18 +0000 Subject: [PATCH] Enhancement (generate): Standardize sorting for sorted variants --- .../Changes-HashSubject-NoMerges-CategorizedSorted.ps1 | 4 ++-- .../Changes-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 | 4 ++-- .../VersionDate-HashSubject-NoMerges-CategorizedSorted.ps1 | 4 ++-- ...rsionDate-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 | 4 ++-- .../VersionDate-Subject-NoMerges-CategorizedSorted.ps1 | 4 ++-- .../VersionDate-SubjectAuthor-NoMerges-CategorizedSorted.ps1 | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-CategorizedSorted.ps1 index 459d8fe..665c5c6 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-CategorizedSorted.ps1 @@ -129,7 +129,7 @@ function Changes-HashSubject-NoMerges-CategorizedSorted { "@ foreach ($c in $commitHistoryCategory) { $iscommitHistoryCategoryTitleOutputted = $false - $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { foreach ($n in $c['Name']) { if ("$($_.Ref) $($_.Subject)" -match "^[0-9a-f]+ (\s*$n\s*)(\(\s*[a-zA-Z0-9_\-\/]+\s*\)\s*)*:(.+)") { if (!$iscommitHistoryCategoryTitleOutputted) { @@ -154,7 +154,7 @@ function Changes-HashSubject-NoMerges-CategorizedSorted { ### $($commitHistoryCategoryNone['Title']) "@ - $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { @" * $($_.Ref) $($_.Subject) "@ diff --git a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 index 0086f27..3830974 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 @@ -131,7 +131,7 @@ function Changes-HashSubjectAuthor-NoMerges-CategorizedSorted { "@ foreach ($c in $commitHistoryCategory) { $iscommitHistoryCategoryTitleOutputted = $false - $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { foreach ($n in $c['Name']) { if ("$($_.Ref) $($_.Subject) $($_.Author)" -match "^[0-9a-f]+ (\s*$n\s*)(\(\s*[a-zA-Z0-9_\-\/]+\s*\)\s*)*:(.+)") { if (!$iscommitHistoryCategoryTitleOutputted) { @@ -156,7 +156,7 @@ function Changes-HashSubjectAuthor-NoMerges-CategorizedSorted { ### $($commitHistoryCategoryNone['Title']) "@ - $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { @" * $($_.Ref) $($_.Subject) $($_.Author) "@ diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-CategorizedSorted.ps1 index 27e25c2..ac2adf1 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-CategorizedSorted.ps1 @@ -129,7 +129,7 @@ function VersionDate-HashSubject-NoMerges-CategorizedSorted { "@ foreach ($c in $commitHistoryCategory) { $iscommitHistoryCategoryTitleOutputted = $false - $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { foreach ($n in $c['Name']) { if ("$($_.Ref) $($_.Subject)" -match "^[0-9a-f]+ (\s*$n\s*)(\(\s*[a-zA-Z0-9_\-\/]+\s*\)\s*)*:(.+)") { if (!$iscommitHistoryCategoryTitleOutputted) { @@ -154,7 +154,7 @@ function VersionDate-HashSubject-NoMerges-CategorizedSorted { ### $($commitHistoryCategoryNone['Title']) "@ - $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { @" * $($_.Ref) $($_.Subject) "@ diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 index ec6213e..25771fb 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 @@ -131,7 +131,7 @@ function VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted { "@ foreach ($c in $commitHistoryCategory) { $iscommitHistoryCategoryTitleOutputted = $false - $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { foreach ($n in $c['Name']) { if ("$($_.Ref) $($_.Subject) $($_.Author)" -match "^[0-9a-f]+ (\s*$n\s*)(\(\s*[a-zA-Z0-9_\-\/]+\s*\)\s*)*:(.+)") { if (!$iscommitHistoryCategoryTitleOutputted) { @@ -156,7 +156,7 @@ function VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted { ### $($commitHistoryCategoryNone['Title']) "@ - $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { @" * $($_.Ref) $($_.Subject) $($_.Author) "@ diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-CategorizedSorted.ps1 index 9cd556f..c541505 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-CategorizedSorted.ps1 @@ -127,7 +127,7 @@ function VersionDate-Subject-NoMerges-CategorizedSorted { "@ foreach ($c in $commitHistoryCategory) { $iscommitHistoryCategoryTitleOutputted = $false - $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { foreach ($n in $c['Name']) { if ("$($_.Subject)" -match "^(\s*$n\s*)(\(\s*[a-zA-Z0-9_\-\/]+\s*\)\s*)*:(.+)") { if (!$iscommitHistoryCategoryTitleOutputted) { @@ -152,7 +152,7 @@ function VersionDate-Subject-NoMerges-CategorizedSorted { ### $($commitHistoryCategoryNone['Title']) "@ - $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { @" * $($_.Subject) "@ diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-CategorizedSorted.ps1 index 2e1ff71..bbf37b5 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-CategorizedSorted.ps1 @@ -129,7 +129,7 @@ function VersionDate-SubjectAuthor-NoMerges-CategorizedSorted { "@ foreach ($c in $commitHistoryCategory) { $iscommitHistoryCategoryTitleOutputted = $false - $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryCategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { foreach ($n in $c['Name']) { if ("$($_.Subject) $($_.Author)" -match "^(\s*$n\s*)(\(\s*[a-zA-Z0-9_\-\/]+\s*\)\s*)*:(.+)") { if (!$iscommitHistoryCategoryTitleOutputted) { @@ -154,7 +154,7 @@ function VersionDate-SubjectAuthor-NoMerges-CategorizedSorted { ### $($commitHistoryCategoryNone['Title']) "@ - $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { + $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % { @" * $($_.Subject) $($_.Author) "@