Skip to content

Commit

Permalink
Docs (generate): Tweak documentation on generating release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
joeltimothyoh committed May 4, 2024
1 parent 0e63265 commit 4c9045e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Add a secret variable `GITHUB_API_TOKEN` containing your [GitHub API token](http

#### Generating release notes

The entrypoint script [`Invoke-Generate.ps1`](src/scripts/ci/Invoke-Generate.ps1) is used to generate release notes based off local repositories. To generate one, specify the path to the local repository and the variant of release notes to generate.
The entrypoint script [`Invoke-Generate.ps1`](src/scripts/ci/Invoke-Generate.ps1) is used to generate release notes based off local repositories. To generate one, specify the path to the local repository, the release tag ref, the release notes variant, and the release notes path.

##### Variants

Expand Down
5 changes: 4 additions & 1 deletion src/scripts/ci/Invoke-Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ param(
[Parameter(Mandatory=$false)]
[ValidateNotNullOrEmpty()]
[string]$ReleaseNotesPath
<#

<# Examples
# Maximum defaults
./Invoke-Generate.ps1 -ReleaseTagRef v1.0.12
Expand All @@ -31,6 +33,7 @@ param(
# No defaults
./Invoke-Generate.ps1 -ProjectDirectory '/path/to/repository' -ReleaseTagRef v1.0.12 -ReleaseNotesVariant 'Changes-HashSubject-NoMerges' -ReleaseNotesPath '/path/to/repository/.release-notes.md'
#>

)

$ErrorActionPreference = 'Stop'
Expand Down

0 comments on commit 4c9045e

Please sign in to comment.