From 2172f58f18d263b185adfb533a192ee99669946c Mon Sep 17 00:00:00 2001 From: Joel Timothy Oh Date: Sun, 2 Jun 2024 16:22:34 +0000 Subject: [PATCH] Enhancement (generate): Utilize variable for properties of uncategorized category --- .../variants/Changes-HashSubject-NoMerges-Categorized.ps1 | 5 ++++- .../Changes-HashSubject-NoMerges-CategorizedSorted.ps1 | 5 ++++- .../Changes-HashSubjectAuthor-NoMerges-Categorized.ps1 | 5 ++++- .../Changes-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 | 5 ++++- .../VersionDate-HashSubject-NoMerges-Categorized.ps1 | 5 ++++- .../VersionDate-HashSubject-NoMerges-CategorizedSorted.ps1 | 5 ++++- .../VersionDate-HashSubjectAuthor-NoMerges-Categorized.ps1 | 5 ++++- ...sionDate-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 | 5 ++++- .../variants/VersionDate-Subject-NoMerges-Categorized.ps1 | 5 ++++- .../VersionDate-Subject-NoMerges-CategorizedSorted.ps1 | 5 ++++- .../VersionDate-SubjectAuthor-NoMerges-Categorized.ps1 | 5 ++++- .../VersionDate-SubjectAuthor-NoMerges-CategorizedSorted.ps1 | 5 ++++- 12 files changed, 48 insertions(+), 12 deletions(-) diff --git a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-Categorized.ps1 index fc9bce4..f822de3 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-Categorized.ps1 @@ -57,6 +57,9 @@ function Changes-HashSubject-NoMerges-Categorized { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -91,7 +94,7 @@ function Changes-HashSubject-NoMerges-Categorized { if ($commitHistoryUncategorizedCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCollection | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-CategorizedSorted.ps1 index 88aec83..930d1e2 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-CategorizedSorted.ps1 @@ -57,6 +57,9 @@ function Changes-HashSubject-NoMerges-CategorizedSorted { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -109,7 +112,7 @@ function Changes-HashSubject-NoMerges-CategorizedSorted { if ($commitHistoryUncategorizedCustomCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-Categorized.ps1 index a344068..9888dc7 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-Categorized.ps1 @@ -57,6 +57,9 @@ function Changes-HashSubjectAuthor-NoMerges-Categorized { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -91,7 +94,7 @@ function Changes-HashSubjectAuthor-NoMerges-Categorized { if ($commitHistoryUncategorizedCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCollection | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 index 7e0c4eb..293401e 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 @@ -57,6 +57,9 @@ function Changes-HashSubjectAuthor-NoMerges-CategorizedSorted { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -111,7 +114,7 @@ function Changes-HashSubjectAuthor-NoMerges-CategorizedSorted { if ($commitHistoryUncategorizedCustomCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-Categorized.ps1 index 9a71fca..6fdf71b 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-Categorized.ps1 @@ -57,6 +57,9 @@ function VersionDate-HashSubject-NoMerges-Categorized { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -91,7 +94,7 @@ function VersionDate-HashSubject-NoMerges-Categorized { if ($commitHistoryUncategorizedCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCollection | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-CategorizedSorted.ps1 index ef8d021..41bdc27 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-CategorizedSorted.ps1 @@ -57,6 +57,9 @@ function VersionDate-HashSubject-NoMerges-CategorizedSorted { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -109,7 +112,7 @@ function VersionDate-HashSubject-NoMerges-CategorizedSorted { if ($commitHistoryUncategorizedCustomCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-Categorized.ps1 index b29608f..98c59f6 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-Categorized.ps1 @@ -57,6 +57,9 @@ function VersionDate-HashSubjectAuthor-NoMerges-Categorized { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -91,7 +94,7 @@ function VersionDate-HashSubjectAuthor-NoMerges-Categorized { if ($commitHistoryUncategorizedCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCollection | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 index c2f1609..aee651d 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted.ps1 @@ -57,6 +57,9 @@ function VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -111,7 +114,7 @@ function VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted { if ($commitHistoryUncategorizedCustomCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-Categorized.ps1 index 6350018..e8a7b2b 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-Categorized.ps1 @@ -57,6 +57,9 @@ function VersionDate-Subject-NoMerges-Categorized { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -91,7 +94,7 @@ function VersionDate-Subject-NoMerges-Categorized { if ($commitHistoryUncategorizedCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCollection | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-CategorizedSorted.ps1 index 2fc70c5..fb8aa8e 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-CategorizedSorted.ps1 @@ -57,6 +57,9 @@ function VersionDate-Subject-NoMerges-CategorizedSorted { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -107,7 +110,7 @@ function VersionDate-Subject-NoMerges-CategorizedSorted { if ($commitHistoryUncategorizedCustomCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-Categorized.ps1 index 4c5402d..e364bea 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-Categorized.ps1 @@ -57,6 +57,9 @@ function VersionDate-SubjectAuthor-NoMerges-Categorized { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -91,7 +94,7 @@ function VersionDate-SubjectAuthor-NoMerges-Categorized { if ($commitHistoryUncategorizedCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCollection | % { diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-CategorizedSorted.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-CategorizedSorted.ps1 index fd2bd50..79528aa 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-CategorizedSorted.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-CategorizedSorted.ps1 @@ -57,6 +57,9 @@ function VersionDate-SubjectAuthor-NoMerges-CategorizedSorted { Title = 'Chore' } ) + $commitHistoryCategoryNone = @{ + Title = 'Others' + } $commitHistoryCategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryUncategorizedCollection = New-Object System.Collections.ArrayList $commitHistoryCollection | % { @@ -109,7 +112,7 @@ function VersionDate-SubjectAuthor-NoMerges-CategorizedSorted { if ($commitHistoryUncategorizedCustomCollection) { @" -### Others +### $($commitHistoryCategoryNone['Title']) "@ $commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {