Skip to content

Commit

Permalink
clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Feb 11, 2025
1 parent f52da7f commit 22bd356
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Invoke-ExecGitHubAction {

$SplatParams = $Parameters | Select-Object -ExcludeProperty Action, TenantFilter | ConvertTo-Json | ConvertFrom-Json -AsHashtable

Write-Information ($SplatParams | ConvertTo-Json)
#Write-Information ($SplatParams | ConvertTo-Json)

switch ($Action) {
'Search' {
Expand Down
16 changes: 11 additions & 5 deletions Modules/CippExtensions/Public/GitHub/Get-GitHubFileContents.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
function Get-GitHubFileContents {
[CmdletBinding()]
param (
[Parameter(ValueFromPipelineByPropertyName = $true)]
$Url
[Parameter(ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
$FullName,

[Parameter(ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
$Path,

[Parameter(ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
$Branch
)

process {
[uri]$Uri = $Url
$Path = $Uri.PathAndQuery.TrimStart('/')
$File = Invoke-GitHubApiRequest -Path "$Path" -Method GET
$Path = "repos/$($FullName)/contents/$($Path)?ref=$($Branch)"
#Write-Information $Path
$File = Invoke-GitHubApiRequest -Path $Path -Method GET

return [PSCustomObject]@{
name = $File.name
Expand Down

0 comments on commit 22bd356

Please sign in to comment.