From b90cf84ca172745dc9154fda93a2e257492d78a6 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 16 Dec 2024 16:19:36 +0100 Subject: [PATCH] Update function template documentation and enhance GitHub context assertion --- tools/utilities/New-FunctionTemplate.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/utilities/New-FunctionTemplate.ps1 b/tools/utilities/New-FunctionTemplate.ps1 index 4d025022d..0c74e8ea3 100644 --- a/tools/utilities/New-FunctionTemplate.ps1 +++ b/tools/utilities/New-FunctionTemplate.ps1 @@ -10,7 +10,7 @@ An example .NOTES - General notes + [Ttle](link) #> [CmdletBinding(SupportsShouldProcess)] param( @@ -31,8 +31,8 @@ begin { $commandName = $MyInvocation.MyCommand.Name Write-Debug "[$commandName] - Start" - $Context = Resolve-GitHubContext -Context $Context + Assert-GitHubContext -Context $Context -AuthType IAT, PAT, UAT if ([string]::IsNullOrEmpty($Enterprise)) { $Enterprise = $Context.Enterprise