diff --git a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-Categorized.ps1 index c58229e..50a5295 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubject-NoMerges-Categorized.ps1 @@ -26,7 +26,7 @@ function Changes-HashSubject-NoMerges-Categorized { } if ($previousRelease) { $funcArgs['SecondRef'] = @($previousRelease)[0] } $commitHistory = Get-RepositoryCommitHistory @funcArgs - $commitHistoryTrimmed = $commitHistory -split "`n" | % { $_.Trim() } | ? { $_ } + $commitHistoryCollection = $commitHistory -split "`n" $commitCategory = @( @{ Name = 'Feature' @@ -57,7 +57,7 @@ function Changes-HashSubject-NoMerges-Categorized { Title = 'Maintenance' } ) - $commitHistoryUncategorized = $commitHistoryTrimmed | % { + $commitHistoryUncategorized = $commitHistoryCollection | % { if (!($_ -match "^[0-9a-f]+ (\s*\w+\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)")) { $_ } @@ -68,7 +68,7 @@ function Changes-HashSubject-NoMerges-Categorized { "@ foreach ($c in $commitCategory) { $isTitleOutputted = $false - $commitHistoryTrimmed | % { + $commitHistoryCollection | % { if ($_ -match "^[0-9a-f]+ (\s*$($c['Name'])\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)") { if (!$isTitleOutputted) { @" diff --git a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-Categorized.ps1 index 907e986..7380ea6 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/Changes-HashSubjectAuthor-NoMerges-Categorized.ps1 @@ -26,7 +26,7 @@ function Changes-HashSubjectAuthor-NoMerges-Categorized { } if ($previousRelease) { $funcArgs['SecondRef'] = @($previousRelease)[0] } $commitHistory = Get-RepositoryCommitHistory @funcArgs - $commitHistoryTrimmed = $commitHistory -split "`n" | % { $_.Trim() } | ? { $_ } + $commitHistoryCollection = $commitHistory -split "`n" $commitCategory = @( @{ Name = 'Feature' @@ -57,7 +57,7 @@ function Changes-HashSubjectAuthor-NoMerges-Categorized { Title = 'Maintenance' } ) - $commitHistoryUncategorized = $commitHistoryTrimmed | % { + $commitHistoryUncategorized = $commitHistoryCollection | % { if (!($_ -match "^[0-9a-f]+ (\s*\w+\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)")) { $_ } @@ -68,7 +68,7 @@ function Changes-HashSubjectAuthor-NoMerges-Categorized { "@ foreach ($c in $commitCategory) { $isTitleOutputted = $false - $commitHistoryTrimmed | % { + $commitHistoryCollection | % { if ($_ -match "^[0-9a-f]+ (\s*$($c['Name'])\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)") { if (!$isTitleOutputted) { @" diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-Categorized.ps1 index b16acff..aa45b17 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubject-NoMerges-Categorized.ps1 @@ -26,7 +26,7 @@ function VersionDate-HashSubject-NoMerges-Categorized { } if ($previousRelease) { $funcArgs['SecondRef'] = @($previousRelease)[0] } $commitHistory = Get-RepositoryCommitHistory @funcArgs - $commitHistoryTrimmed = $commitHistory -split "`n" | % { $_.Trim() } | ? { $_ } + $commitHistoryCollection = $commitHistory -split "`n" $commitCategory = @( @{ Name = 'Feature' @@ -57,7 +57,7 @@ function VersionDate-HashSubject-NoMerges-Categorized { Title = 'Maintenance' } ) - $commitHistoryUncategorized = $commitHistoryTrimmed | % { + $commitHistoryUncategorized = $commitHistoryCollection | % { if (!($_ -match "^[0-9a-f]+ (\s*\w+\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)")) { $_ } @@ -68,7 +68,7 @@ function VersionDate-HashSubject-NoMerges-Categorized { "@ foreach ($c in $commitCategory) { $isTitleOutputted = $false - $commitHistoryTrimmed | % { + $commitHistoryCollection | % { if ($_ -match "^[0-9a-f]+ (\s*$($c['Name'])\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)") { if (!$isTitleOutputted) { @" diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-Categorized.ps1 index 0fa040d..77d46bf 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-HashSubjectAuthor-NoMerges-Categorized.ps1 @@ -26,7 +26,7 @@ function VersionDate-HashSubjectAuthor-NoMerges-Categorized { } if ($previousRelease) { $funcArgs['SecondRef'] = @($previousRelease)[0] } $commitHistory = Get-RepositoryCommitHistory @funcArgs - $commitHistoryTrimmed = $commitHistory -split "`n" | % { $_.Trim() } | ? { $_ } + $commitHistoryCollection = $commitHistory -split "`n" $commitCategory = @( @{ Name = 'Feature' @@ -57,7 +57,7 @@ function VersionDate-HashSubjectAuthor-NoMerges-Categorized { Title = 'Maintenance' } ) - $commitHistoryUncategorized = $commitHistoryTrimmed | % { + $commitHistoryUncategorized = $commitHistoryCollection | % { if (!($_ -match "^[0-9a-f]+ (\s*\w+\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)")) { $_ } @@ -68,7 +68,7 @@ function VersionDate-HashSubjectAuthor-NoMerges-Categorized { "@ foreach ($c in $commitCategory) { $isTitleOutputted = $false - $commitHistoryTrimmed | % { + $commitHistoryCollection | % { if ($_ -match "^[0-9a-f]+ (\s*$($c['Name'])\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)") { if (!$isTitleOutputted) { @" diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-Categorized.ps1 index 0db84f1..0d6ddb9 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-Subject-NoMerges-Categorized.ps1 @@ -26,7 +26,7 @@ function VersionDate-Subject-NoMerges-Categorized { } if ($previousRelease) { $funcArgs['SecondRef'] = @($previousRelease)[0] } $commitHistory = Get-RepositoryCommitHistory @funcArgs - $commitHistoryTrimmed = $commitHistory -split "`n" | % { $_.Trim() } | ? { $_ } + $commitHistoryCollection = $commitHistory -split "`n" $commitCategory = @( @{ Name = 'Feature' @@ -57,7 +57,7 @@ function VersionDate-Subject-NoMerges-Categorized { Title = 'Maintenance' } ) - $commitHistoryUncategorized = $commitHistoryTrimmed | % { + $commitHistoryUncategorized = $commitHistoryCollection | % { if (!($_ -match "^(\s*\w+\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)")) { $_ } @@ -68,7 +68,7 @@ function VersionDate-Subject-NoMerges-Categorized { "@ foreach ($c in $commitCategory) { $isTitleOutputted = $false - $commitHistoryTrimmed | % { + $commitHistoryCollection | % { if ($_ -match "^(\s*$($c['Name'])\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)") { if (!$isTitleOutputted) { @" diff --git a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-Categorized.ps1 b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-Categorized.ps1 index 9c459fd..93edd59 100644 --- a/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-Categorized.ps1 +++ b/src/PSRepositoryReleaseManager/generate/variants/VersionDate-SubjectAuthor-NoMerges-Categorized.ps1 @@ -26,7 +26,7 @@ function VersionDate-SubjectAuthor-NoMerges-Categorized { } if ($previousRelease) { $funcArgs['SecondRef'] = @($previousRelease)[0] } $commitHistory = Get-RepositoryCommitHistory @funcArgs - $commitHistoryTrimmed = $commitHistory -split "`n" | % { $_.Trim() } | ? { $_ } + $commitHistoryCollection = $commitHistory -split "`n" $commitCategory = @( @{ Name = 'Feature' @@ -57,7 +57,7 @@ function VersionDate-SubjectAuthor-NoMerges-Categorized { Title = 'Maintenance' } ) - $commitHistoryUncategorized = $commitHistoryTrimmed | % { + $commitHistoryUncategorized = $commitHistoryCollection | % { if (!($_ -match "^(\s*\w+\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)")) { $_ } @@ -68,7 +68,7 @@ function VersionDate-SubjectAuthor-NoMerges-Categorized { "@ foreach ($c in $commitCategory) { $isTitleOutputted = $false - $commitHistoryTrimmed | % { + $commitHistoryCollection | % { if ($_ -match "^(\s*$($c['Name'])\s*)(\(\s*[a-zA-Z0-9_-]+\s*\)\s*)*:(.+)") { if (!$isTitleOutputted) { @"