Skip to content

Commit

Permalink
Merge pull request #121 from theohbrothers/enhancement/generate-utili…
Browse files Browse the repository at this point in the history
…ze-variable-for-properties-of-uncategorized-category

Enhancement (generate): Utilize variable for properties of uncategorized category
  • Loading branch information
joeltimothyoh authored Jun 2, 2024
2 parents fda8612 + 2172f58 commit 5bd6972
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -91,7 +94,7 @@ function Changes-HashSubject-NoMerges-Categorized {
if ($commitHistoryUncategorizedCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCollection | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -109,7 +112,7 @@ function Changes-HashSubject-NoMerges-CategorizedSorted {
if ($commitHistoryUncategorizedCustomCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -91,7 +94,7 @@ function Changes-HashSubjectAuthor-NoMerges-Categorized {
if ($commitHistoryUncategorizedCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCollection | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -111,7 +114,7 @@ function Changes-HashSubjectAuthor-NoMerges-CategorizedSorted {
if ($commitHistoryUncategorizedCustomCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -91,7 +94,7 @@ function VersionDate-HashSubject-NoMerges-Categorized {
if ($commitHistoryUncategorizedCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCollection | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -109,7 +112,7 @@ function VersionDate-HashSubject-NoMerges-CategorizedSorted {
if ($commitHistoryUncategorizedCustomCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -91,7 +94,7 @@ function VersionDate-HashSubjectAuthor-NoMerges-Categorized {
if ($commitHistoryUncategorizedCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCollection | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -111,7 +114,7 @@ function VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted {
if ($commitHistoryUncategorizedCustomCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -91,7 +94,7 @@ function VersionDate-Subject-NoMerges-Categorized {
if ($commitHistoryUncategorizedCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCollection | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -107,7 +110,7 @@ function VersionDate-Subject-NoMerges-CategorizedSorted {
if ($commitHistoryUncategorizedCustomCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -91,7 +94,7 @@ function VersionDate-SubjectAuthor-NoMerges-Categorized {
if ($commitHistoryUncategorizedCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCollection | % {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 | % {
Expand Down Expand Up @@ -109,7 +112,7 @@ function VersionDate-SubjectAuthor-NoMerges-CategorizedSorted {
if ($commitHistoryUncategorizedCustomCollection) {
@"
### Others
### $($commitHistoryCategoryNone['Title'])
"@
$commitHistoryUncategorizedCustomCollection | Sort-Object -Property Subject | % {
Expand Down

0 comments on commit 5bd6972

Please sign in to comment.