Skip to content

Commit

Permalink
Merge pull request #169 from theohbrothers/enhancement/generate-stand…
Browse files Browse the repository at this point in the history
…ardize-sorting-for-sorted-variants

Enhancement (generate): Standardize sorting for sorted variants
  • Loading branch information
joeltimothyoh authored Jul 26, 2024
2 parents 1e1ff01 + d5fc868 commit d5661cd
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -154,7 +154,7 @@ function Changes-HashSubject-NoMerges-CategorizedSorted {
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % {
@"
* $($_.Ref) $($_.Subject)
"@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
"@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -154,7 +154,7 @@ function VersionDate-HashSubject-NoMerges-CategorizedSorted {
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % {
@"
* $($_.Ref) $($_.Subject)
"@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
"@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -152,7 +152,7 @@ function VersionDate-Subject-NoMerges-CategorizedSorted {
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % {
@"
* $($_.Subject)
"@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -154,7 +154,7 @@ function VersionDate-SubjectAuthor-NoMerges-CategorizedSorted {
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject -CaseSensitive | % {
@"
* $($_.Subject) $($_.Author)
"@
Expand Down

0 comments on commit d5661cd

Please sign in to comment.