Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed src/Comments.psm1
Empty file.
6 changes: 1 addition & 5 deletions src/Github.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ function Invoke-GithubRequest {
'Uri' = "$baseUrl/$Query"
}

Write-LogInfo 'Github Request' $parameters

if ($Body) { $parameters.Add('Body', (ConvertTo-Json $Body -Depth 8 -Compress)) }

Write-LogInfo 'Request Body' $parameters.Body

$env:GH_REQUEST_COUNTER = ([int] $env:GH_REQUEST_COUNTER) + 1

return Invoke-WebRequest @parameters
Expand Down Expand Up @@ -199,7 +195,7 @@ function Remove-Label {
foreach ($lab in $Label) {
if ($issueLabels -contains $lab) {
# https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue
Add-IntoArray $responses (Invoke-GithubRequest -Query "repos/$REPOSITORY/issues/$ID/labels/$label" -Method Delete)
Add-IntoArray $responses (Invoke-GithubRequest -Query "repos/$REPOSITORY/issues/$ID/labels/$lab" -Method Delete)
}
}

Expand Down
4 changes: 1 addition & 3 deletions src/Helpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ function Write-LogInfo {
$mess = ($Message | Format-Table -HideTableHeaders -AutoSize | Out-String).Trim() -split "`r`n"
Write-Host ($mess | ForEach-Object { "`n $_" })
}

Write-Host ''
}
}

Expand Down Expand Up @@ -306,6 +304,6 @@ function Resolve-IssueTitle {
}
}

Export-ModuleMember -Function Write-LogInfo, Get-EnvironmentVariables, New-Array, Add-IntoArray, Initialize-NeededConfiguration, `
Export-ModuleMember -Function Write-LogInfo, Get-EnvironmentVariable, New-Array, Add-IntoArray, Initialize-NeededConfiguration, `
Expand-Property, Get-Manifest, New-DetailsCommentString, New-CheckListItem, Test-NestedBucket, Resolve-IssueTitle, `
ConvertTo-CheckList
Loading