Skip to content

Commit

Permalink
Merge pull request #70 from theohbrothers/enhancement/generate-set-de…
Browse files Browse the repository at this point in the history
…fault-variant-to-versiondate-hashsubjectauthor-nomerges-categorized

Enhancement (generate): Set default variant to `VersionDate-HashSubjectAuthor-NoMerges-Categorized`
  • Loading branch information
joeltimothyoh authored May 20, 2024
2 parents 264cf4f + 364d557 commit 41e70a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"VersionDate-Subject-NoMerges",
"VersionDate-Subject",
],
"default": "VersionDate-HashSubject-NoMerges",
"default": "VersionDate-HashSubjectAuthor-NoMerges-Categorized",
},
{
"id": "RELEASE_NOTES_PATH",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Releases supports all tag refs. Tags *need not* follow [Semantic Versioning](htt

| Name | Example value | Mandatory | Type |
|:-:|:-:|:-:|:-:|
| `RELEASE_NOTES_VARIANT` | `VersionDate-HashSubject-NoMerges` ([List of available variants](src/PSRepositoryReleaseManager/generate/variants)) | false | string |
| `RELEASE_NOTES_VARIANT` | `VersionDate-HashSubjectAuthor-NoMerges-Categorized` ([List of available variants](src/PSRepositoryReleaseManager/generate/variants)) | false | string |
| `RELEASE_NOTES_PATH` | `/path/to/.release-notes.md` (full) /<br>`.release-notes.md` (relative) | false | string |

###### Release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ steps:
submodules: recursive
- template: templates/azure-pipelines/entrypoint/generate.yml@PSRepositoryReleaseManager
# parameters:
# RELEASE_NOTES_VARIANT: VersionDate-HashSubject-NoMerges
# RELEASE_NOTES_VARIANT: VersionDate-HashSubjectAuthor-NoMerges-Categorized
# RELEASE_NOTES_PATH: .release-notes.md
2 changes: 1 addition & 1 deletion src/scripts/ci/Invoke-Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ try {
"`$env:RELEASE_TAG_REF is null or undefined. Using the default ref 'HEAD'" | Write-Verbose
'HEAD'
}
Variant = if ($env:RELEASE_NOTES_VARIANT) { $env:RELEASE_NOTES_VARIANT } else { 'VersionDate-HashSubject-NoMerges' }
Variant = if ($env:RELEASE_NOTES_VARIANT) { $env:RELEASE_NOTES_VARIANT } else { 'VersionDate-HashSubjectAuthor-NoMerges-Categorized' }
ReleaseNotesPath = if ($env:RELEASE_NOTES_PATH) {
"Using specified release notes path '$env:RELEASE_NOTES_PATH'" | Write-Verbose
if ([System.IO.Path]::IsPathRooted($env:RELEASE_NOTES_PATH)) { $env:RELEASE_NOTES_PATH }
Expand Down

0 comments on commit 41e70a8

Please sign in to comment.