From 2e37991fe9a3c3e691cf3fdfc5a7aa2b1d902a4c Mon Sep 17 00:00:00 2001 From: Joel Timothy Oh Date: Sun, 26 May 2024 06:14:38 +0000 Subject: [PATCH] Refactor (generate): Standardize order of available release notes variants --- .vscode/tasks.json | 6 +++--- .../Public/Generate-ReleaseNotes.ps1 | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 69def9e..18e892e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -20,21 +20,21 @@ "description": "RELEASE_NOTES_VARIANT?", "type": "pickString", "options": [ - "Changes-HashSubjectAuthor-NoMerges-Categorized", "Changes-HashSubject-Merges", "Changes-HashSubject-NoMerges-Categorized", "Changes-HashSubject-NoMerges", "Changes-HashSubject", - "VersionDate-HashSubjectAuthor-NoMerges-Categorized", + "Changes-HashSubjectAuthor-NoMerges-Categorized", "VersionDate-HashSubject-Merges", "VersionDate-HashSubject-NoMerges-Categorized", "VersionDate-HashSubject-NoMerges", "VersionDate-HashSubject", - "VersionDate-SubjectAuthor-NoMerges-Categorized", + "VersionDate-HashSubjectAuthor-NoMerges-Categorized", "VersionDate-Subject-Merges", "VersionDate-Subject-NoMerges-Categorized", "VersionDate-Subject-NoMerges", "VersionDate-Subject", + "VersionDate-SubjectAuthor-NoMerges-Categorized", ], "default": "VersionDate-HashSubjectAuthor-NoMerges-Categorized", }, diff --git a/src/PSRepositoryReleaseManager/Public/Generate-ReleaseNotes.ps1 b/src/PSRepositoryReleaseManager/Public/Generate-ReleaseNotes.ps1 index db945fe..c05d04f 100644 --- a/src/PSRepositoryReleaseManager/Public/Generate-ReleaseNotes.ps1 +++ b/src/PSRepositoryReleaseManager/Public/Generate-ReleaseNotes.ps1 @@ -12,21 +12,21 @@ function Generate-ReleaseNotes { , [Parameter(Mandatory=$true)] [ValidateSet( - "Changes-HashSubjectAuthor-NoMerges-Categorized", "Changes-HashSubject-Merges", "Changes-HashSubject-NoMerges-Categorized", "Changes-HashSubject-NoMerges", "Changes-HashSubject", - "VersionDate-HashSubjectAuthor-NoMerges-Categorized", + "Changes-HashSubjectAuthor-NoMerges-Categorized", "VersionDate-HashSubject-Merges", "VersionDate-HashSubject-NoMerges-Categorized", "VersionDate-HashSubject-NoMerges", "VersionDate-HashSubject", - "VersionDate-SubjectAuthor-NoMerges-Categorized", + "VersionDate-HashSubjectAuthor-NoMerges-Categorized", "VersionDate-Subject-Merges", "VersionDate-Subject-NoMerges-Categorized", "VersionDate-Subject-NoMerges", - "VersionDate-Subject" + "VersionDate-Subject", + "VersionDate-SubjectAuthor-NoMerges-Categorized" )] [string]$Variant ,